Rhasspy in Home Assistant with VirtualBox

Hello,

Recently I’ve been trying to make voice commands work in Home Assistant. I installed Rhasspy Assistant on my Home Assistant OS which is on VirtualBox (Windows 11). I have audio input and output selected on my virtual machine settings as well as an additional USB sound card which is detected by HAOS.

I have tried many times to select the default input and output (which I can only assume is what is plugged directly into the motherboard and Windows uses as defaults) as well as the USB soundcard input and output in the configuration tab of Rhasspy before starting it.

The issue is that the speakers in Rhasspy work fine, in both the default speakers and the USB sound card, but the mic doesn’t. When I test the PyAudio, nothing works.

I’ve been searching the internet for days for a solution, but so far nothing worked. Any ideas?

Thanks

google search for mapping mic into virtual box vm.

To enable audio for a guest in Oracle VM VirtualBox, you can select the Enable Audio check box. You can also choose the Host Audio Driver, which is the audio driver that VirtualBox uses on the host. 
You can also attach your host webcam to a VM using the Devices menu in the VM menu bar. The Webcams menu lists the available video input devices on the host. Clicking on a webcam name will attach or detach the corresponding host device. 
3.8. Audio Settings - Oracle® VM VirtualBox
To enable audio for a guest, select the Enable Audio check box. The following settings are available: Host Audio Driver: The audio...

Oracle Help Center
2.6. Webcam Passthrough
The host webcam can be attached to the VM using the Devices menu in the VM menu bar. The Webcams menu contains a list of available...

Oracle Help Center

https://forums.virtualbox.org/viewtopic.php?t=99173

I really appreciate your effort.

Unfortunately, I have already tried that.

Thanks anyway :slight_smile:

I couldn’t get VB to run , and couldnt get mic into vm on VMware workstation

My VB runs fine. HA runs beautifully on VB. My only problem is with Rhasspy mic in VB.

Your VB didn’t run at all?

no… i couldn’t get VB to install an OS… window or linux failed… gave up

From my experience, VB is not suitable for high end graphics. While I managed to install Windows 7, I couldn’t run high end games.

Additionally, I seem to remember that some setting had to be changed in the UEFI/BIOS. Maybe something that had to do with virtualization or CPU, I can’t remember