javascript - Best way to record audio with mic and send to server - Stack Overflow

admin2025-04-17  0

I know there are similar questions but there is no answer for me.

What is the best option for recording audio with microphone on website and send to server for some operation.

1) java/javascript

2) red5

3) flash/flex

4) silverlight

5) other(pls specify)

I want to create something like this : .html

I know there are similar questions but there is no answer for me.

What is the best option for recording audio with microphone on website and send to server for some operation.

1) java/javascript

2) red5

3) flash/flex

4) silverlight

5) other(pls specify)

I want to create something like this : http://wami.csail.mit.edu/examples/jsapi/calculator.html

Share asked Mar 24, 2011 at 23:04 Gün KaragözGün Karagöz 7651 gold badge7 silver badges12 bronze badges 1
  • Your question is like 'Best car to buy'. – Samvel Siradeghyan Commented Mar 25, 2011 at 7:01
Add a ment  | 

2 Answers 2

Reset to default 3

Well, your question isn't exactly a good one. There is no 'best technology', only what's best for your project which I know nothing about.

With that being said, there's also the fact that you're bundling both front end and back end technologies together, which doesn't work. And what kind of 'work' do you need done on the audio.

If it was me, I'd use Flash on the front end to record the microphone since it has the most market penetration pared to say Silverlight. Javascript cannot record the microphone. From there, I can then send the audio (streamed or not) to the server, which in this case is really up in the air. I could be any technology and it wouldn't matter all that much unless one language has a better audio library than the other. If you just want to store the recording, you can use something extremely simple like PHP, but if you need something a bit more robust, you'll probably have a better time with using Java.

How Flash sends the audio to the server is up to you. There are several options but if it doesn't need to be streamed, I'd say just upload using http.

The technology you refer to in your example is open-source. It uses a hidden Flash app to perform an HTTP post from client to server. Streaming is simulated by chunking the audio into multiple POSTs. Here's the link:

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

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744884317a272445.html

最新回复(0)