用于录制用户音频的 Javascript 库? [英] Javascript library for recording user audio?

查看:25
本文介绍了用于录制用户音频的 Javascript 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是另一个我如何在浏览器中录制音频?"问题...我知道 HTML5 Stream API 即将到来,Flash 已经可以访问用户的麦克风和摄像头.我只是想知道,作为一个对 Flash 知之甚少的 Javascript 开发人员,是否有人开发了一个 JS 库,该库与 Flash 的设备功能挂钩进行记录,但将结果发送回 javascript(大概使用 ExternalInterface).

This isn't another one of those "How can I record audio in the browser?" questions... I know that the HTML5 Stream API is around the corner and Flash can already access the user's microphone and camera. I'm simply wondering, as a Javascript developer with little knowledge of Flash, if anyone has developed a JS library that hooks into Flash's device capabilities for recording but sends the results back to javascript (presumably using ExternalInterface).

换句话说……像 SoundManager2 这样的库利用 Flash 回退进行音频播放,但它们似乎不允许录音.有没有人写过一个JS库,使用不可见的Flash影片来允许录音?

In other words... libraries like SoundManager2 utilize a Flash fallback for audio playback, but they don't seem to allow for recording. Has anyone written a JS library that uses an invisible Flash movie to allow audio recording?

推荐答案

这可以满足您的大部分需求:

This does most of what you're looking for:

https://code.google.com/p/wami-recorder/

它记录音频并通过 HTTP POST 将其发送到服务器(避免需要 Flash 媒体服务器.)JavaScript API 可通过 ExternalInterface 使用.

It records audio and sends it to a server via an HTTP POST (avoiding the need for a Flash Media Server.) A JavaScript API is available via ExternalInterface.

我不确定您为什么需要 JavaScript 中的音频字节,但修改它也很容易做到这一点.

I'm not sure why you'd want the audio bytes in JavaScript, but it would probably be easy to modify it to do that too.

这篇关于用于录制用户音频的 Javascript 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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