接收与HTML5音频API的音频字节数组? [英] Receive audio byte arrays with HTML5 Audio API?

查看:518
本文介绍了接收与HTML5音频API的音频字节数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以广播或单播(UDP)从麦克风输入原始的PCM数据,或G711(MuLaw,ALAW)或Gsm10 EN $ C $光盘中的数据。这个音频被认为是在网页上播放。 Flash和Silverlight不能使用。

I can broadcast or unicast (UDP) raw PCM data from microphone input, or the data encoded in G711 (MuLaw, ALaw) or Gsm10. This audio is thought to be played on a webpage. Flash and Silverlight cannot be used.

我目前正在研究两种解决方案:
一)在ASP.NET(AJAX客户端C#)
二)HTML5音频API

I'm currently investigating two solutions: a) Client-side C# in ASP.NET (AJAX) b) HTML5 Audio API

这是理论上可以接收阵列与HTML5音频API发送字节,然后发挥他们在主页?

Is it theoretically possible to receive the byte arrays send with HTML5 Audio API and then play them on a homepage?

推荐答案

下面提供了一个例子来告诉你如何在网络音频API的作品

Here provides an example to show you how the web audio API works

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

请求的响应是字节数组,那么你可以按照网页上的步骤。

the response of request is the bytes array, then you can just follow the step on the web page.

这篇关于接收与HTML5音频API的音频字节数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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