Move handling of SetLetterVowel() to language files

Contributes to:
Issue #218, https://github.com/espeak-ng/espeak-ng/issues/218

Changes:
language files have a new keyword letterVowel. It can be a latin alphabet from a-z or a hex value (used by bulgarian).
Errors in parsing the values are only reported, nothing is done about them.

About testing:
I haven't noticed any differences in the output audio with letterVowel set or unset in any tested language. The code seems to work and the correct bits seem to be set, but I don't know how to confirm from the final audio.

TODO:
1. Write better documentation in docs/voices.md
2. The code uses new_translator. Should it use translator instead?
This commit is contained in:
Juho Hiltunen
2017-12-10 21:04:36 +02:00
parent 4f56345fb5
commit 6042eb8d1e
27 changed files with 68 additions and 31 deletions
+1
View File
@@ -2,3 +2,4 @@ name Lojban
language jbo
speed 80 // speed adjustment, percentage
letterVowel y
+2
View File
@@ -2,3 +2,5 @@ name Welsh
language cy
intonation 4
letterVowel w
letterVowel y
+1
View File
@@ -2,3 +2,4 @@ name Danish
language da
tunes s2 c2 q2 e2
letterVowel y
+1
View File
@@ -1,2 +1,3 @@
name Icelandic
language is
letterVowel y
+1
View File
@@ -5,3 +5,4 @@ phonemes no
dictionary no
intonation 4
letterVowel y
+1
View File
@@ -1,2 +1,3 @@
name Swedish
language sv
letterVowel y
+1
View File
@@ -6,3 +6,4 @@ status mature
roughness 0
pitch 63 120
letterVowel y
+2
View File
@@ -1,2 +1,4 @@
name German
language de
letterVowel y
+1
View File
@@ -1,2 +1,3 @@
name Dutch
language nl
letterVowel y
+1
View File
@@ -1,5 +1,6 @@
name Albanian
language sq
letterVowel y
// add this line to remove 'ë' at the end of words
// replace 00 @/ NULL
+1
View File
@@ -4,3 +4,4 @@ language fr
dictrules 1
tunes s3 c3 q3 e3
letterVowel y
+1 -1
View File
@@ -4,5 +4,5 @@ language fr 8
dictrules 2
tunes s3 c3 q3 e3
letterVowel y
+1
View File
@@ -4,3 +4,4 @@ language fr 8
dictrules 3
tunes s3 c3 q3 e3
letterVowel y
+1
View File
@@ -5,3 +5,4 @@ maintainer Christian Leo M <llajta2012@gmail.com>
status mature
tunes s4 c4 q4 e4
letterVowel y
+1
View File
@@ -5,3 +5,4 @@ phonemes pt-pt
dictrules 1
intonation 2
letterVowel y
+1
View File
@@ -1,2 +1,3 @@
name Finnish
language fi
letterVowel y
+1 -1
View File
@@ -2,5 +2,5 @@ name Hungarian
language hu
option bracket 0 0
pitch 81 117
letterVowel y
+2
View File
@@ -3,3 +3,5 @@ language bg
stressAmp 13 12 17 17 20 22 22 21
stressLength 180 170 200 200 200 200 210 220
letterVowel 0x2a
+2
View File
@@ -12,3 +12,5 @@ formant 5 97 102 100
stressAdd 10 10 0 0 0 0 -30 -30
dictrules 3 4
letterVowel y
letterVowel r
+2
View File
@@ -13,3 +13,5 @@ formant 5 97 102 100
stressAdd 10 10 0 0 0 0 -30 -30
dictrules 1
letterVowel y
letterVowel r
+3
View File
@@ -11,3 +11,6 @@ formant 5 97 102 100
stressAdd 10 10 0 0 0 0 -30 -30
dictrules 2 4
letterVowel y
letterVowel r
+2
View File
@@ -1,2 +1,4 @@
name Czech
language cs
letterVowel y
letterVowel r
+1
View File
@@ -2,3 +2,4 @@ name Polish
language pl
intonation 2
letterVowel y
+2
View File
@@ -1,2 +1,4 @@
name Slovak
language sk
letterVowel y
letterVowel r