Extension. Get Level sound Microphone



Hello friends,

in this tutorial I wrote about get FFT and Level sound mic from souns files, tutorial is in Spanish but you can copy and paste code of JavaScript.

Click to see what it is about: [http://www.smartjava.org/examples/webaudio/example3.html]


Adapted from: http://www.smartjava.org/content/exploring-html5-web-audio-visualizing-sound

Tutorial is:


To begin to obtain levels I have put two blocks (StartForCompanion and StartForGooglePlay), depending on how you are going to use the emulator, or compile it for the Google Play, try one and another block to check if it works.

It can get levels from 0 to 32768
p139C_Extension_Microfono_VU.aia (10.6 KB)
com.KIO4_VUmeter.aix (8.8 KB)

You can obtain more information in:

Hola amigos, mediante esta extensión podemos obtener niveles de sonido del micrófono del móvil. En el ejemplo adjunto, según el nivel de sonido se irá dibujando una línea vertical.
He puesto dos manera de Iniciar, según estés utilizando el emulador, construyendo para Android más antiguo o para Android destinado a la Play de Google, prueba las dos opciones para ver si funcionan.


thank you for your contribution…
what about detecting in your code, if it is running in the companion app?
if yes, use the companion code else use the Google code?


I put two blocks to compile with “Build App” and “Build App for Google Play”.
Block “StartForCompanion” works with MIT Companion and Build App.
If user need compile to App for Google Play, use “StartForGooglePlay”.


Other example:

p139C_Extension_Microfono_VU_2.aia (18.4 KB)