#Home assistant + usb soundcard or interface

1 messages · Page 1 of 1 (latest)

loud nebula
#

hello to anyone reading this i was recently thinking about using music assistant and a home assistant automation to make a makeshift alarm clock that can adjust based on conditions and situations and i was wondering if i could usb passthrough a usb audio interface or a usb soundcard to the home assistant vm and use that along with the vlc addon to create a speaker system that home assistant can use

loud nebula
#

so i just answered my own question by trying to usb passthrough my focusrite solo

#

it plays sounds but

#

its a garbled mess

#

now i have no idea if its because its an interface and not just a sound card

#

maybe a usb sound will do the job better idk

#

( by the way yes my server has audio jack but my cpu doesnt support pcie passthrough so its impossible to use it in a vm )

wheat skiff
#

you could run - squeezelite on the host OS which can access the regular audio jack then connect squeezelite directly to music assistant to be able to use it.

loud nebula
#

i have no idea what squeezelite is

wheat skiff
#

its a small client software package that exposes an outaudio output to a server (orginally made by logitech) and music assistant can emulate that server

#

so run squeezelite on proxmox itself and expose its audio output directly to music assistant

#

i linked documentaion above

loud nebula
#

so i run a squeeze lite client on the node that i want in my cluster and then connect it to music assistant got i think

wheat skiff
#

squeezelite basically calls the server and goes "i have a speaker here, if you want then you can play stuff"

loud nebula
#

got it

wheat skiff
#

i havent used it manually on proxmox but i dont see why it wouldnt work. proxmoxis just debian under the hood

loud nebula
wheat skiff
#

a tip: you have to connect it directly to music asssistant. do not connect it to home assistant then through HA to MA. that setup is a bit broken currently. but connecting directly to MA which is then exposed to HA works fine

#

not sure if that made sense but hopefully it did

loud nebula
#

yea it did make sense didnt even know you could use squeeze lite in ha i thought it was only in ma

wheat skiff
#

yeah, there is an integration for it but as i said its a bit flakey. and theres not alot of interest in fixing it because MA exists as a solution

loud nebula
#

do i dowload one of these

#

for debian atleast

wheat skiff
#

i dont know the packages but yeah most likely

loud nebula
#

as it seems it found it since it found a player called "HomeServer" and thats the name i gave to the node i am using

wheat skiff
#

nice

loud nebula
#

yea but it doesnt play audio so smth is up

wheat skiff
#

check volume settings in various places. could try the other version of the package.

#

check if its exposing the correct audio device

#

those are my first thoughts

loud nebula
#

volume settings should be fine i have it maxed on ma

#

now maybe it doesnt exposes the correct audio device

#

i couldnt figure out how to use my server

#

but

#

with spueeze lite lx i was able to use my main pc

#

which is connected to most speakers

#

so win ig

wheat skiff
#

at least a semi win

#

can maybe play with it later

loud nebula
#

yea but atleast it works to some extent

#

i mean its a full win since the original plan was to do this so i can use my main pc speakers ( through my interface input ) to play music

#

so in the end it does the same thing as i want it to do

#

just less complicated