Web Audio not working (OH 4.2.3)

Web Audio not working (OH 4.2.3)

Hello!
I sat down once more and tried to make my openHAB occasion a bit “smarter”.
So far I’ve by no means had any success in realizing something with sound with openHAB.
Now I wished to ask right here what I’m at all times doing mistaken that nothing works.

I’m going to attempt implementing TTS and STT.
So I put in Piper for TTS and Whisper for STT.
In Settings → System Settings → Audio I’ve set the output to “Web Audio”.
Under Settings → System Settings → Language I’ve set Piper for TTS and Whisper for STT and chosen “Piper – German – Thorsten” because the voice.

If I now create a script that ought to output one thing to me, sadly nothing occurs.
If I simply need to play a sound like doorbell.mp3, nothing occurs both.
“Web Audio” is chosen because the audio sink.
And right here we come to my precise drawback.
With openHAB I’ve by no means been in a position to output sound through the online browser.

I see the next entry within the occasion.log after I play doorbell.mp3:
2024-12-20 21:49:08.149 [INFO ] [openhab.event.PlayURLEvent ] - Play URL '/audio/849944c6-256d-4daf-accf-38f6b0ec449b'.

Unfortunately, nothing occurs within the browser.
Using the dev choices, I additionally don’t see that the browser ever needs to entry something from /audio/XXXXX.

Sound results such because the “snap sound” when the blocks are linked within the Blockly editor are performed within the browser with none issues.
The gadgets can play sound as such. So that’s not the issue.

I’ve already tried the next functions:

  • Firefox
  • Libre Wolf (Firefox Fork)
  • Ungoogled Chromium
  • OH Android App (Android 15 – F-Droid)

What am I doing mistaken?
I’ve discovered the issue a number of occasions whereas looking the web, however as normal in boards, no reply that works.
Some solutions are additionally from OH2 occasions, which is partly now not legitimate for OH4.

Yes, I exploit nginx as a proxy, however it doesn’t work both if I entry OH instantly through port 8080.

The precise aim was that the sound information would find yourself in a file that could possibly be distributed within the dwelling community with Snapcast, for instance.
But that is apparently not really easy to implement.
I don’t have a “sensible speaker” like Alexa, Google & Co. So I can’t check it with that and need to depend on the browser.

2 posts – 2 members

Read full matter

HI-FI News

through openHAB Community – Latest matters https://ift.tt/2O4rhSe

December 20, 2024 at 10:14PM