the google online voice is considered one of the most realistic voices.
you can test the Google Assistant Voice in your browser before installing:
http://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=Fr&q=Bonjour,%20je%20suis%20un%20petit%20robot%20et%20j%27essaie%20une%20nouveau%20voix%20automatique%20en%20ce%20moment.%20A%20bient%C3%B4t,%20merci
and here is how to install it on a Vigibot Robot:
1) log in to your raspberry via SSH as the user pi.
2) download the TTS script "OgeSS.sh" by running:
wget https://www.robot-maker.com/vigibot/OgeSS.shthe script splits the input into 100 character chunks, and replaces some characters.
(the original script is from here, i adjusted a couple of lines:
https://elinux.org/R...eech_Synthesis))
3) make the script executable:
chmod +x OgeSS.sh4) install the mpg123 package by running:
sudo apt-get install mpg1235) modify your/boot/robot.json by typing:
sudo nano /boot/robot.jsonand add the following code into the brackets:
, "CMDTTS": "/home/pi/OgeSS.sh PLAYBACKDEVICE fr-FR > /dev/null"it should look like this: (don't forget the , on the previous line)
after a client restart the Google Assistant Voice should be activated and speak everything you type in the chat.
if it's your first time using a TTS make sure you have the correct number set in Management -> interface config -> PLAYBACKDEVICE , usually it's 0 or 1.
to change the TTS language, edit your /boot/robot.json file and set your language code.
fr-FR, en-US, de-DE are examples.
all available voices are listed here:
https://cloud.google...ech/docs/voices
see all these TTS related posts:
Amazon Alexa TTS
picoTTS
Google TTS
Enable espeak markup language
dectalk (moonbase Alpha) TTS
UPDATE 12.2020:
if there's a 2min lag between sending the tts message and the robot speaking it, chances are your network struggles with IPv6 addresses.
check
cat /etc/resolv.confand consider disabling IPv6 by editing
sudo nano /etc/sysctl.confand adding
#disable ipv6 to stop ipv6 dns leak: net.ipv6.conf.all.disable_ipv6 = 1UPDATE 1.2021:
there's a vulnerability in the OgeSS.sh script. simply replace the old script with the fixed version. to update the script to the fixed version, run:
rm OgeSS.sh wget https://www.robot-maker.com/vigibot/OgeSS.sh chmod +x OgeSS.sh