I am attempting to use Pico TTS to manage announcements from OH over a whole home audio system. OH is running as an openhabian instance with a HifiBerry on an RPi 3B. I also have a beefy HTPC setup running Logitech Media Server (along with Plex, et al) that can be leveraged.
In using Pico TTS, I originally tried to use ‘say’ commands over squeezelite on the HTPC. Since the output of Pico is 16-bit mono wav files, and there are known issues with both .wav files and very short wav files, I changed my strategy to having OH interrupt any whole home audio functions and then output an announcement directly using enhancedjavasound. It still appears that ‘say’ functions don’t work directly with enhancedjavasound, presumably because Pico uses wav files.
So my question fairly generic in nature. Can OH directly play wav files (more specifically, using Pico or the 16-bit, mono wav format) over the System Speaker (with mp3 support) sink? Mplayer can play them, but this creates another level of complexity in dynamically generating wav files with Pico and then playing them via command line script with mplayer, or alternatively generating wav files with Pico, using a command line script to convert them to mp3 with lame, and then playing them with either squeezelite or the enhancedjavasound sink. I assume someone out there has Pico running correctly with wav files, and I can’t seem to get it working…
Thanks for any help.