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

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

问题描述

这不是另一个我怎样才能在浏览器中记录音频?问题...我知道HTML5 Stream API即将到来,Flash已经可以访问用户的麦克风和摄像头了。我只是想知道,作为一个JavaScript的Flash开发人员,如果有人已经开发了一个JS库,挂钩到Flash的设备功能的录音,但发送结果回到JavaScript(大概使用ExternalInterface)。换句话说,像SoundManager2这样的库利用Flash后备进行音频播放,但是它们似乎不允许录制。有没有人写过一个JS库,使用不可见的Flash电影来录音?

寻找:



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



记录音频并通过HTTP POST将其发送到服务器(避免需要Flash Media Server。)一个JavaScript API可以通过ExternalInterface获得。



我不确定为什么要在JavaScript中使用音频字节,但这可能很简单修改它也是如此。


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

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/

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.

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天全站免登陆