-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio Mic Recording results in silence #69755
Comments
Do your Windows privacy settings allow apps to access the microphone (Allow apps to access the microphone setting)? The microphone permission in the Windows settings affects both Win32 and UWP applications, even though it doesn't look like it at a glance. |
Mic recording for voip uses like triggering every fraction of a second and returning a buffer is not expected to work with AudioStreamRecord. The expected use case for AudioStreamRecord is you start it and record a lengthy period. https://docs.godotengine.org/en/stable/classes/class_audioeffectcapture.html was written for the use in voice chat systems. For 4.0, we wrote a speech plugin for voip and has a networked demo. https://github.com/V-Sekai/godot-speech |
Yes. When running the demo I can see in the windows settings that it uses my mic. And as I wrote, when unmuting the record bus, I can hear myself in the demo. |
So recording works? |
Yes, for my demo I try using the Godot 3 VOIP plugin now. (which uses AudioEffectCapture)
I don't know which part of it doesn't work. I've written above when I can hear myself and when I don't. |
I want to add to this. I am having trouble with recording sound via microphone using both 3.4.2 stable and 4.0 RC1. Combining every suggestion in multiple issues, I made some little achievements: But when I print the data array of the recording ( I am also adding my minimal project. |
same issue, with Godot4rc4. I can hear the mic if I unmute the Record Bus but While exporting the wav file, the size reflects the duration of the recording. I am using the mic_record sample (updated to Godot4). |
Still having this issue with Godot 4.01 stable. Windows 10. I followed https://docs.godotengine.org/en/stable/tutorials/audio/recording_with_microphone.html exactly on a new project as well. I also made sure to enabled audio input in project settings. Please help :'( Edit: If you are still having this issue on Windows, I would recommend going through your installed programs and removing any audio drivers that you do not need to see if it fixes the problem like it did for me. |
yep, unfortunately for me uninstalling drivers didn't work (but I do have multiple). my laptop comes with Nahimic and other drivers, which is a pain to uninstall. hopefully this gets fixed soon, really need this functionality for my game. OS: Windows 11 |
Godot version
3.5.1
System information
Windows 10, GLES3
Issue description
I wanted to implement voice chat in my game. I took a look into the
Audio Mic Record Demo
and noticed it wasn't working as intended:save_to_wav()
in this case) the resulting file is only silenceI made sure my mic is working: when I disable "muted" on the record audio bus, I can hear my voice in the demo, so the mic input actually gets to the game.
May be related to #33184
Steps to reproduce
Follow the Recording with microphone Tutorial or try the Demo Project
Minimal reproduction project
Demo Project
The text was updated successfully, but these errors were encountered: