[quote=“kazenami, post:22, topic:188206”]Thanks to this, I’ve installed MaryTTS (http://mary.dfki.de/) on my Raspberry PI (that was only running the Hue Server for the Amazon ECHO Workaround). This is for those that don’t have a 24/7 Mac server running. Hopefully it helps 
Here’s what I did (Full Steps).
- SSH into Raspberry PI
$ cd Downloads
$ wget https://github.com/marytts/marytts/releases/download/v5.1/marytts-5.1.zip
Unzip the application to the /usr/bin directory
$ sudo unzip marytts-5.1.zip -d /opt
At this point it will not run unless the you have already installed Java 1.7 you can determine the current version of Java by executing:
$ java -version
Install the required version of Java (also add openjdk-7-jdk if you intend to do any java development):
$ sudo apt-get install openjdk-7-jre
After installing the new java runtime (jre) it will still not be the default. To set the new jre to your default use:
$ sudo update-alternatives --config java
Selection Path Priority Status
- 0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1051 manual mode
Press enter to keep the current choice[*], or type selection number: 2
Having selected option 2 the java version should return something similar to:
$ java -version
java version “1.7.0_65”
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-5~deb7u1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
The runtime package delivers the scripts necessary to run the MaryTTS Server, which can be used via a browser of the client to synthesize speech. The server can be launched with:
$ /opt/marytts-5.1/bin/marytts-server.sh
This can then be used either through a browser or via the MaryTTS Client. The browser address will be:
http://(RaspPI_IP):59125
The MaryTTS Client, which is a Java GUI can be launched with:
$ /opt/marytts-5.1/bin/marytts-client.server
Launch the Server
- Edit L_SonosTTS.LUA (Download Apps → Develop Apps → Luup files)
- edit the SAY_EXECUTE variable, replace the 5th line with the Google URL to:
http://(RaspPI_IP):59125/process?INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&FAKE=%s&INPUT_TEXT=%s&LOCALE=en_US&AUDIO=WAVE_FILE
- Please replace the (RaspPI_IP) with your device IP and make sure to put them inside the quotes.
- Upload, replace, restart LUUP.
- Test and enjoy! Congrats, you’re done. No more relying on other TTS servers.[/quote]
Hi, I don’t have sonos, is there any way I can connect Bluetooth speaker to Raspberry PI for announcement
thanks in advance
Thanks,
Dip