facebookresearch / encodec

State-of-the-art deep learning based audio codec supporting both mono 24 kHz audio and stereo 48 kHz audio.
MIT License
3.51k stars 304 forks source link

Trying to compress what's the formel #10

Open EnCodecwtf opened 2 years ago

EnCodecwtf commented 2 years ago

❓ Questions

Sitting on Linux mint with python 3.8 In the terminal location EnCodec map, got a audio file sound.mp3

What is the terminal command to get it funktion? I can't figur out that... Can you help?

adefossez commented 2 years ago

Command usage is explained in details in our README https://github.com/facebookresearch/encodec#usage Also Encodec cannot compress mp3 directly, you will have to convert to wav first.

EnCodecwtf commented 2 years ago

Have read the readme but can't figure it out. You can't give me a hint.

In terminal in right folder the Wav file is h.wav I want the audio want it to be 12 kbps.

Tried a bunch of scripts no one worked. I I got a working one I can go from that.

Thanks.

adefossez commented 1 year ago

To compress, encodec -b 12 --hq h.wav sound.ecdc, to decompressed encodec -b 12 --hq sound.ecdc decoded.wav

EnCodecwtf commented 1 year ago

I only got an error command don't exist. Don't understand why. Phyton is installed.

I don't got a clue