getTunerVolume does not work !!

hi there,

i would like to make a new app with corona, but for that i would
need a proper recognition how loud is someone speaking in the mic.

I use:

local r = media.newRecording()
r:startTuner()
r:startRecording()
local v = r:getTunerVolume()

and ask for v=r:getTunerVolume() in a loop

i get values around (total silence) 0.07
and each normal speech immediately jumps up to around 0.53
while really loud speaking gives 0.59 and thats it…
sometimes a 0.6 appear… but by luck…

anyhow… its impossible to recognize a normal range of volume…
i made a lot of tests from lets say 0-10 very silent to very loud speaking
from 0-2 is silent rest is immediately 9-10

is that a bug and will be fixed soon… as mentioned in that state that feature is not useful.

(i made several apps on native iPhone Xcode and there the peak times are perfect to measure volume peaks, so its not on the iphone) :slight_smile:

finally i just like to activate an action when someone speak really loud… but right now, even someone speaks normal it does show me “Loud”, its just not fine… don’t know better how to explain

greets
chris
[import]uid: 4795 topic_id: 15503 reply_id: 315503[/import]

ps: right now i found even a lot of other posts in the forum about that.

some dates back to 2010 !!!
please stop all ‘cool new features’ and fix that stuff that SHOULD work.

http://developer.anscamobile.com/forum/2011/08/06/gettunervolume-not-returning-expected-values
http://developer.anscamobile.com/forum/2010/09/14/trying-get-microphone-volume-using-gettunervolume
how is the internal state about that feature (that should work already)?!

thx
chris
[import]uid: 4795 topic_id: 15503 reply_id: 57275[/import]

Yes, it’s amazing this hasn’t been addressed and fixed. In Obj-C it’s easy enough to get this right with AVFoundation so not sure what’s the obstacle with getting valid values. Guess tho there’s only a small group of us that need mic input to work well… [import]uid: 3458 topic_id: 15503 reply_id: 59239[/import]