But karaf console command “voice say Hello” does not play any sound to the raspberry headphone plug. There are no errors or warnings in openhab.log.
If I set the audio default sink in PaperUI to any ChromeCast device, they voice say command works. I can hear thie voice.
But if I set the audio default sink to “System Speaker (with mp3 support)” I can hear nothing. I excpeted to hear anything from the raspberry headphone plug.
May be that out is set to HDMI. I have no HDMI device with speakers nearby to test this.
But how to change it to the earphone plug?
In openhab audio configuration I can choose
chromecast:chromecast:d7ec…
enhancedjavasound
javasound
webaudio
chromecast:chromecast:45c2…
chromecast:audio:c1974…
Using alsamixer I selected the soundcard “bcm2835 ALSA”, volume was set to 100.
user openhab wasn’t a member of group audio, I added him to the group. But no changes!
from openhab karaf console: audio play enhancedjavasound doorbell.mp3 - does not work, I excpected to hear the sound from headphone plug audio play chromecast:chromecast:d7ecxxx doorbell.mp3 - works, I can hear the sound from my ChromeCast device
from raspian command shell I can hear the sound from headphone plug using omxplayer /etc/openhab2/sounds/doorbell.mp3