我可以使用JavaScript在网络应用程序中录制语音吗? [英] Can I use javascript to record voice on a web app?

查看:88
本文介绍了我可以使用JavaScript在网络应用程序中录制语音吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来我只能使用Flash或Java在网络应用上录制语音。有没有办法通过JavaScript来做到这一点?

解决方案

它可以做到,但解决方案不适用于所有平台此时此刻。

 < input type =fileaccept =audio / *; capture = microphone> 

请参阅 HTML5 Media Capture



目前支持:



Android 3.0浏览器,Chrome for Android(0.16),Firefox Mobile 10.0,iOS6 Safari和Chrome(部分支持)


http://www.html5rocks.com/en/ tutorials / getusermedia / intro /

使用HTML5捕获音频


It seems I can only use Flash or Java to record voice on a web app. Is there a way of doing it via JavaScript?

解决方案

It can be done but the solution won't work across all platforms at the moment.

<input type="file" accept="audio/*;capture=microphone">

See HTML5 Media Capture

Currently Supported By:

Android 3.0 browser, Chrome for Android (0.16), Firefox Mobile 10.0, iOS6 Safari and Chrome (partial support)

Links:

http://www.html5rocks.com/en/tutorials/getusermedia/intro/

Audio capturing with HTML5

这篇关于我可以使用JavaScript在网络应用程序中录制语音吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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