I think java tends to default to using the default hardware audio device. You need to add the following to the java sound.properties configuration file which makes it use the default ALSA audio device:
i have the same problem with my audio device. Could you please tell me the steps, how i ad the config file, because i´m not so the linux crack.
Many thanks
thanks for the google search links.
The audio out works fine under linux, i tested it with “aplay” and “speaker-test …“
The problem is, under openhab there is no audio output for example …say(””).
Not working for me. My Java installs don’t have JRE folders. I tried placing in lib folder but that did not work. Still sound heading to HDMI monitor that has no speakers. I then found a file in /etc/java-11-openjdk/sound.properties and modified it. But still no luck.
Raspberry Pi 4B, latest OS
Default sound from other apps is AV Jack. But OH3 keeps sending to HDMI.
Hi! I have simple USB DAC and it works well when it comes to run commands from RPI4 console, like aplay or mpg123.
It doesn’t work however with OH3.3 (M4) command playSound that I use in rules. Perhaps OH via Java doesn’t use appropriate sound device.
Any ideas?
EDIT:
Ok, worked with the tip from @MikeJMajor. I guess this mod could be part of openhabian’s menu.
Click the small speaker icon next to the clock on your Windows taskbar. Select the small up arrow to the right of your current audio output device. Select your output of choice from the list that appears.