Value Range for GetMaxAmplitude

I have an interesting idea to use the external microphone port on an Android phone. I use brainstorming to use an Android phone to record the hottest temperatures inside my coffee roaster. A thought appeared in my head. The microphone is low voltage, and my thermocouple. So I started learning android methods to see if there is anything that could allow me to get the actual millivolt reading from the port. The GetMaxAmplitude function is the only thing I found. Does anyone know the range of values ​​returned by the GetMaxAmplitude function?

If you know this won't work, just let me know.

Thanks in advance,

+7
android
source share
1 answer

Well, I myself worked to find the absolute link of values ​​that comes from the getMaxAmplitude () function, but I could not find the exact answers. There was one thread that said that voices can return anything from 0 to 25000. I know that the minimum value is 0. In addition, it returns an integer that can only contain integers, so I don't think that this is actually returning a raw millivolt reading, since it usually also contains decimal numbers.

Very interesting idea though !!

maybe something here helps:

Microphone input

EDIT:

I found the maximum value! it is 32767, which is the maximum for a signed 16-bit integer. The minimum value, of course, is 0, because you cannot have less sound. It also supports the theory that getMaxAmplitude () does not return the actual millivolt value, because getting 32.8 volts from the microphone ... will not happen.

+9
source share

All Articles