Javadoc link

The speech service is a speech synthesis service.  It will take strings of characters and attempt to change them into audible speech.  There are two parts to the Speech service, a front end and a back end.  The front end simply accepts a string, but the back end can be switched from FreeTTS or Google.  

FreeTTS is an open source speech synthesis system.  

Google is an online service, so initially this service needs to be run with an internet connection.  The audio generated is saved locally, so future utterences of the same phrase will not need the internet connection.

Example code (from branch develop):
#file : Speech.py (github)
#########################################
# Speech.py
# description: used as a general template
# categories: general
# more info @: http://myrobotlab.org/service/Speech
#########################################
 
# start all speech services ( to test them )
 
# local :
marySpeech = runtime.start("marySpeech", "MarySpeech")
localSpeech = runtime.start("localSpeech", "LocalSpeech")
mimicSpeech = runtime.start("mimicSpeech", "MimicSpeech")
 
# api needed
polly = runtime.start("polly", "Polly")
voiceRss = runtime.start("voiceRss", "VoiceRss")
indianTts = runtime.start("indianTts", "IndianTts")

olifantenbaer

8 years 8 months ago

... and if I want to switch from Google to Free TTS, what command do I have to use?