summaryrefslogtreecommitdiffstats
path: root/tools/voice.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/voice.pl')
-rwxr-xr-xtools/voice.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/voice.pl b/tools/voice.pl
index 8982138f99..a07accaf22 100755
--- a/tools/voice.pl
+++ b/tools/voice.pl
@@ -166,6 +166,27 @@ sub correct_string {
}
}
}
+ case "svenska" {
+ # for all swedish engines (e.g. for english words)
+ $string =~ s/kilobyte/kilobajt/ig;
+ $string =~ s/megabyte/megabajt/ig;
+ $string =~ s/gigabyte/gigabajt/ig;
+ $string =~ s/\bloudness\b/laudness/ig;
+
+ switch($$tts_object{"name"}) {
+ case "espeak" { # just for eSpeak
+ $string =~ s/ampere/ampär/ig;
+ $string =~ s/bokmärken/bok-märken/ig;
+ $string =~ s/generella/schenerella/ig;
+ $string =~ s/dithering/diddering/ig;
+ $string =~ s/\bunicode\b/jynikod/ig;
+ $string =~ s/uttoning/utoning/ig;
+ $string =~ s/procent/pro-cent/ig;
+ $string =~ s/spellistor/spelistor/ig;
+ $string =~ s/cuesheet/qjyschiit/ig;
+ }
+ }
+ }
}
if ($orig ne $string) {
printf("%s -> %s\n", $orig, $string) if $verbose;