converting .wav file to .ogg in javascript

后端 未结 4 833
粉色の甜心
粉色の甜心 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:19

    NEW: Derivative work of Matt Diamond's recorderjs recording to Ogg-Opus

    To encode to Ogg-Opus a file in whole in a browser without special extensions, one may use an Emscripten port of opus-tools/opusenc (demo). It comes with decoding support for WAV, AIFF and a couple of other formats and a re-sampler built in.

    An Ogg-Vorbis encoder is also available.

    Since the questioner is primarily out for audio compression, they might be also interested in mp3 encoding using lame.

提交回复
热议问题