Skip to content

Commit

Permalink
Now supporting multiple languages for google cloud voices
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-avelino committed Aug 8, 2021
1 parent 671dfa6 commit b1e15f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vizzy_web_woz/js/load_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ function setLanguage(lang)
if(lang == 'pt_PT')
voice = 'pt-PT-Wavenet-D'
else if(lang == 'en_US')
voice = 'Tom'
voice = 'en-US-Wavenet-G'
else if(lang == 'es_ES')
voice = 'Jorge'
voice = 'es-ES-Wavenet-C'
else if(lang == 'fr_FR')
voice = 'Thomas'
voice = 'fr-FR-Wavenet-C'
else if(lang == 'nl_NL')
voice = 'Xander'
voice = 'nl-NL-Wavenet-A'
else if(lang == 'de_DE')
voice = 'Yannick'
voice = 'de-DE-Wavenet-C'
else if(lang == 'it_IT')
voice = 'Luca'
voice = 'it-IT-Wavenet-B'

localStorage.setItem("language", language);
localStorage.setItem("voice", voice);
Expand Down

0 comments on commit b1e15f4

Please sign in to comment.