converting .wav file to .ogg in javascript

后端 未结 4 872
粉色の甜心
粉色の甜心 2021-02-05 01:42

I\'m trying to capture user\'s audio input from the browser. I have done it with WAV but the files are really big. A friend of mine told me that OGG files are much smaller. Does

4条回答
  •  耶瑟儿~
    2021-02-05 02:10

    Ok, this might not be a direct answer as it does not say how to convert .wav into .ogg. Then again, why bother with the conversion, when you can the .ogg file directly. This depends on MediaRecorder API, but browsers which support WebAudio usually have this too( Firefox 25+ and Chrome 47+)

    github.io Demo

    Github Code Source

提交回复
热议问题