html - compress blob containing audio PCM data in javascript - Stack Overflow

I have made a program that generates a blob (containing PCM data) from a recording using the new HTML5

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 badges
Add a ment  | 

3 Answers 3

Reset to default 4

Since 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...

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744396192a4572152.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信