Hi all,
need some help with one thing I am trying to realize and I hope someone of you guys can help. After I got Alexe to work as TTS device (see https://forum.pimatic.org/topic/4795/let-alexa-say-hello) .
I am now trying to do the same for my Google Home (I am still no sure what will stay).
At the end I got it to work, but only on my Ubuntu 18.04 playground notebook. I create a script basing on following infos:
https://www.gioexperience.com/google-home-hack-send-voice-programmaticaly-with-python/
https://github.com/balloob/pychromecast
https://github.com/pndurette/gTTS
The notebook is a slim Ubuntu without further installation. My productive pimatic environment runs on an Ubuntu 18.04 server. First what I found was that the script expected location “/var/www/html/mp3_cache/” doesn’t exists.
Even after I create it, it doesn’t work. I was not really expecting this, but I wanted to give it a try. Could it have something to do with my Hue emulator provided by the pimatic-echo-plugin??? It works on port 80. I assumed this is the hook. Therefore I changed the location to a location which is reachable via the “pimatic-filebrowser-plugin” (/home/ortin/gHome/mp3Cache/). I am able to open the location with the browser. I can see the related mp3 files and it can be played by clicking on it. But the script still not works…
Any idea why the script works on the notebook, but not in my productive pimatic environment? My workaround is to use the google translater tts function. For example, this url works: https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=jagga jagga tuck tuck&authuser=0. What I can see is that the file gets immediately play after the link is open. My local stored mp3 files needs a click to play.