There are serveral frameworks that are in my suggestion lists, such as:
BeaqleJS: HTML5 and JavaScript based
Framework for the Subjective Evaluation of
Audio Quality: https://github.com/HSU-ANT/beaqlejs
We can download the SOX by wget
1 | wget https://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz/ |
After we unizip the file, we can just run by:
1 | # unzip the file |
Or we can just use this cmd in Ubuntu Linux :
1 | sudo apt install sox |
1 | soxi ...wav |

Cheatsheet here: https://gist.github.com/ideoforms/d64143e2bad16b18de6e97b91de494fd
We will use the example like from raw file into the wav file.

Or just convert the wav file into FLAC:
1 | sox input.wav output.flac |
We can use remix to convert the audio left and right channel.
1 | sox input.wav output.wav remix 2 1 |
We can just downsample an audio to 8KHz to simulate:
1 | sox input.wav -r 8000 output.wav |
We can recall the help function by simply type:
1 | man sox |
If there had some audio formats that did not supported on the sox, like mp4.
We can just use the FFmpeg, we need to download it by sudo apt install ffmpeg on ubuntu linux.
1 | ffmpeg -i input.mp4 output.wav |
1 | ffplay -f s16le -sample_rate 44100 -channels 2 -i xxx.pcm |
1 | sudo apt install texlive-latex-extra |
1 | pip install pydub |