From b1e15f464cfc577f83e3e63163c7cf9dc21555c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Avelino?= Date: Sun, 8 Aug 2021 19:22:21 +0100 Subject: [PATCH] Now supporting multiple languages for google cloud voices --- vizzy_web_woz/js/load_settings.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vizzy_web_woz/js/load_settings.js b/vizzy_web_woz/js/load_settings.js index f1b0261..e848365 100644 --- a/vizzy_web_woz/js/load_settings.js +++ b/vizzy_web_woz/js/load_settings.js @@ -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);