@Pantomax I installed the add-on in ver 0.80 and am unable to get any audio output from the 3.5mm jack. I followed your code above. Have you tried it on Hassio ver 0.80 yet? is it working?
tested on version Home Assistant
0.82.1 working good! Nice Skill ! Grazie Mille!
your add-on is not workingâŠ
The add-on is not working anymore.
HASSIO 0.106.5
I get this error message:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting!
[Info] Read alias: http://localhost:8123/local/doorbell_sound_2.mp3
ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): Error loading shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: No such file or directory)
[Error] Playing failed ->
[Info] Read alias: http://localhost:8123/local/doorbell_sound_2.mp3
ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): Error loading shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: No such file or directory)
[Error] Playing failed ->
Hello, is this add ons still working? Thanks
Hello, I have found out a workaround. Let me know if you are interested in and I can try to comment it here.
yes please tell the workaround!
would be great.
thanks alex
You need the âlocal_audio playerâ installed (original from @Dingle and continued by @Pantomax ).
For installing it, you have to add this line to âconfig.jsonâ.
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"]
After adding the line, the addon shows up in a new category âlocal addonsâ in your home assistant (Supervisor>Addon Store):
Once you have it, I created a âbuild.jsonâ new file with this code:
{
"build_from": {
"aarch64": "hassioaddons/ubuntu-base-aarch64:5.2.0",
"amd64": "hassioaddons/ubuntu-base-amd64:5.2.0",
"armv7": "hassioaddons/ubuntu-base-armv7:5.2.0",
"i386": "hassioaddons/ubuntu-base-i386:5.2.0"
},
"args": {}
}
And inside the âDockerfileâ, I have changed the whole code with the following:
ARG BUILD_FROM=hassioaddons/ubuntu-base:5.2.0
# hadolint ignore=DL3006
FROM ${BUILD_FROM}
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base
# hadolint ignore=DL3003
RUN \
apt-get update \
\
&& apt-get install -y --no-install-recommends\
build-essential=12.4ubuntu1 \
cargo=0.42.0-0ubuntu1~18.04.1 \
git=1:2.17.1-1ubuntu0.7 \
libasound2-data=1.1.3-5ubuntu0.5 \
libasound2-dev=1.1.3-5ubuntu0.5 \
libasound2-plugins=1.1.1-1ubuntu1 \
libasound2=1.1.3-5ubuntu0.5 \
libssl-dev=1.1.1-1ubuntu2.1~18.04.5 \
sox \
sox libsox-fmt-all \
jq \
wget \
\
&& apt-get purge -y --auto-remove \
build-essential \
cargo \
git \
libasound2-dev \
libssl-dev \
\
&& rm -fr \
/tmp/* \
/root/.cargo \
/var/{cache,log}/* \
/var/lib/apt/lists/*
# Copy data
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
I am not a programer and I copy-pasted the most of the code from other topics. Everyone is welcome to clean a bit the addon, but it works!
You also might take a look at my MPD adon. Its a small media player which Iâm using on a daily basis for a soundboard and you can access it over the default media_player integration in Home Assistant. Per default it is using the audio jack on the pi, if installed on one.
hey, is it possibile to use it as TTS player?
Iâm using it in the office as output for the Google TTS and picotts. So yes
log -
[18:25:39] INFO: Start ympd
MPD Connecting to 127.0.0.1:6600
client: [0] opened from 127.0.0.1:49300
MPD connected.
exception: Failed to read mixer for âHassio Audioâ: no such mixer control: PCM
added local mp3 but canât control volume
also how can i use it for tts ?
Would this work to play music from a NAS and send out the audio out via the rasberry PI aux port?
Thank you
@henriquevianasilva
All service calls from the Media Player integration should work. So yes it is also controllable through the scripts and automations.
@ghurty
The addon contains the music player, so it needs to access your files stored on your NAS. For that the best solution I know would be a mount which points to your music files.
If you are on the Home Assistant OS, I know no way to create a mount at the time of writing. Therefore it isnât possible.
@tech_fr3ak
Did you also install the MPD integration? This is needed to control the player inside the addon from HA.
Hello. using your addon. Everything works perfectly in soybean pi. The only problem when listening ytube music after each track, playback stops and this is not very convenient. could you please help me.
Iâm still a little confused with all the comments and old posts. If I want to play audio through the Pi audio jack do I have to use mopidy or will MPD work on itâs own for local files? Iâm running Home Assistant OS on a Pi and trying to make use of some old built-in home speakers. I was also thinking of switching to a Virtualbox VM on an old laptop as it seems much quicker, not sure if that would be easier or not
For local files and TTS you can use Mopidy or MPD addon. Both will output audio on the jack after the installation.
With the installation in a VM, well it depends if you are willing to maintain the OS on your own. For me Iâm running on Home Assistant OS, since I just want it to work without a lot maintenance times.