我想看看是否可以使用直接访问 OpusgetUserMedia
或最新浏览器中的任何类似内容。
我对此进行了很多研究,但没有取得好的结果。
我知道 Opus 或 Speex 实际上用于webkitSpeechRecognition
API。我想做语音识别,但使用我自己的服务器而不是谷歌的。
所以有很多关于 Emscripten 的建议但是没有人这么做,所以我移植了编码器作品工具 http://www.opus-codec.org/downloads/使用 Emscripten 转换为 JavaScript。根据人们的想法,现在有以下机会:
-
编码 FLAC、WAV、AIFF、RAW 文件 https://github.com/Rillke/opusenc.js || demo https://rawgit.com/Rillke/opusenc.js/master/iframe.html|| Web Worker 大小:1.3 MiB
-
对原材料进行编码以便立即处理或无需容器即可发送 https://github.com/kazuki/opus.js-sample || demo https://rawgit.com/Rillke/opus.js-sample/master/index.xhtml|| Web Worker 大小:0.6 MiB
- 编码为 Ogg-Opus 和 WAVgetUserMedia stream https://github.com/chris-rudmin/Recorderjs
- 使用 Mozilla Firefox 时,可以使用MediaRecorder https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder_API,这还允许在支持的平台上将任意声音文件转换为 Opus 格式
AudioContext.decodeAudioData()
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)