14

I would like to develop a very small application using javascript... this application should pass the voice recorded from a microphone to the sound.

Is it possible?

I know that i can access to microphone using Flash, but i would like to use javascript if possible.

Thank you!

Dail
  • 21,261
  • 3
  • 16
  • 5
  • See: http://stackoverflow.com/questions/3012002/what-web-browser-supports-device-tag-html5 – Josh Lee Jun 04 '11 at 13:19
  • possible duplicate of [How to record voice in a browser?](http://stackoverflow.com/questions/554982/how-to-record-voice-in-a-browser) – Peter O. Nov 27 '11 at 05:53

3 Answers3

2

Keep an eye on HTML5's implementation of getUserMedia. For a work-around using flash see:

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

That example actually passes audio to a server via an HTTP post (so no need for a Flash Media Server), but you could easily adapt it to keep the audio on the client side.

Ian McGraw
  • 571
  • 6
  • 9
1

In this question about video streaming via web sockets it is possible to stream video. Theoretically it might be possible to write a client side application that creates a local TCP socket for microphone and audio, to which the browser and Javascript then listen.

I don't know if this has ever been attempted, and it would require significant code outside the browser to make happen.

You don't gain much either by doing it this way, over say, Flash since you still have client-side dependencies.

Community
  • 1
  • 1
Michael Berkowski
  • 267,341
  • 46
  • 444
  • 390
  • I tried to do something else , to compensate webRTC i made a simple socket listener in flash and made the JS socket connect to it , now as its a socket server i can flush ArrayBuffer :-D – ShrekOverflow Apr 17 '12 at 13:48
0

Nope. This is not possible. Javascript is not meant to access devices. you will need some abstraction technology like flash or silverlight that can help you with this otherwise javascript engine runs under the browser and it has no strings attached to the client-machine on which the browser is running.

this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137