捕获音频输入使用闪光灯或HTML5 [英] Capture Audio Input with flash or html5

查看:881
本文介绍了捕获音频输入使用闪光灯或HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图捕捉麦克风和发送记录到我的服务器..这个方法我试过的这里但它只记录一个大WAV和上传可能会很慢,有时。结果
有没有一种方法来捕捉声音和COM preSS它在客户端?
最好的方法是发送记录,同时记录,但我不知道这是可能的。 (它适用于YouTube直播视频摄像头记录,它必须为音频只工作太..)

I am trying to capture the microphone and send the recording to my server.. I tried this method here but it records only a big WAV and the upload can be slow sometimes.
Is there a way to capture the voice and compress it on the client side? Best method would be to send the recording while recording, but I have no Idea if this is possible. (It works for YouTube Live Webcam recording, it must work for Audio only too..)

推荐答案

嘿看看这个帖子里我回复与您一个类似的问题的人。

Hey check out this post where i replied to a guy with a similar question as you.

<一个href=\"http://stackoverflow.com/questions/6704852/how-do-i-embed-a-flash-audio-recorder-in-my-site/6707803#6707803\">How我做嵌入我的网站闪存音频记录

我不知道客户端COM pressing(我以前看着它,无法找到任何东西)。但我知道你可以通过严格限制在这里通过这些数字记录的速度,在那里,如果我正确地回忆起16减小文件的大小为16kHz的录音

i dont know about client side compressing (i have looked into it before and couldnt find anything). But i know you can severely reduce the size of the file by limiting the rate of recording via these numbers here, where if i recall correctly 16 is 16khz recording

 recorder = new MicRecorder(wavencoder,null,50,16);

同样发送到服务器并不难,只是仰望如何发布数据,因为WAV文件基本上是二进制数据。

also sending to the server is not that hard, just look up how to post data, because the wav file is essentially binary data

这篇关于捕获音频输入使用闪光灯或HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆