(audio) media player to local audio-out

i don’t know if i’m missing anything but i couldn’t find a media player that just outputs audio to the local machine that runs HA. i can of course set up audio out with shell commands that trigger aplay or afplay on a mac.

but if i want to output TTS, i need to configure a media player. vlc would be a possibility, but i failed to set it up correctly on my mac.

on the other hand afplay on mac fails to stream http, don’t know about aplay. for mac you can work around the afplay limitation with something like this:

curl -s https://d1490khl9dq1ow.cloudfront.net/sfx/mp3preview/alarm-clock-beep-1_zJgIn-Vd.mp3 > /tmp/x.mp3 && afplay /tmp/x.mp3

tnx, but vlc in HA fails with a mac, tried it over and over:

[00000001038a4ac8] core libvlc error: No plugins found! Check your VLC installation.

i even tried hardcoding the plugin-path into the vlc.py file of vlc-python, but i found no way to make vlc.py find the plugin directory.

i see that my suggestion would probably suffer from the same cross plattform issues. maybe i’ll try my luck with a simple custom cpomponent.

ok. i found out how to get the vlc media player running in HA on macos/os x. this needs to be added to the users .bash_profile who is running hass:

export VLC_PLUGIN_PATH=$VLC_PLUGIN_PATH:/Applications/VLC.app/Contents/MacOS/plugins

Great. Could you add that info tho the documentation?

sure. just added my first pull request.

1 Like