VoiceRSS doesn't output sound to Sonos

Hi all,

This is the environment I’m working with:

  • Platform information:
    • Hardware: Proxmox VM with 4GB of RAM
    • OS: Debian bookworm (12)
    • Java Runtime Environment: openjdk 17.0.16 2025-07-15
    • openHAB version: 4.3.8

I’ve used VoiceRSS with Sonos since many years without issues. Early this year it was not working anymore for an issue with certificates (see here) which I solved today by upgrading to bookworm.

However I’m now facing another issue. VoiceRSS is generating the wav (I see it in the cache folder) but that wav is not played on any Sonos I’ve in the system. If I try to to play something directly via karaf it works and I can hear the sounds from the sonos speaker:

openhab:audio play doorbell.mp3

but if I try to play the .wav that voiceRSS has created:

openhab:audio play VoiceRSSTTSService_55ac9d435a30fd140fa1d6a95506b1c4.wav

the Sonos doesn’t sound at all!

The created file is definitely a wav:

file VoiceRSSTTSService_55ac9d435a30fd140fa1d6a95506b1c4.wav
VoiceRSSTTSService_55ac9d435a30fd140fa1d6a95506b1c4.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz

and it gets played correctly in VLC or any other player.

What can be the issue here?

Thanks!

Marco

Strange, I had in mind VoiceRSS was generating MP3 files, not WAV files.

Maybe that’s the culprit! How do I force the output to be mp3?