Aller au contenu


Photo
- - - - -

How to use the Google Assistant Voice on your robot

guide vigibot TTS

4 réponses à ce sujet

#1 firened

firened

    Nouveau membre

  • Membres
  • 49 messages
  • Gender:Male

Posté 12 juillet 2020 - 09:21

keep in mind: if you use this, the text you enter will be sent to google.
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.sh
the 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.sh
4) install the mpg123 package by running:
sudo apt-get install mpg123
5) modify your/boot/robot.json by typing:
sudo nano /boot/robot.json
and 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)
Screenshot_20200712_202644.jpg

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.conf
and consider disabling IPv6 by editing
sudo nano /etc/sysctl.conf
and adding
#disable ipv6 to stop ipv6 dns leak:
net.ipv6.conf.all.disable_ipv6 = 1
UPDATE 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 


#2 firened

firened

    Nouveau membre

  • Membres
  • 49 messages
  • Gender:Male

Posté 13 juillet 2020 - 09:45

here a few fun phrases to make the TTS sing or otherwise mess with it.
because every TTS engine works differently, i will only list phrases that work well for the online google TTS.
add your own fun phrases for this TTS in the comments!
 
I stubbed my toe and said OOOO.OOOOO?OOOOO,OOO;OOOO-OOO!OOOOOO-OOOOOO.OOOO!OOO,OOOOO-OOO?OOOO.OOO;OOOO-OOO.OOOO!OOO?OOOO
 
waca waca waca wacawaca waca waca wacawaca waca waca waca
 
rattatacatakatatatat rattatacatakatatatat rattatacatakatatatat rattatacatakatatatat
 
lll i lii.i lili. l i liii l i llll.lllllilllil.i ll ol ilili l illiiii l i l.i.l.l.i ilil.ii.l
 
ddd.d..ddddd.d-ddh-dd-d-dd:dd:dddddd.d..ddddd.d-ddh-dd-d-dd:dd:dddddd.d..ddddd.d-ddh-dd-d-dd:dd:ddd
 
I like music Musicaeuaeuaeuaeuaeuaeua Musiceuaeuaeuaeuaeuaeuaeuaeuaeuaeuaeuaeuaeuaeuaeu
 
gaga-gaga.gagaga-gag?ag-gaga,gaga!aaga.g:aga,aga,-gaga.gaga.ga.ga,ga!gagahgagaga.g?agag,gaga-gaggaa
 
i went to the dentist and he said to open my mouth and say a aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa a.
 
so i opened my mouth and said:  a aa aa aa aa aa aa aa aa aa aa aa aa a aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa a a aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
 
cee cee ceeceeceeceeceeceecee cee ceeceeceeceeceeceecee cee ceeceeceeceeceeceecee cee ceeceeceeceeceeceecee cee ceeceeceeceeceecee
 
it hurts when i ππππππππππππππππππππππππππππππππππππππππππππππππ

eueu eueueueu eueu eueueueu eueu eueueueu eueu eueueueu eueu eueueueu eueu eueueueu

my rabbit likes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#3 jparbel

jparbel

    Nouveau membre

  • Membres
  • 39 messages

Posté 14 juillet 2020 - 10:06

Hi Firened,

 

Very nice tuto, thanks a lot.

 

Do you have some type of loud speaker to recommend for a Minus one ? 

 

And also for a good mic ?

 

jp@



#4 firened

firened

    Nouveau membre

  • Membres
  • 49 messages
  • Gender:Male

Posté 14 juillet 2020 - 10:26

the orange Kebidu AI microphone is very good and well worth the price.
https://a.aliexpress.com/_B0THnP

I don't have any speaker recommendation. i will test more speakers as soon as i receive them.

#5 Mike118

Mike118

    Staff Robot Maker

  • Administrateur
  • PipPipPipPipPip
  • 10 095 messages
  • Gender:Male
  • Location:Anglet
  • Interests:Robotique, Entrepreneuriat, Innovation, Programmation, Résolution de problème, Recherche de solutions, Mécanique, Electronique, Créer, Concevoir

Posté 14 juillet 2020 - 12:02

I have these ones available in stock : 

https://www.robot-ma...leur-d-421.html

 

and 

https://www.robot-ma...dio-5v-420.html


Si mon commentaire vous a plus laissez nous un avis  !  :thank_you:

Nouveau sur Robot Maker ? 

Jetez un oeil aux blogs, aux tutoriels, aux ouvrages, au robotscope  aux articles,  à la boutique  et aux différents services disponible !
En attendant qu'une bibliothèque de fichiers 3D soit mise en place n'hésitez pas à demander si vous avez besoin du fichier 3D d'un des produits de la boutique... On l'a peut être ! 
Si vous souhaitez un robot pilotable par internet n'hésitez pas à visiter www.vigibot.com et à lire le sous forum dédié à vigibot!

 

Les réalisations de Mike118  

 

 

 




Répondre à ce sujet



  



1 utilisateur(s) li(sen)t ce sujet

0 members, 1 guests, 0 anonymous users