Unity Native Microphone Bugs!

Hello developers,
Some time ago I have created the app for detecting the notes from voice/microphone input on mobiles.
I have tried with native Unity microphone(using AudioSource clip data) and also I have tried the NatMic.
A native microphone has more speed and low latency for my purposes in detection, but have an ugly bug. And because of it, I can’t use the native microphone on the moment. So weird.
I have recorded the video where you can see what is wrong with it (sorry for blurs, it is a privacy purpose of the project).
The video is here

On the video, I’ll restart the app for 3 times on iPhone 5s and 1 on Mac. And a couple of times it has a bad result.
I can’t explain what goes wrong exactly, but you can see, that the microphone data is corrupted from time to time. It happens when the app Start Microphone and then Ends. On the next time, it can be normal or can be not. It just can’t be used for normal stable results for now.

Also, I have tried the NatMic, it has stable record and Audio clip data, but it has more latency in my project and, it seems, a capped with frequency. And on my tests, it can freeze the app when you often enable/disable the mic. Strange.

So guys, what do You think about this native Unity microphone bug? It replicates on iOS(iPhone 5s ios 12, iPad pro 2016 ios 12) and Android (Mi A1). But it works stable on the Editor (Unity 2019.1.4f1). I heard on the internet, that the native unity microphone is buggy from elder times and that we might buy other’s solutions, BUT WHY we must use something non-native, and why it still not debugged yet??

up, guys ?

If you want to bug track it, use the bug reporter. Forums are for users speaking to users. If you want to speak to staff use the bug report tool: https://support.unity3d.com/hc/en-us/articles/206336985-How-do-I-submit-a-bug-report-

1 Like

ok thanks, I will do it.
Btw, interesting to hear about microphone from other people.

I’ve already bug track it and has sent it to Unity, the same issue was created in Issue Tracker in post Unity Issue Tracker - [iOS] ReplayKit records microphone input only during the first session after granting the permissions on screen & microphone
So, please support it with your vote! This bug is appear from 2017 versions of Unity till last version.
Thanks to everyone. Hope it will be fixed soon. Can’t release my app because this bug. Peace.

Any updates on this issue?

Sorry i have no idea.
Not familiar with the topic.

as I understand some of native ios libraries was updated in 2019 version of unity.
Also, I found that the problem was in Audio settings of project - especially in DSP buffer size. If you change default value to good or best latency, then you will have these microphone bugs. if you leave it default or best performance it will be ok on iOS and Android…