13
submitted 1 year ago by [email protected] to c/[email protected]

I've recently migrated from a raspberry pi 4b to a dell Optiplex running Proxmox and I'm having a lot of fun with it.

One of the services I have running is Raspotify, which allowed me to plug my pi into a speaker and run Spotify through it.

I had a quick go passing the audio jack through to my HA VM and it just stopped working completely. Only after removing the pass-through did it work again.

So if anyone has managed it, what do? Do I use SPICE as a driver or none? Which device is it?

Thanks

top 7 comments
sorted by: hot top new old
[-] [email protected] 10 points 1 year ago

Hmmm... I do have audio coming out of a guest VM under proxmox, but I'm passing through a whole GPU which includes audio through its HDMI.

The on-board audio might not be in an iommu group that can be passed without breaking something else, which would likely prevent booting the host correctly.

Honestly, I think I'd just go with a USB dongle for the audio. Easier to passthrough, likely better audio quality too and shouldn't be too expensive.
You can pass either a USB device id or a port (or group of ports, depending on how it's grouped)

[-] [email protected] 12 points 1 year ago* (last edited 1 year ago)

This is the easiest answer. I tried to get audio into a Guacamole VM years ago. USB adapter was the easy win. Never actually found the resource number for anything close to what i wanted.

[-] [email protected] 7 points 1 year ago

I hadn't even considered that as a solution, and I've literally just bought a usb to 3.5mm for my main PC.

Thanks for the idea, I'll purchase another cable.

I have a bloody drawer FULL of cables because I do stuff like this. To the point where I'm wondering if the meaning of life for a human male is to collect as many cables for various devices as possible before you die lol.

[-] [email protected] 1 points 1 year ago

Thanks for this, it totally worked although I'm not quite satisfied with the audio quality. There's artifacts in the sound stream, like a clicking, and Ozzy sounds a little strange when I play Bark At The Moon.

But all in all it's better than no audio, so thank you.

I of course tried to pass through the audio device again, don't wanna have to spend money if I don't have to, but it crashed Proxmox again so it was straight to Amazon.

[-] [email protected] 2 points 1 year ago

In my case, I think the onboard audio device is in the same group as the motherboard chipset, which would explain the host crashing when passing through.

[-] [email protected] 2 points 1 year ago

Also, the crackling might be something about the sampling rate. It's been a while since since I poked around with audio, but I vaguely remember changing the default sampling rate and restart pulseaudio or something like that.

[-] [email protected] 1 points 1 year ago

Yeah I turned it down from 320 to 160and it seemed to help

this post was submitted on 29 Feb 2024
13 points (93.3% liked)

homeassistant

15419 readers
83 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @[email protected]

founded 2 years ago
MODERATORS