Extension. Get Level sound Microphone

extension

#1

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]

http://www.smartjava.org/examples/webaudio/example2.html

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

Tutorial is:
http://kio4.com/appinventor/169Q_javascript_analisis_sonido_fft.htm

**OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

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:
http://kio4.com/appinventor/239C_extensiones_nivel_microfono.htm

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.


#2

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?
Taifun


#3

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”.


#4

Other example:

p139C_Extension_Microfono_VU_2.aia (18.4 KB)