xiph / rnnoise

Recurrent neural network for audio noise reduction
BSD 3-Clause "New" or "Revised" License
4.1k stars 896 forks source link

play file .raw #104

Open HuongNV96 opened 4 years ago

HuongNV96 commented 4 years ago

Hi all

When I downloaded data in "https://people.xiph.org/~jm/demo/rnnoise/rnnoise_contributions.tar.gz" link , Can I play them as music (.mp3 file ) ? If it can , Could you help me to show proper command or software ?

Very thank you

roy-bankesh commented 4 years ago

No, All are raw file present there you have to convert the raw file into other format. You can use this link https://github.com/smallmuou/wavutils to get a tool to convert. This one is working fine for me. Or you can read this issue no #51 for solution.

Zadagu commented 4 years ago

You can use Audacity to listen these files. Use File -> import -> raw audio. Set sample rate to 48000 and sample size to signed 16bit pcm.

slavaGanzin commented 4 years ago

I use sox: play --type raw --rate 8k --bits 16 --channels 1 --encoding signed in.wav

And you can use sox for convertion, just change play to sox like: sox --type raw --rate 8k --bits 16 --channels 1 --encoding signed in.wav out.mp3