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

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

问题描述

我正在尝试捕获麦克风并将录音发送到我的服务器.我尝试了这种方法 here 但它只记录一个很大的 WAV,有时上传速度会很慢.
有没有办法在客户端捕获语音并压缩它?最好的方法是在录音时发送录音,但我不知道这是否可能.(它适用于 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.

我该怎么做在我的网站中嵌入 Flash 录音机

我不知道客户端压缩(我以前研究过它但找不到任何东西).但是我知道您可以通过此处通过这些数字限制录制速率来严重减小文件的大小,如果我没记错的话,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

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

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