arita
arita5mo ago

Microphone not working for voice chat

After using voice chat in a room, if I move to another room, the other person can't hear me through voice chat.It looks like my microphone is no longer working. I think this is related to the following error, but is there a solution? Execution environment: Unity2021.3.37f1 Normcore2.10.4 iPhone12Pro (iOS17.5.1) Error:
AURemoteIO.cpp:1162 failed: -66635 (enable 1, outf< 1 ch, 0 Hz, Float32> inf< 1 ch, 48000 Hz, Float32>) NativeMicrophone: Failed to initialize the VoiceProcessingIO audio unit. Bailing. AURemoteIO.cpp:1162 failed: -66635 (enable 1, outf< 1 ch, 0 Hz, Float32> inf< 1 ch, 48000 Hz, Float32>) NativeMicrophone: Failed to start the VoiceProcessingIO audio unit. Bailing. Exception: Failed to connect to default microphone device. Make sure it is plugged in and functioning properly. Normal.Realtime.RealtimeAvatarVoice:ConnectLocalAudioStream() Normal.Realtime.RealtimeAvatarVoice:ConnectAudioStream() Normal.Realtime.RealtimeAvatarVoice:Update() UnityEngine.Application:CallLogCallback(String, String, LogType, Boolean) Normal.Realtime.RealtimeAvatarVoice:ConnectLocalAudioStream() Normal.Realtime.RealtimeAvatarVoice:ConnectAudioStream() Normal.Realtime.RealtimeAvatarVoice:Update() Failed to connect to default microphone device. Make sure it is plugged in and functioning properly. Normal.Realtime.RealtimeAvatarVoice:ConnectLocalAudioStream() Normal.Realtime.RealtimeAvatarVoice:ConnectAudioStream() Normal.Realtime.RealtimeAvatarVoice:Update()
6 Replies
kapa.ai
kapa.ai5mo ago
Hi @arita. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The error message you're seeing suggests that there's an issue with the microphone permissions or settings on your device. Here are a few steps you can take to troubleshoot this issue: 1. Check your default microphone device settings. Make sure your microphone is plugged in and functioning properly. 2. If you're on a platform that requires microphone permissions (like iOS), make sure your microphone permissions and Microphone Usage Description is set correctly in Unity. 3. Normcore will print an error message to console if something fails. It's highly recommended to check your player logs for more information if audio is not working. If you're still encountering issues after checking these points, I recommend reaching out to the Normcore community on their Discord (https://normcore.io/documentation/essentials/common-questions#does-normcore-support-x-y-z) for further assistance. You can find more information about this in the Normcore documentation (https://normcore.io/documentation/realtime/common-questions#voice-chat-doesnt-work-why). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@1201714374134472765> kapa.ai is still learning and improving, please let us know how it did by reacting below
arita
aritaOP5mo ago
I don't think there is a problem with microphone permissions.
maxweisel
maxweisel5mo ago
iOS doesn’t let you run multiple VoiceIO audio units at once. you’ll need to make sure the previous instance is fully shut down, or patch RealtimeAvatarVoice to reuse a shared microphone instance
arita
aritaOP5mo ago
Thanks for your reply.
make sure the previous instance is fully shut down
What should I do about this? I destroyed the GameObject that had the RealtimeAvatarVoice attached to it before migrating the room, but that didn't solve it. It seems that you can avoid this by setting _nativeMicrophoneDevice of RealtimeAvatarVoice to static. Thank you. However, I don't think it's the best to modify RealtimeAvatarVoice for this purpose. I've attached a project where this phenomenon occurs. Please check if you are using RealtimeAvatarVoice correctly.
arita
aritaOP5mo ago
I re-uploaded the project removing the Library and Logs folders.

Did you find this page helpful?