phone compress mic signal

229 views
Skip to first unread message

tonko....@gmail.com

unread,
Jul 21, 2020, 12:42:15 PM7/21/20
to AudioTool Discussion Group
hi, i have used for years dayton mic and calibrated phone mic on samsung s5 and samsung tab s2. it worked perfectly on both devices!!! now i have new phone, samsung a41, that compress mic input signal and i can't use audio tool for noise level measeurements any more. is any solution for this problem? thank you!

john pf

unread,
Jul 21, 2020, 12:46:34 PM7/21/20
to audiotool-dis...@googlegroups.com
Ill try it and let you know.

On Tue., Jul. 21, 2020, 9:42 a.m. , <tonko....@gmail.com> wrote:
hi, i have used for years dayton mic and calibrated phone mic on samsung s5 and samsung tab s2. it worked perfectly on both devices!!! now i have new phone, samsung a41, that compress mic input signal and i can't use audio tool for noise level measeurements any more. is any solution for this problem? thank you!

--
You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/audiotool-discussion-group/46540c58-b043-4e2c-ae19-44fede6b514ao%40googlegroups.com.

Julian Bunn

unread,
Jul 21, 2020, 12:50:46 PM7/21/20
to audiotool-dis...@googlegroups.com
It's disappointing news if Samsung are no longer respecting the "VOICE_RECOGNITION" Android flag in the A41 - this SDK flag is supposed to guarantee a stream of audio samples from the microphone that have no filters or AGC applied, which is clearly important for AudioTool.

What are the symptoms of the problem on the A41 - how do you see the compression?

Julian

tonko....@gmail.com

unread,
Jul 22, 2020, 4:19:44 AM7/22/20
to AudioTool Discussion Group
i first compared sound meter with dayton mic on old S5 phone at different noise levels.source noise varied between 60 and 100 dB. they always had the same measure results.

after that i compared the sound meter with dayton mic on new A41 phone. source noise varied again between 60 and 100 dB. at low levels A41 had higher measure results then sound meter. at 100 dB source level A41 had only measured 90 dB.

the same was when i used A41 phone original mic instead of dayton mic.

Julian Bunn

unread,
Jul 22, 2020, 1:25:19 PM7/22/20
to audiotool-dis...@googlegroups.com
Do you see any difference if you switch to the Front built in mic (via the Menu in AudioTool)? 

Julian

--
You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.

tonko....@gmail.com

unread,
Jul 23, 2020, 5:11:14 AM7/23/20
to AudioTool Discussion Group
with the front mic is the same. it can only measure up to 85 dB. althogh i incresed the noise level, it stays at 85. sound meter was at 110 dB.

Julian Bunn

unread,
Jul 23, 2020, 1:15:57 PM7/23/20
to audiotool-dis...@googlegroups.com
Are there any audio system settings on the phone that you can play with? This shouldn't be necessary, but now I'm wondering what Samsung have done!

Julian

On Thu, Jul 23, 2020 at 2:11 AM <tonko....@gmail.com> wrote:
with the front mic is the same. it can only measure up to 85 dB. althogh i incresed the noise level, it stays at 85. sound meter was at 110 dB.

--
You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.

tonko....@gmail.com

unread,
Jul 23, 2020, 11:57:10 PM7/23/20
to AudioTool Discussion Group
there is no setting on a41 to switch compression off

Julian Bunn

unread,
Jul 24, 2020, 12:21:05 AM7/24/20
to audiotool-dis...@googlegroups.com
Is the Dolby Atmos setting on?

From the manual: "On the Settings screen, tap Sounds and vibration → Sound quality and effects → Dolby Atmos, tap the switch to activate it, and then select a mode."

On Thu, Jul 23, 2020 at 8:57 PM <tonko....@gmail.com> wrote:
there is no setting on a41 to switch compression off

--
You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.

tonko....@gmail.com

unread,
Jul 24, 2020, 2:15:51 AM7/24/20
to AudioTool Discussion Group
it was off. i tried now with on. it is the same result

Julian Bunn

unread,
Jul 24, 2020, 1:25:29 PM7/24/20
to audiotool-dis...@googlegroups.com
I'm sorry to hear that, and am out of ideas. It seems that the firmware in the A41 is preventing AudioTool from getting raw microphone samples without filtering or AGC.

Julian

On Thu, Jul 23, 2020 at 11:15 PM <tonko....@gmail.com> wrote:
it was off. i tried now with on. it is the same result

--
You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.

Jean-Baptiste ROMANET

unread,
Jul 26, 2020, 3:39:42 AM7/26/20
to AudioTool Discussion Group
Hi,same problem since years one a Oneplus 3T smartphone.
The only workaround is USB audio interface.

I didn't know there was a specific audio flag prevent AGC. I will try to find a solution on this side as my phone is rooted

Jean-Baptiste

tonko p

unread,
Jan 9, 2021, 10:08:05 AM1/9/21
to AudioTool Discussion Group
today i connected dayton mic to samsung a41 through usb-c audio interface. no compression occurs this way. i made test with white noise and flat evaluation. it doesn’t work under approx. 65 db, but it works perfectly from 65 to 105 db (this was max noise level i could generate).

tonko

unread,
Feb 27, 2024, 11:01:24 PMFeb 27
to audiotool-dis...@googlegroups.com
Hello,

if it is possible to avoid compression on Samsung phone microphone, please let me know how.

Regards
Tonko

--
You received this message because you are subscribed to a topic in the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/audiotool-discussion-group/h1a1Ndry4po/unsubscribe.
To unsubscribe from this group and all its topics, send an email to audiotool-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/audiotool-discussion-group/0e19d22e-07ef-479c-bf92-bf1ffc751380n%40googlegroups.com.

Julian Bunn

unread,
Feb 28, 2024, 12:52:35 PMFeb 28
to audiotool-dis...@googlegroups.com
AudioTool uses an audio data stream that is supposed to be a clean, unfiltered, uncompressed, unmodified set of samples from the microphone. There should be no compression.

Julian

You received this message because you are subscribed to the Google Groups "AudioTool Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to audiotool-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/audiotool-discussion-group/CA%2B%3DM%3DWxV_XPiw6zssS4PMVbaqNe-U4gf__QHH8L6REmiJXMW%3Dw%40mail.gmail.com.

tonko

unread,
Mar 1, 2024, 5:04:11 PMMar 1
to audiotool-dis...@googlegroups.com
In that case, I must be doing something wrong. 
Phone microphones on my both Samsung phones, A41 and S24, measure white noise level 50 dB - the same as sound meter and Samsung Tab S2 with Dayton iMM-6.
But phone microphones A41 and S24 measure about 90 dB, wenn sound meter and Tab S2 with Dayton iMM-6 measure above 100 dB.

Tonko

tonko

unread,
Mar 1, 2024, 5:09:59 PMMar 1
to audiotool-dis...@googlegroups.com
... and aditional information. With Decibel X app, all 4 devices measure the same level at 50 db as well at 100 dB.

Julian Bunn

unread,
Mar 1, 2024, 5:31:40 PMMar 1
to audiotool-dis...@googlegroups.com
It sounds like a) Samsung have implemented some sort of compression or filter on their implementation of the "VOICE_RECOGNITION" mic audio stream on the A41 and S24 devices, and b) Decibel X app is using some other audio stream (not VOICE_RECOGNITION) for their processing, so they are always getting filtered data.

What does a Pink Noise spectrum look like as measured on the A41 and S24?

I see that there is a new mic category in the SDK called UNPROCESSED: UNPROCESSED

Microphone audio source tuned for unprocessed (raw) sound if available, behaves like DEFAULT otherwise.

So it may be that AudioTool should switch to using that now. I can make a test APK for you to try to see if it makes a difference, if you'd like?


Julian


tonko

unread,
Mar 9, 2024, 5:19:17 AMMar 9
to audiotool-dis...@googlegroups.com
Hi Julian,
today I tried to calibrate Decibel x on my both Samsung phones. Works fine on A41 but doesn't work on S24 (mic is compressed). See attachment.
Tonko

SmartSelect_20240309_105129_Gallery.jpg

Julian Bunn

unread,
Mar 9, 2024, 12:55:15 PMMar 9
to audiotool-dis...@googlegroups.com
I'm afraid I can't comment on what that app is doing - it's not AudioTool.

Julian

Jean-Baptiste ROMANET

unread,
Mar 9, 2024, 12:58:23 PMMar 9
to audiotool-dis...@googlegroups.com

tonko

unread,
Mar 9, 2024, 6:18:53 PMMar 9
to audiotool-dis...@googlegroups.com
My mail was relatid to my previos mails. I thought this info could be interested for you because AudioTool also doesn't work with S24 mic.

Julian Bunn

unread,
Mar 9, 2024, 7:39:36 PMMar 9
to audiotool-dis...@googlegroups.com
Yes, I understand. In my previous reply I offered to send you a special AudioTool APK that might fix the problem on that phone. Let me know if you are interested.

Julian

tonko

unread,
Mar 10, 2024, 12:17:46 AMMar 10
to audiotool-dis...@googlegroups.com
Yes, please send me this version.
Tonko

pa sk

unread,
Apr 8, 2024, 7:36:16 PMApr 8
to AudioTool Discussion Group

Hello Julian,

Hello Tonko,

About the "unprocessed" stream: such named audio sources have been present for good couple of years in two apps I use - Hi-Res Audio Recorder v. 0.10.78 from 2019 and Spectroid v. 1.1.2 from 2022.

When recording audio using this source instead of the other available, including the "voice recognition", indeed makes a difference.

When analysing audio signals (Spectroid) the difference is obvious in spectra and huge in the dynamic behaviour but only when using internal mikes - external input behaves the same under both settings.

All the above on POCO F1, Android 10

I attach some files with spectra of few measurements and some texts - sorry for this spam-like action.


Btw, my experience with several different phones show that samsungs are the most unpredictable and the most intrusive in processing (I checked A51, S8, Motorola Edge 7, Honor 8s, Huawei P10, POCO F1 and some others but very briefly).

gath500k.jpg

First three graphs "show" the same sound (fridge in the kitchen :) ), following two the - same kitchen, fridge off ;).


gath2a.jpg

Regards,
Paweł S.

Julian Bunn

unread,
Apr 9, 2024, 1:47:21 PMApr 9
to audiotool-dis...@googlegroups.com
Thanks for sharing this very interesting investigation!

So, it looks like if using an external Mic, then the response is the same whether or not "VOICE_RECOGNITION" or "UNPROCESSED" is used, whereas if using the internal Mic, then there is a difference, and the UNPROCESSED is better?

I may then change AudioTool's default to use UNPROCESSED instead of VOICE_RECOGNITION.

Julian



pa sk

unread,
Apr 9, 2024, 7:25:59 PMApr 9
to AudioTool Discussion Group
You know better than me that android farm/ecosystem is as diverse as can be and the best assumption is to treat each phone (HW + SW) as an individual beast.
That said, yes, it looks like the "unprocessed" AKA "raw" source is better than any other from metrological POV. (and here a huge respect for even thinking such a view may exist in case of phones internal MEMS mikes :O
In addition, in case of POCO F1 on Android 10, the differences between "unprocessed" and "voice recognition" disappear when the external mike is connected to audio jack.
The main improvement (all about internal mikes) is the elimination of what the guy from Hi-Res Audio Recorder called auto-gain and what I would rather describe as the frequency dependent dynamic gain.
The bandwidth is also less cut in the lower freqs from 200 Hz downwards (on Motorola Edge+ and Honor 8s the lower end was cut in either case, although to the lesser extent and differently than in POCO F1).
But, be frank, work with audio without the mike of defined characteristics and the linear signal path (amplitude, frequency, time) is a work in vain. (yep, the subject for a longer discussion, I know)

Regards,
Paweł S.

pa sk

unread,
Apr 10, 2024, 4:05:38 PMApr 10
to AudioTool Discussion Group
Hello Julian,

As a kind of supplement to what I wrote:
cmp.jpg
Hope it is fairly self-explanatory.
Columns and chart contain calibration coefficients for two different phones.
Pictures show spectra of a quiet room background noise caught with iMM6 mike through different audio streams.
Conclusions are two: 1. "unprocessed" stream is closer to reality, 2. no hope for any unification ...
(calibration files are the results of the measurements I did using calibrated sound pressure level meter)
Regards again,
Paweł S.
Reply all
Reply to author
Forward
0 new messages