Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sound activity level from the microphone with only javascript

Actually I'm trying to create a sound activity level from the mic. No record just a live level. I found many topics but nothing using only javascript. I found many useful links but I have no idea how to create what I want with just only javascript. The application need to work on several mobile platforms. (WebOS, Androïd, IOS...) and eventually on computers.

here are the links :

http://jsfiddle.net/7D3YS/

This link is a simple random leveler. It's look like what I want. But there is no control on the level.

http://docs.phonegap.com/en/1.1.0/phonegap_media_capture_capture.md.html#capture.captureAudio

It's using an audio capture, I think it's the best way but I have no idea how to listen and create a graphical render.

www.sajithmr.me/jrecorder/example1.html

This example is exactly what I want but it's using a swf file. And it doesn't work on iPhone.

www.filosophy.org/2011/03/talking-to-the-web-the-basics-of-html5-speech-input/

Google has created a webkit but I don't know how I can use it in my work.

I thank to record an audio file and listen this file at the same time but I'm not sure of the efficiency.

That's all what I found. Thanks for your help!

Bastien

like image 909
Hook Avatar asked Nov 14 '22 15:11

Hook


1 Answers

As PhoneGap documentation points out, javascript cannot access the mic input from most devices (unless an api is specified for it). Phonegap will attempt to launch the audio input software on the device.

TLDR: You cannot directly access mic input with javascript, unless the device exposes an API for it.

like image 169
Martin Samson Avatar answered Dec 28 '22 07:12

Martin Samson