Squeezebox server is running on same virtual machine host as openhab2
So I’m working on a smarthome system, I’ve done openhab2 and HA before in a very small capacity but this is a first for me.
I’m having the wierdest time with squeezebox server and squeezeboxes - they’ll play any stream, any audio file, accept commands, anything - except tts. I’ve done a little debugging by myself but no luck:
I’ve plugged the squeezebox into ethernet and tried wifi.
It cannot stream audio files from the server.
It will accept streaming URL’s from the server, unless I tell it to stream a file from the server - such as 000.000.000.000:8080/static/test.wav
Any other audio sink - such as the web interface - will stream tts just fine
Are you using pico- or marytts? If yes, same issue here.
I’m not the developer of these bindings, so maybe I’m speaking before my turn, however as far as I understand it, the pico- and marytts bindings spit out a wav file in a format (mono, low sample rate) that Squeezebox just isn’t able to handle. Maybe I’m mistaken, and in that case someone should correct me
The only way I managed to get picotts audio output to play correctly on the Squeezebox system, was by upmixing the mono output file to a stereo wave file with a sample rate of 44.1 kHz, and convert that to mp3 and feed the mp3 file to the Squeezebox system. I’m on Linux so I used sox and lame to do that (picotts | sox | lame). It does not fix the binding problem though.
I took a look at the picotts binding code, and based on that I guess that the conversion from mono, low samplerate wave to mp3 could be added in just a couple of lines, however my Java coding skills are a bit poor, so I never tried it. Maybe one f the guru’s around here wants to give it a try?
My squeezebox version is 7.9.3 - and it was a nightly build too. I think this may have something to do with callback URL’s or file hosting - I can’t even access a static wav file from my server from the squeezeboxes. Strangely enough the doorbell and woof works though.