USB audio in proxmox

Hi everyone,

I’ve got myself in too deep and this problem is starting to go over my head. I’m trying to set up a Home Assistant “Alexa-like” assistant with voice input/output on a Proxmox server, but I’m hitting a wall with audio.

System setup:

Home Assistant OS running in a Proxmox VM (VMID 100, 4GB RAM, 32GB disk)

Proxmox Host: Debian 12 / Linux kernel 6.14.8-2-pve

USB devices passed through:

USB microphone: C-Media PnP Sound Device

USB audio dongle: C-Media USB Audio Device (08bb:2902)

Steps I’ve tried:

USB passthrough in Proxmox: added the dongle to VM hardware, verified with qm config 100.

Inside HA OS terminal:

lsusb
shows-
Bus 002 Device 003: ID 08bb:2902 C-Media Electronics Inc. USB PnP Sound Device

Check the ALSA device nodes:
ls -l /dev/snd/by-id/
lrwxrwxrwx 1 root root 12 Nov 1 13:11 usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00 → …/controlC1
ls /dev/snd/by-id/

Result:

usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00

The device path exists, but aplay -l shows:

aplay: device_list: no soundcards found…

I tried Squeezelite add-on inside HA as i’ve found this suggested in other posts, it sees no ALSA audio device.

Problem:

The USB dongle shows up in /dev/snd/by-id/ but Home Assistant does not recognize it as a sound card.

No TTS or playback works via the USB dongle.

Request:

Has anyone successfully used a USB audio dongle in Home Assistant inside a Proxmox VM? Is this a limitation of HAOS do I need HA supervised to do this?

Thanks in advance for any advice!

First supervised is unsupported for end user deployment. Take on that mantle of you wish. But I’m not sure any of the builds have sound drivers in them. You don’t usually hook up audio directly to the box. You’re usually commanding something somewhere else. Like a VPE or the like… Did you determine or would work without prox first? Because of that won’t you’re hosed before you start.

Thanks for the reply,
No I really don’t want to take that on if i can help it :sweat_smile:
I thought doing it in ha/proxmox would be the easist way as where the server is, is where i want the smart speaker, I made the mistake of asking chat GPT if it can be done which of cousre it said yes, in hindsight was a terrible idea :man_facepalming:
So can i do this from the same device by creating another vm in proxmox and running Ubuntu or somthing like that?

Do you want the good news or the bad.

I short with enough hacking you might be able to but it won’t be easy nor stable.

You’re better off going raw ha on the server putting it in a closet and finding an appropriate satellite. Else you’ll be fighting BOTH voice assistant AND hacky configuration. So it’s very much a… You really don’t want to…

For everyone else… HAOS is a server OS plan on putting it in a closet - not actively using it in place.

Thanks for the advice much appreciated, guess I’ll buy another PI instead then :slight_smile:

If you’re going for that try a voice pe first.

yeah that looks tempting, but ideally I would like to replace all of my alexa speakers and from what i can see it can’t stream audio. I’ve already set up snapcast on one of them as proff of concept,so i’m hoping to add a voice assistant to that and then dot them all around the house.

It absolutely streams audio pair it with music assistant. I have six of them. It’s the easy button. The rest you’ll be fighting the tech.

oh great thanks! Thats going to cost about the same as pis with hats ect then, I’ll give it a try :grinning: