Hello,

And here is an additional patch to fix support for the english variants
of the voices.

Samuel
--- ./src/gespeakerUI.py.original       2010-09-19 16:03:41.000000000 +0200
+++ ./src/gespeakerUI.py        2010-09-19 16:04:17.000000000 +0200
@@ -447,8 +447,8 @@
         args = {
           '%l': '%s/%s/%s' % (
             Settings.get('VoicesmbPath'), 
-            language.replace('mb-', '', 1),
-            language.replace('mb-', '', 1))
+            language[3:6],
+            language[3:6])
         }
         cmdMbrola = [Settings.cmdMbrola] + [
           args.get(p, p) for p in Settings.argsMbrola.split()]
--- ./src/EspeakFrontend.py.original    2010-09-19 16:01:31.000000000 +0200
+++ ./src/EspeakFrontend.py     2010-09-19 16:02:54.000000000 +0200
@@ -189,7 +189,7 @@
           # Check if it's a valid voice
           for line in voicecontent:
             if line[:5] == 'name ':
-              voicesmb.append((line[5:], voice, 
os.path.isfile(os.path.join(pathVoicesmb, voice[3:], voice[3:]))))
+              voicesmb.append((line[5:], voice, 
os.path.isfile(os.path.join(pathVoicesmb, voice[3:6], voice[3:6]))))
               break
     return voicesmb
 

Reply via email to