1
0
Fork 0
forked from len0rd/rockbox

voice: Two more fixes.

Change-Id: I5aaf10c588f4396e61942b8fcd6c62c792ea175b
This commit is contained in:
Solomon Peachy 2020-07-11 13:52:14 -04:00
parent b546d9d172
commit aa20b6af7a
2 changed files with 3 additions and 3 deletions

View file

@ -526,6 +526,7 @@ sub allbuilds {
'gtts' => '-l en-gb',
},
},
# Everything else in alphabetical order
'deutsch' => {
'lang' => 'deutsch',
'name' => 'Deutsch (German)',
@ -536,7 +537,6 @@ sub allbuilds {
'gtts' => '-l de',
},
},
# Everything else in alphabetical order
'english-us' => {
'lang' => 'english-us',
'name' => 'American English',

View file

@ -85,7 +85,7 @@ my %gtts_lang_map = (
'english-us' => 'en-us',
'espanol' => 'es-es',
'francais' => 'fr-fr',
'greek' => 'gr',
'greek' => 'el',
'magyar' => 'hu',
'italiano' => 'it',
# 'nederlands' => 'nl', # not supported
@ -166,7 +166,7 @@ sub init_tts {
}
} elsif ($tts_engine eq 'espeak' || $tts_engine eq 'espeak-ng') {
if (defined($espeak_lang_map{$language}) && $tts_engine_opts !~ /-v/) {
$ret{"ttsoptions"} = "-v$gtts_lang_map{$language} ";
$ret{"ttsoptions"} = "-v$espeak_lang_map{$language} ";
}
}