admin管理员组文章数量:1403200
I have made a program that generates a blob (containing PCM data) from a recording using the new HTML5 getusermedia api
however; these recordings can get pretty big and I hoped that the files could be pressed before sending them to the server. I know that mp3/ogg pression
is way out of what a browser can handle (i think) so I looked elsewhere.
Some people talk about http pression
(that would also use Gzip) but isn't that a browser-server decision when setting up munication?
I found ; it has a javascript implementation for the client and php for the server but would this even make sensor for audio?
Does anybody have any experience with pressing audio on the client side (without using flash)
I have made a program that generates a blob (containing PCM data) from a recording using the new HTML5 getusermedia api
however; these recordings can get pretty big and I hoped that the files could be pressed before sending them to the server. I know that mp3/ogg pression
is way out of what a browser can handle (i think) so I looked elsewhere.
Some people talk about http pression
(that would also use Gzip) but isn't that a browser-server decision when setting up munication?
I found https://github./olle/lz77-kit; it has a javascript implementation for the client and php for the server but would this even make sensor for audio?
Does anybody have any experience with pressing audio on the client side (without using flash)
Share Improve this question edited Nov 15, 2012 at 17:52 Sami 8,4299 gold badges71 silver badges103 bronze badges asked Nov 15, 2012 at 13:45 ThomasThomas 1,7164 gold badges24 silver badges49 bronze badges3 Answers
Reset to default 4Since you are using getUserMedia
, I suppose that you want to record speech from a user's microphone.
Audio-specific pression algorithms should be much more efficient than general data pression algorithms. The downside of audio codes, such as MP3, are, that they are lossy.
Now, Speex might be a good codec for you. And as it happens, there is a full JavaScript Speex encoder/decoder, plete with example: speex.js.
Raw (or pressed) audio is very hard to press and I would highly suggest either writing a browser plugin that presses the audio or doing it server side. A general pression algorithm, zip, gz, etc. will not be able to give you any worthwhile amount of bandwidth savings.
I know I am answering quite late, here is my attempt at client side audio pression without using flash : https://github./Mido22/recordOpus,
I am sending the encoded opus packets to server(nodejs) using opus packets through socket, where I convert it to whatever format requested by user and provide him the link...
本文标签: htmlcompress blob containing audio PCM data in javascriptStack Overflow
版权声明:本文标题:html - compress blob containing audio PCM data in javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744396192a2604228.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论