-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Microphone access not working #3299
Comments
Also tested with AC97 device, same result: guest sees a microphone but recordings contain silence, and the macOS microphone access prompt does not appear (even though UTM does not have microphone permission according to System Preferences). |
Hi, I have come across the same issue, is there any way to override it? |
It would be gladly appreciated if someone could look into this issue, there seems to be some sort of microphone being detected in my W11 VM (shows up as "Line In") however UTM hasn't actually requested microphone usage or anything like that. Thanks in advance! |
I did a brief check: are we only missing the permissions prompt? To test this, I added these lines to UTMData.swift func save(vm: UTMVirtualMachine) throws {
do {
#if os(macOS)
if vm.configuration.soundCard?.contains("hda") ?? false {
/// get mic permisison
AVCaptureDevice.requestAccess(for: .audio) { access in
print(access)
}
}
#endif To run this successfully, in the Info.plist for the Mac target you need to enable "Audio Input" in the "Hardened Runtime" and add a "NSMicrophoneUsageDescription" key with a string value. Then the next time a HDA-soundcard VM is saved, the microphone popup appears, and clicking Allow results in However there is still no sound recorded in the running VM, I assume that no AVCaptureSession is started. So this is a topic that needs further research and development. |
i'm running utm 3.0.1 and i'm still not getting even the prompt to allow access. that's so weird though. |
@vlad-a-c My current understanding is that mic access is not a feature of the macOS app yet, and is not working as intended on iOS. |
I experience the same issue. I have also tried with 'bare' qemu but I could get sound out off the vm but not into it. I would like to be able to choose in the vm the inputs that I see on my Mac. I have installed Rogue Amoeba's Loopback. I see the virtual input in my Mac's audio inputs. Would be nice if I could see the same selection of inputs in my linux (ubuntu 22.04) guest. |
Duplicate of #219 |
Thank you for providing the detailed instructions. I have been facing a similar issue, but I'm having some trouble understanding some aspects of your instructions. Could you provide some clarity on the following points?
I'm relatively new to this, and any additional explanation or clarification you could provide would be very helpful. |
The issue still seems to not have been solved as on my W11 VM I am unable to use the microphone. Certain applications such as Duolingo can detect that I don't have a microphone, which means the issue isn't just with it not showing the popup menu for microphone and video permissions, |
VMs can't access my Mac's microphone even though the device "Intel HD Audio Controller" is selected and the
-device hda-duplex
is present in the Debug Log. Tested with twoq35
guests and onevirt
guest.Debug log
Debug Log running Windows 11 ARM guest
VM config: config.plist.zip
The text was updated successfully, but these errors were encountered: