Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receive audio byte arrays with HTML5 Audio API?

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.

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

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

like image 775
yetanotheruser Avatar asked Nov 13 '22 07:11

yetanotheruser


1 Answers

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.

like image 85
Colin Su Avatar answered Nov 16 '22 02:11

Colin Su