File: mbrola-paths

package info (click to toggle)
speech-dispatcher 0.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,616 kB
  • sloc: ansic: 27,757; sh: 5,884; python: 1,224; makefile: 1,039; lisp: 583; cpp: 404
file content (973 lines) | stat: -rw-r--r-- 36,743 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
espeak uses the multiarch directory for voices.

---
 config/modules/espeak-mbrola-generic.conf       |  233 -------------------
 config/modules/espeak-mbrola-generic.conf.in    |  233 +++++++++++++++++++
 config/modules/espeak-ng-mbrola-generic.conf    |  287 ------------------------
 config/modules/espeak-ng-mbrola-generic.conf.in |  287 ++++++++++++++++++++++++
 doc/speech-dispatcher.texi                      |    4 
 5 files changed, 522 insertions(+), 522 deletions(-)

--- a/config/modules/espeak-ng-mbrola-generic.conf
+++ /dev/null
@@ -1,261 +0,0 @@
-# Espeak mbrola output module is based on the generic plugin for Speech
-# Dispatcher. It means there is no code written explicitly for
-# this plugin, all the specifics are handled in this configuration
-# and we call a simple command line client to perform the actual
-# synthesis. Use this config file with the sd_generic output module.
-
-# Debug turns debugging on or off
-# See speechd.conf for information where debugging information is stored
-Debug 0
-
-# IMPORTANT: The audio output method relies on an audio playback
-# utility (play, aplay, paplay for OSS, ALSA or Pulse)
-# being installed. If this is not the case, consider installing it
-# or replace the $PLAY_COMMAND string in the GenericExecuteString below
-# with play, paplay or similar.
-#
-# GenericExecuteSynth is the shell command that should be
-# executed in order to say some message. This command must
-# stop saying the message on SIGKILL, otherwise it's useless.
-# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
-# which will be substituted for the appropriate value (you
-# can modify this value, see other parameters).
-# The command can be split into more lines, if necessary, using '\'.
-GenericExecuteSynth \
-"printf %s \'$DATA\' | espeak-ng -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -q --stdin --pho | mbrola -v $VOLUME -e /usr/share/mbrola/$VOICE/$VOICE - -.au | $PLAY_COMMAND"
-
-# Alternatively you can shorten the command like below, which makes it
-# work directly with any audio playback utility, but then you won't
-# be able to change the volume from the client application:
-# GenericExecuteSynth \
-# "printf %s \'$DATA\' | espeak-ng -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -stdin"
-
-GenericCmdDependency "espeak-ng"
-GenericCmdDependency "mbrola"
-GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
-
-# The following three items control punctuation levels None, Some, and All.
-# Each of these values will be substituted into the $PUNCT variable depending
-# on the value passed to speech dispatcher from applications.
-# Note that if an empty string is specified, then $PUNCT will be blank 
-# which is a default situation for espeak.
- 
-GenericPunctNone "--punct=\"\""
-GenericPunctSome "--punct=\"()[]{};:\""
-GenericPunctMost "--punct=\"()[]{};:\""
-GenericPunctAll "--punct"
-
-# GenericStripPunctChars is a list (enclosed in doublequotes) of
-# all the characters that should be replaced by whitespaces in
-# order not to be badly handled by the output module or misinterpreted
-# by shell.
-# GenericStripPunctChars  ""
-
-# If the language you need to pass in $LANGUAGE is different
-# from the standard ISO language code, you can specify
-# which string to use instead. If you wish to use
-# other than ISO charset for the specified language,
-# you can add it's name (as accepted by iconv) as a
-# third parameter in doublequotes, or use GenericDefaultCharset
-# to specify it
-
-GenericLanguage		  "en" "en-us"
-
-GenericDefaultCharset "utf-8"
-
-# Each voice is available if and only if the following files exist.
-# These files must be listed *before* the voices.
-
-VoiceFileDependency "/usr/share/mbrola/$VOICE/$VOICE"
-VoiceFileDependency "/usr/share/espeak-ng-data/voices/mb/mb-$VOICE"
-
-# AddVoice specifies which $VOICE string should be assigned to
-# each language and symbolic voice name. All the voices you want
-# to use must be specified here. This list will likely not be
-# up-to-date, please check eSpeak NG documentation and add the voices
-# you want to use.
-# All MBROLA voices for which a phoneme translation from espeak-ng to
-# MBROLA as of 12 October 2018 are listed, some commented with the
-# rationale to not include them by default. You still can ship or use
-# the commented voices if you uncomment the corresponding line.
-  
-# As of Friday 12 October 2018 these mbrola voices aren't yet 
-# supported by espeak-ng's phonemes translation to mbrola in git are:
-# bz1: Breton Female (25.0Mb)    Jean Pierre Messager
-# hb1: Hebrew Male (3.4Mb)    Yoram Meron
-# hb2: Hebrew Female (5.6Mb)    Esther Raizen
-# hn1: Korean Male (9.9Mb)    Kyongsok Gim
-# thus they are not listed below.
-# The language code in this list is the ISO 639-1 code.
-
-AddVoice "af" "MALE1" "af1"
-
-AddVoice "ar" "MALE1" "ar1"
-AddVoice "ar" "MALE2" "ar2"
-
-AddVoice "zh" "FEMALE1" "cn1"
-
-AddVoice "cs" "FEMALE1" "cz1"
-AddVoice "cs" "MALE1" "cz2"
-
-AddVoice "de" "FEMALE1" "de1"
-AddVoice "de" "MALE1" "de2"
-AddVoice "de" "FEMALE2" "de3"
-AddVoice "de" "MALE2" "de4"
-AddVoice "de" "FEMALE3" "de5"
-AddVoice "de" "MALE1" "de6"
-AddVoice "de" "FEMALE3" "de7"
-AddVoice "de" "MALE3" "de8"
-
-AddVoice "el" "MALE1" "gr1"
-AddVoice "el" "MALE2" "gr2"
-
-AddVoice "en" "FEMALE1" "us1"
-AddVoice "en" "MALE1" "en1"
-AddVoice "en" "MALE2" "us2"
-AddVoice "en" "MALE3" "us3"
-AddVoice "en-gb" "MALE1" "en1"
-AddVoice "en-us" "FEMALE1" "us1"
-AddVoice "en-us" "MALE1" "us2"
-AddVoice "en-us" "MALE2" "us3"
-
-AddVoice "es" "MALE1" "es1"
-AddVoice "es" "MALE2" "es2"
-AddVoice "es" "FEMALE1" "es3"
-AddVoice "es" "MALE3" "es4"
-AddVoice "es-mx" "MALE1" "mx1"
-AddVoice "es-mx" "MALE2" "mx2"
-AddVoice "es-ve" "MALE1" "vz1"     
-
-AddVoice "et" "MALE1" "ee1"
-
-AddVoice "fa" "MALE1" "ir1"
-AddVoice "fa" "FEMALE1" "ir2"
-
-AddVoice "fr-ca" "MALE1" "ca1"
-AddVoice "fr-ca" "MALE2" "ca2"
-AddVoice "fr" "MALE1" "fr1"
-AddVoice "fr" "FEMALE1" "fr2"
-AddVoice "fr" "MALE2" "fr3"
-AddVoice "fr" "FEMALE2" "fr4"
-AddVoice "fr-be" "MALE1" "fr5"
-AddVoice "fr" "MALE3" "fr6"
-AddVoice "fr-be" "MALE2" "fr7"
-
-AddVoice "hi" "MALE1" "in1"
-AddVoice "hi" "MALE2" "in2"
-
-AddVoice "hu" "MALE1" "hu1"
-
-AddVoice "hr" "MALE1" "cr1"
-
-AddVoice "id" "MALE1" "id1"
-
-AddVoice "is" "MALE1" "ic1"
-
-AddVoice "it" "MALE1" "it1"
-AddVoice "it" "FEMALE1" "it2"
-AddVoice "it" "MALE2" "it3"
-AddVoice "it" "FEMALE2" "it4"
-
-AddVoice "jp" "MALE1" "jp1"
-AddVoice "jp" "FEMALE1" "jp2"
-AddVoice "jp" "FEMALE2" "jp3"
-
-AddVoice "la" "MALE1" "la1"
-
-AddVoice "lt" "MALE1" "lt1"
-AddVoice "lt" "MALE2" "lt2"
-
-Addvoice "ms" "FEMALE1" "ma1"
-
-# nl1 has a very limited set of diphones and is usable only for reading
-# numbers. Uncomment the next line if you want it.
-# AddVoice "nl" "CHILD-MALE" "nl1"
-AddVoice "nl" "MALE1" "nl2"
-AddVoice "nl" "FEMALE1" "nl3"
-
-AddVoice "mi" "MALE1" "nz1"
-
-AddVoice "pl" "FEMALE1" "pl1"
-
-AddVoice "pt-br" "MALE1" "br1"
-AddVoice "pt-br" "MALE2" "br2"
-AddVoice "pt-br" "MALE3" "br3"
-AddVoice "pt-br" "FEMALE1" "br4"
-AddVoice "pt" "FEMALE1" "pt1"
-
-AddVoice "ro" "MALE1" "ro1"
-
-AddVoice "sv" "MALE1" "sw1"
-AddVoice "sv" "FEMALE1" "sw2"
-
-AddVoice "te" "FEMALE1" "tl1"
-
-AddVoice "tr" "MALE1" "tr1"
-AddVoice "tr" "FEMALE1" "tr2"
-
-# DefaultVoice specifies which $VOICE string should be used if no voice is
-# specified otherwise.
-
-DefaultVoice    "en1"
-
-# These parameters set _rate_, _pitch_, and _volume_ conversion. This is
-# part of the core of the definition of this generic output
-# module for this concrete synthesizer, it's not intended to
-# be modified by common users.
-# The resulting rate (or pitch) has the form:
-#       (speechd_rate * GenericRateMultiply) + GenericRateAdd
-# while speechd_rate is a value between -100 (lowest) and +100 (highest)
-# You have to define some meaningful conversion for each synthesizer
-
-# Here's the mapping from SSIP (Speech Dispatcher) to ESpeak (v1.10):
-#
-#           SSIP Range  SSIP Default    ESpeak/MBROLA Range ESpeak Default
-#           ----------- ------------    ------------         --------------
-# Rate      -100 to 100     0           80 to 320       160
-# Pitch     -100 to 100     0            0 to 99         50
-# Volume    -100 to 100     0            0 to 2          --
-#
-# The SSIP defaults are actually controlled via DefaultRate, DefaultPitch, and
-# DefaultVolume in the speechd.conf file.
-
-GenericRateAdd          160
-GenericPitchAdd         50
-GenericVolumeAdd        1
-
-# (These values are multiplied by 100, because DotConf currently
-# doesn't support floats. So you can write 0.85 as 85 and so on.)
-
-GenericRateMultiply     160
-GenericPitchMultiply    50
-GenericVolumeMultiply   1
-
-# If the client program can't handle floats, you will have to
-# use these two options to force integers as the parameters
-# 1 means force integers, 0 means do nothing (write floats).
-
-GenericRateForceInteger     1
-GenericPitchForceInteger    1
-GenericVolumeForceInteger   0
-
-# Note that SSIP rates < -50 are spoken at -50.
-
-
-# Copyright (C) 2008-2010 Brailcom, o.p.s
-# Copyright (C) 2014 Luke Yelavich <themuso@ubuntu.com>
-# Copyright (C) 2018-2021, 2025 Samuel Thibault <samuel.thibault@ens-lyon.org>
-# Copyright (C) 2018 Didier Spaier <didier@slint.fr>
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.  See the GNU General Public License for more details (file
-# COPYING in the root directory).
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <https://www.gnu.org/licenses/>.
--- /dev/null
+++ b/config/modules/espeak-ng-mbrola-generic.conf.in
@@ -0,0 +1,261 @@
+# Espeak mbrola output module is based on the generic plugin for Speech
+# Dispatcher. It means there is no code written explicitly for
+# this plugin, all the specifics are handled in this configuration
+# and we call a simple command line client to perform the actual
+# synthesis. Use this config file with the sd_generic output module.
+
+# Debug turns debugging on or off
+# See speechd.conf for information where debugging information is stored
+Debug 0
+
+# IMPORTANT: The audio output method relies on an audio playback
+# utility (play, aplay, paplay for OSS, ALSA or Pulse)
+# being installed. If this is not the case, consider installing it
+# or replace the $PLAY_COMMAND string in the GenericExecuteString below
+# with play, paplay or similar.
+#
+# GenericExecuteSynth is the shell command that should be
+# executed in order to say some message. This command must
+# stop saying the message on SIGKILL, otherwise it's useless.
+# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
+# which will be substituted for the appropriate value (you
+# can modify this value, see other parameters).
+# The command can be split into more lines, if necessary, using '\'.
+GenericExecuteSynth \
+"printf %s \'$DATA\' | espeak-ng -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -q --stdin --pho | mbrola -v $VOLUME -e /usr/share/mbrola/$VOICE/$VOICE - -.au | $PLAY_COMMAND"
+
+# Alternatively you can shorten the command like below, which makes it
+# work directly with any audio playback utility, but then you won't
+# be able to change the volume from the client application:
+# GenericExecuteSynth \
+# "printf %s \'$DATA\' | espeak-ng -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -stdin"
+
+GenericCmdDependency "espeak-ng"
+GenericCmdDependency "mbrola"
+GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
+
+# The following three items control punctuation levels None, Some, and All.
+# Each of these values will be substituted into the $PUNCT variable depending
+# on the value passed to speech dispatcher from applications.
+# Note that if an empty string is specified, then $PUNCT will be blank
+# which is a default situation for espeak.
+
+GenericPunctNone "--punct=\"\""
+GenericPunctSome "--punct=\"()[]{};:\""
+GenericPunctMost "--punct=\"()[]{};:\""
+GenericPunctAll "--punct"
+
+# GenericStripPunctChars is a list (enclosed in doublequotes) of
+# all the characters that should be replaced by whitespaces in
+# order not to be badly handled by the output module or misinterpreted
+# by shell.
+# GenericStripPunctChars  ""
+
+# If the language you need to pass in $LANGUAGE is different
+# from the standard ISO language code, you can specify
+# which string to use instead. If you wish to use
+# other than ISO charset for the specified language,
+# you can add it's name (as accepted by iconv) as a
+# third parameter in doublequotes, or use GenericDefaultCharset
+# to specify it
+
+GenericLanguage		  "en" "en-us"
+
+GenericDefaultCharset "utf-8"
+
+# Each voice is available if and only if the following files exist.
+# These files must be listed *before* the voices.
+
+VoiceFileDependency "/usr/share/mbrola/$VOICE/$VOICE"
+VoiceFileDependency "/usr/lib/$DEB_HOST_MULTIARCH/espeak-ng-data/voices/mb/mb-$VOICE"
+
+# AddVoice specifies which $VOICE string should be assigned to
+# each language and symbolic voice name. All the voices you want
+# to use must be specified here. This list will likely not be
+# up-to-date, please check eSpeak NG documentation and add the voices
+# you want to use.
+# All MBROLA voices for which a phoneme translation from espeak-ng to
+# MBROLA as of 12 October 2018 are listed, some commented with the
+# rationale to not include them by default. You still can ship or use
+# the commented voices if you uncomment the corresponding line.
+
+# As of Friday 12 October 2018 these mbrola voices aren't yet
+# supported by espeak-ng's phonemes translation to mbrola in git are:
+# bz1: Breton Female (25.0Mb)    Jean Pierre Messager
+# hb1: Hebrew Male (3.4Mb)    Yoram Meron
+# hb2: Hebrew Female (5.6Mb)    Esther Raizen
+# hn1: Korean Male (9.9Mb)    Kyongsok Gim
+# thus they are not listed below.
+# The language code in this list is the ISO 639-1 code.
+
+AddVoice "af" "MALE1" "af1"
+
+AddVoice "ar" "MALE1" "ar1"
+AddVoice "ar" "MALE2" "ar2"
+
+AddVoice "zh" "FEMALE1" "cn1"
+
+AddVoice "cs" "FEMALE1" "cz1"
+AddVoice "cs" "MALE1" "cz2"
+
+AddVoice "de" "FEMALE1" "de1"
+AddVoice "de" "MALE1" "de2"
+AddVoice "de" "FEMALE2" "de3"
+AddVoice "de" "MALE2" "de4"
+AddVoice "de" "FEMALE3" "de5"
+AddVoice "de" "MALE1" "de6"
+AddVoice "de" "FEMALE3" "de7"
+AddVoice "de" "MALE3" "de8"
+
+AddVoice "el" "MALE1" "gr1"
+AddVoice "el" "MALE2" "gr2"
+
+AddVoice "en" "FEMALE1" "us1"
+AddVoice "en" "MALE1" "en1"
+AddVoice "en" "MALE2" "us2"
+AddVoice "en" "MALE3" "us3"
+AddVoice "en-gb" "MALE1" "en1"
+AddVoice "en-us" "FEMALE1" "us1"
+AddVoice "en-us" "MALE1" "us2"
+AddVoice "en-us" "MALE2" "us3"
+
+AddVoice "es" "MALE1" "es1"
+AddVoice "es" "MALE2" "es2"
+AddVoice "es" "FEMALE1" "es3"
+AddVoice "es" "MALE3" "es4"
+AddVoice "es-mx" "MALE1" "mx1"
+AddVoice "es-mx" "MALE2" "mx2"
+AddVoice "es-ve" "MALE1" "vz1"
+
+AddVoice "et" "MALE1" "ee1"
+
+AddVoice "fa" "MALE1" "ir1"
+AddVoice "fa" "FEMALE1" "ir2"
+
+AddVoice "fr-ca" "MALE1" "ca1"
+AddVoice "fr-ca" "MALE2" "ca2"
+AddVoice "fr" "MALE1" "fr1"
+AddVoice "fr" "FEMALE1" "fr2"
+AddVoice "fr" "MALE2" "fr3"
+AddVoice "fr" "FEMALE2" "fr4"
+AddVoice "fr-be" "MALE1" "fr5"
+AddVoice "fr" "MALE3" "fr6"
+AddVoice "fr-be" "MALE2" "fr7"
+
+AddVoice "hi" "MALE1" "in1"
+AddVoice "hi" "MALE2" "in2"
+
+AddVoice "hu" "MALE1" "hu1"
+
+AddVoice "hr" "MALE1" "cr1"
+
+AddVoice "id" "MALE1" "id1"
+
+AddVoice "is" "MALE1" "ic1"
+
+AddVoice "it" "MALE1" "it1"
+AddVoice "it" "FEMALE1" "it2"
+AddVoice "it" "MALE2" "it3"
+AddVoice "it" "FEMALE2" "it4"
+
+AddVoice "jp" "MALE1" "jp1"
+AddVoice "jp" "FEMALE1" "jp2"
+AddVoice "jp" "FEMALE2" "jp3"
+
+AddVoice "la" "MALE1" "la1"
+
+AddVoice "lt" "MALE1" "lt1"
+AddVoice "lt" "MALE2" "lt2"
+
+Addvoice "ms" "FEMALE1" "ma1"
+
+# nl1 has a very limited set of diphones and is usable only for reading
+# numbers. Uncomment the next line if you want it.
+# AddVoice "nl" "CHILD-MALE" "nl1"
+AddVoice "nl" "MALE1" "nl2"
+AddVoice "nl" "FEMALE1" "nl3"
+
+AddVoice "mi" "MALE1" "nz1"
+
+AddVoice "pl" "FEMALE1" "pl1"
+
+AddVoice "pt-br" "MALE1" "br1"
+AddVoice "pt-br" "MALE2" "br2"
+AddVoice "pt-br" "MALE3" "br3"
+AddVoice "pt-br" "FEMALE1" "br4"
+AddVoice "pt" "FEMALE1" "pt1"
+
+AddVoice "ro" "MALE1" "ro1"
+
+AddVoice "sv" "MALE1" "sw1"
+AddVoice "sv" "FEMALE1" "sw2"
+
+AddVoice "te" "FEMALE1" "tl1"
+
+AddVoice "tr" "MALE1" "tr1"
+AddVoice "tr" "FEMALE1" "tr2"
+
+# DefaultVoice specifies which $VOICE string should be used if no voice is
+# specified otherwise.
+
+DefaultVoice    "en1"
+
+# These parameters set _rate_, _pitch_, and _volume_ conversion. This is
+# part of the core of the definition of this generic output
+# module for this concrete synthesizer, it's not intended to
+# be modified by common users.
+# The resulting rate (or pitch) has the form:
+#       (speechd_rate * GenericRateMultiply) + GenericRateAdd
+# while speechd_rate is a value between -100 (lowest) and +100 (highest)
+# You have to define some meaningful conversion for each synthesizer
+
+# Here's the mapping from SSIP (Speech Dispatcher) to ESpeak (v1.10):
+#
+#           SSIP Range  SSIP Default    ESpeak/MBROLA Range ESpeak Default
+#           ----------- ------------    ------------         --------------
+# Rate      -100 to 100     0           80 to 320       160
+# Pitch     -100 to 100     0            0 to 99         50
+# Volume    -100 to 100     0            0 to 2          --
+#
+# The SSIP defaults are actually controlled via DefaultRate, DefaultPitch, and
+# DefaultVolume in the speechd.conf file.
+
+GenericRateAdd          160
+GenericPitchAdd         50
+GenericVolumeAdd        1
+
+# (These values are multiplied by 100, because DotConf currently
+# doesn't support floats. So you can write 0.85 as 85 and so on.)
+
+GenericRateMultiply     160
+GenericPitchMultiply    50
+GenericVolumeMultiply   1
+
+# If the client program can't handle floats, you will have to
+# use these two options to force integers as the parameters
+# 1 means force integers, 0 means do nothing (write floats).
+
+GenericRateForceInteger     1
+GenericPitchForceInteger    1
+GenericVolumeForceInteger   0
+
+# Note that SSIP rates < -50 are spoken at -50.
+
+
+# Copyright (C) 2008-2010 Brailcom, o.p.s
+# Copyright (C) 2014 Luke Yelavich <themuso@ubuntu.com>
+# Copyright (C) 2018-2021, 2025 Samuel Thibault <samuel.thibault@ens-lyon.org>
+# Copyright (C) 2018 Didier Spaier <didier@slint.fr>
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.  See the GNU General Public License for more details (file
+# COPYING in the root directory).
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
--- a/doc/speech-dispatcher.texi
+++ b/doc/speech-dispatcher.texi
@@ -425,8 +425,8 @@ Check the @file{modules/espeak-ng-mbrola
 (resp. @file{modules/espeak-mbrola-generic.conf}) configuration files for the
 @code{AddVoice} lines. If a line for any of the voices you have installed
 (and it is supported by your version of eSpeak NG (resp. eSpeak),
-e.g. @code{ls /usr/share/espeak-ng-data/voices/mb/mb-*}
-(resp. @code{ls /usr/share/espeak-data/voices/mb/mb-*}))
+e.g. @code{ls /usr/lib/*/espeak-ng-data/voices/mb/mb-*}
+(resp. @code{ls /usr/lib/*/espeak-data/voices/mb/mb-*}))
 is not contained here, please add it. Check if @code{GenericExecuteString}
 contains the correct name of your mbrola binary and correct path to its voice
 database.
--- a/config/modules/espeak-mbrola-generic.conf
+++ /dev/null
@@ -1,208 +0,0 @@
-# Espeak mbrola output module is based on the generic plugin for Speech
-# Dispatcher. It means there is no code written explicitly for
-# this plugin, all the specifics are handled in this configuration
-# and we call a simple command line client to perform the actual
-# synthesis. Use this config file with the sd_generic output module.
-
-# Debug turns debugging on or off
-# See speechd.conf for information where debugging information is stored
-Debug 0
-
-# IMPORTANT: The audio output method relies on an audio playback
-# utility (play, aplay, paplay for OSS, ALSA or Pulse)
-# being installed. If this is not the case, consider installing it
-# or replace the $PLAY_COMMAND string in the GenericExecuteString below
-# with play, paplay or similar.
-#
-# GenericExecuteSynth is the shell command that should be
-# executed in order to say some message. This command must
-# stop saying the message on SIGKILL, otherwise it's useless.
-# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
-# which will be substituted for the appropriate value (you
-# can modify this value, see other parameters).
-# The command can be split into more lines, if necessary, using '\'.
-GenericExecuteSynth \
-"printf %s \'$DATA\' | espeak -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -q --stdin --pho | mbrola -v $VOLUME -e /usr/share/mbrola/$VOICE/$VOICE - -.au | $PLAY_COMMAND"
-
-GenericCmdDependency "espeak"
-GenericCmdDependency "mbrola"
-GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
-
-# The following three items control punctuation levels None, Some, and All.
-# Each of these values will be substituted into the $PUNCT variable depending
-# on the value passed to speech dispatcher from applications.
-# Note that if an empty string is specified, then $PUNCT will be blank 
-# which is a default situation for espeak.
- 
-GenericPunctNone ""
-GenericPunctSome "--punct=\"()[]{};:\""
-GenericPunctMost "--punct=\"()[]{};:\""
-GenericPunctAll "--punct"
-
-# GenericStripPunctChars is a list (enclosed in doublequotes) of
-# all the characters that should be replaced by whitespaces in
-# order not to be badly handled by the output module or misinterpreted
-# by shell.
-# GenericStripPunctChars  ""
-
-# If the language you need to pass in $LANGUAGE is different
-# from the standard ISO language code, you can specify
-# which string to use instead. If you wish to use
-# other than ISO charset for the specified language,
-# you can add it's name (as accepted by iconv) as a
-# third parameter in doublequotes, or use GenericDefaultCharset
-# to specify it
-
-
-GenericLanguage		  "en" "en-us"
-
-GenericDefaultCharset "utf-8"
-
-# Each voice is available if and only if the following files exist.
-# These files must be listed *before* the voices.
-
-VoiceFileDependency "/usr/share/mbrola/$VOICE/$VOICE"
-VoiceFileDependency "/usr/share/espeak-data/voices/mb/mb-$VOICE"
-
-# AddVoice specifies which $VOICE string should be assigned to
-# each language and symbolic voice name. All the voices you want
-# to use must be specified here. This list will likely not be
-# up-to-date, please check eSpeak documentation and add the voices
-# you want to use.
-
-AddVoice        "af"    "MALE1"       	"af1"
-
-AddVoice        "fr-ca" "MALE1"        "ca1"
-AddVoice        "fr-ca" "MALE2"        "ca2"
-
-AddVoice        "cs"    "MALE1"	      	"cz2"
-
-AddVoice        "de"    "MALE1"         "de4"
-AddVoice        "de"    "MALE2"         "de6"
-AddVoice        "de"    "MALE3"         "de2"
-AddVoice        "de"    "FEMALE1"       "de5"
-AddVoice        "de"    "FEMALE2"       "de7"
-AddVoice        "de"    "FEMALE3"       "de3"
-
-AddVoice        "el"    "MALE1"       	"gr1"
-AddVoice        "el"    "MALE2"       	"gr2"
-
-AddVoice        "en" "MALE1"		"en1"
-AddVoice        "en" "MALE2"		"us2"
-AddVoice        "en" "MALE3"		"us3"
-AddVoice        "en" "FEMALE1"		"us1"
-AddVoice        "en-gb" "MALE1"		"en1"
-AddVoice        "en-us" "MALE1"		"us2"
-AddVoice        "en-us" "MALE2"		"us3"
-AddVoice        "en-us" "FEMALE1"	"us1"
-
-AddVoice        "es"    "MALE1"		"es1"
-AddVoice        "es"    "MALE2"		"es2"
-AddVoice        "es-mx" "MALE1"       	"mx1"
-AddVoice        "es-mx" "MALE2"       	"mx2"
-AddVoice        "es-ve" "MALE1"       	"vz1"
-
-AddVoice        "et"    "MALE1"         "ee1"
-
-AddVoice        "fa"    "MALE1"       	"ir1"
-AddVoice        "fa"    "FEMALE1"       "ir2"
-
-AddVoice        "fr"    "MALE1"         "fr1"
-AddVoice        "fr"    "FEMALE1"       "fr4"
-AddVoice        "fr-be" "MALE1"         "fr5"
-AddVoice        "fr-be" "MALE2"         "fr7"
-
-AddVoice        "hu"    "MALE1"       	"hu1"
-
-AddVoice        "hr"    "MALE1"       	"cr1"
-
-AddVoice        "id"    "MALE1"       	"id1"
-
-AddVoice        "is"    "MALE1"       	"ic1"
-
-AddVoice        "it"    "MALE1"		"it3"
-AddVoice        "it"    "FEMALE1"	"it4"
-
-AddVoice        "la"    "MALE1"       	"la1"
-
-AddVoice        "nl"    "MALE1"       	"nl2"
-
-AddVoice        "pl"    "FEMALE1"       "pl1"
-
-AddVoice        "pt-br" "MALE1"       	"br1"
-AddVoice        "pt-br" "MALE2"       	"br3"
-AddVoice        "pt"    "FEMALE1"       "pt1"
-AddVoice        "pt-br" "FEMALE1"       "br4"
-
-AddVoice        "ro"    "MALE1"	      	"ro1"
-
-AddVoice        "sv"    "MALE1"         "sw1"
-AddVoice        "sv"    "FEMALE1"    	"sw2"
-
-AddVoice        "tr"    "MALE1"         "tr1"
-AddVoice        "tr"    "FEMALE1"       "tr2"
-
-# DefaultVoice specifies which $VOICE string should be used if no voice is
-# specified otherwise.
-
-DefaultVoice    "en1"
-
-# These parameters set _rate_, _pitch_, and _volume_ conversion. This is
-# part of the core of the definition of this generic output
-# module for this concrete synthesizer, it's not intended to
-# be modified by common users.
-# The resulting rate (or pitch) has the form:
-#       (speechd_rate * GenericRateMultiply) + GenericRateAdd
-# while speechd_rate is a value between -100 (lowest) and +100 (highest)
-# You have to define some meaningful conversion for each synthesizer
-
-# Here's the mapping from SSIP (Speech Dispatcher) to ESpeak (v1.10):
-#
-#           SSIP Range  SSIP Default    ESpeak/MBROLA Range ESpeak Default
-#           ----------- ------------    ------------         --------------
-# Rate      -100 to 100     0           80 to 320       160
-# Pitch     -100 to 100     0            0 to 99         50
-# Volume    -100 to 100     0            0 to 2          --
-#
-# The SSIP defaults are actually controlled via DefaultRate, DefaultPitch, and
-# DefaultVolume in the speechd.conf file.
-
-GenericRateAdd          160
-GenericPitchAdd         50
-GenericVolumeAdd        1
-
-# (These values are multiplied by 100, because DotConf currently
-# doesn't support floats. So you can write 0.85 as 85 and so on.)
-
-GenericRateMultiply     160
-GenericPitchMultiply    50
-GenericVolumeMultiply   1
-
-# If the client program can't handle floats, you will have to
-# use these two options to force integers as the parameters
-# 1 means force integers, 0 means do nothing (write floats).
-
-GenericRateForceInteger     1
-GenericPitchForceInteger    1
-GenericVolumeForceInteger   0
-
-# Note that SSIP rates < -50 are spoken at -50.
-
-
-# Copyright (C) 2008-2010 Brailcom, o.p.s
-# Copyright (C) 2014 Luke Yelavich <themuso@ubuntu.com>
-# Copyright (C) 2018-2021, 2025 Samuel Thibault <samuel.thibault@ens-lyon.org>
-# Copyright (C) 2018 Didier Spaier <didier@slint.fr>
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.  See the GNU General Public License for more details (file
-# COPYING in the root directory).
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <https://www.gnu.org/licenses/>.
--- /dev/null
+++ b/config/modules/espeak-mbrola-generic.conf.in
@@ -0,0 +1,208 @@
+# Espeak mbrola output module is based on the generic plugin for Speech
+# Dispatcher. It means there is no code written explicitly for
+# this plugin, all the specifics are handled in this configuration
+# and we call a simple command line client to perform the actual
+# synthesis. Use this config file with the sd_generic output module.
+
+# Debug turns debugging on or off
+# See speechd.conf for information where debugging information is stored
+Debug 0
+
+# IMPORTANT: The audio output method relies on an audio playback
+# utility (play, aplay, paplay for OSS, ALSA or Pulse)
+# being installed. If this is not the case, consider installing it
+# or replace the $PLAY_COMMAND string in the GenericExecuteString below
+# with play, paplay or similar.
+#
+# GenericExecuteSynth is the shell command that should be
+# executed in order to say some message. This command must
+# stop saying the message on SIGKILL, otherwise it's useless.
+# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
+# which will be substituted for the appropriate value (you
+# can modify this value, see other parameters).
+# The command can be split into more lines, if necessary, using '\'.
+GenericExecuteSynth \
+"printf %s \'$DATA\' | espeak -v mb-$VOICE -s $RATE -p $PITCH $PUNCT -q --stdin --pho | mbrola -v $VOLUME -e /usr/share/mbrola/$VOICE/$VOICE - -.au | $PLAY_COMMAND"
+
+GenericCmdDependency "espeak"
+GenericCmdDependency "mbrola"
+GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
+
+# The following three items control punctuation levels None, Some, and All.
+# Each of these values will be substituted into the $PUNCT variable depending
+# on the value passed to speech dispatcher from applications.
+# Note that if an empty string is specified, then $PUNCT will be blank
+# which is a default situation for espeak.
+
+GenericPunctNone ""
+GenericPunctSome "--punct=\"()[]{};:\""
+GenericPunctMost "--punct=\"()[]{};:\""
+GenericPunctAll "--punct"
+
+# GenericStripPunctChars is a list (enclosed in doublequotes) of
+# all the characters that should be replaced by whitespaces in
+# order not to be badly handled by the output module or misinterpreted
+# by shell.
+# GenericStripPunctChars  ""
+
+# If the language you need to pass in $LANGUAGE is different
+# from the standard ISO language code, you can specify
+# which string to use instead. If you wish to use
+# other than ISO charset for the specified language,
+# you can add it's name (as accepted by iconv) as a
+# third parameter in doublequotes, or use GenericDefaultCharset
+# to specify it
+
+
+GenericLanguage		  "en" "en-us"
+
+GenericDefaultCharset "utf-8"
+
+# Each voice is available if and only if the following files exist.
+# These files must be listed *before* the voices.
+
+VoiceFileDependency "/usr/share/mbrola/$VOICE/$VOICE"
+VoiceFileDependency "/usr/lib/$DEB_HOST_MULTIARCH/espeak-data/voices/mb/mb-$VOICE"
+
+# AddVoice specifies which $VOICE string should be assigned to
+# each language and symbolic voice name. All the voices you want
+# to use must be specified here. This list will likely not be
+# up-to-date, please check eSpeak documentation and add the voices
+# you want to use.
+
+AddVoice        "af"    "MALE1"       	"af1"
+
+AddVoice        "fr-ca" "MALE1"        "ca1"
+AddVoice        "fr-ca" "MALE2"        "ca2"
+
+AddVoice        "cs"    "MALE1"	      	"cz2"
+
+AddVoice        "de"    "MALE1"         "de4"
+AddVoice        "de"    "MALE2"         "de6"
+AddVoice        "de"    "MALE3"         "de2"
+AddVoice        "de"    "FEMALE1"       "de5"
+AddVoice        "de"    "FEMALE2"       "de7"
+AddVoice        "de"    "FEMALE3"       "de3"
+
+AddVoice        "el"    "MALE1"       	"gr1"
+AddVoice        "el"    "MALE2"       	"gr2"
+
+AddVoice        "en" "MALE1"		"en1"
+AddVoice        "en" "MALE2"		"us2"
+AddVoice        "en" "MALE3"		"us3"
+AddVoice        "en" "FEMALE1"		"us1"
+AddVoice        "en-gb" "MALE1"		"en1"
+AddVoice        "en-us" "MALE1"		"us2"
+AddVoice        "en-us" "MALE2"		"us3"
+AddVoice        "en-us" "FEMALE1"	"us1"
+
+AddVoice        "es"    "MALE1"		"es1"
+AddVoice        "es"    "MALE2"		"es2"
+AddVoice        "es-mx" "MALE1"       	"mx1"
+AddVoice        "es-mx" "MALE2"       	"mx2"
+AddVoice        "es-ve" "MALE1"       	"vz1"
+
+AddVoice        "et"    "MALE1"         "ee1"
+
+AddVoice        "fa"    "MALE1"       	"ir1"
+AddVoice        "fa"    "FEMALE1"       "ir2"
+
+AddVoice        "fr"    "MALE1"         "fr1"
+AddVoice        "fr"    "FEMALE1"       "fr4"
+AddVoice        "fr-be" "MALE1"         "fr5"
+AddVoice        "fr-be" "MALE2"         "fr7"
+
+AddVoice        "hu"    "MALE1"       	"hu1"
+
+AddVoice        "hr"    "MALE1"       	"cr1"
+
+AddVoice        "id"    "MALE1"       	"id1"
+
+AddVoice        "is"    "MALE1"       	"ic1"
+
+AddVoice        "it"    "MALE1"		"it3"
+AddVoice        "it"    "FEMALE1"	"it4"
+
+AddVoice        "la"    "MALE1"       	"la1"
+
+AddVoice        "nl"    "MALE1"       	"nl2"
+
+AddVoice        "pl"    "FEMALE1"       "pl1"
+
+AddVoice        "pt-br" "MALE1"       	"br1"
+AddVoice        "pt-br" "MALE2"       	"br3"
+AddVoice        "pt"    "FEMALE1"       "pt1"
+AddVoice        "pt-br" "FEMALE1"       "br4"
+
+AddVoice        "ro"    "MALE1"	      	"ro1"
+
+AddVoice        "sv"    "MALE1"         "sw1"
+AddVoice        "sv"    "FEMALE1"    	"sw2"
+
+AddVoice        "tr"    "MALE1"         "tr1"
+AddVoice        "tr"    "FEMALE1"       "tr2"
+
+# DefaultVoice specifies which $VOICE string should be used if no voice is
+# specified otherwise.
+
+DefaultVoice    "en1"
+
+# These parameters set _rate_, _pitch_, and _volume_ conversion. This is
+# part of the core of the definition of this generic output
+# module for this concrete synthesizer, it's not intended to
+# be modified by common users.
+# The resulting rate (or pitch) has the form:
+#       (speechd_rate * GenericRateMultiply) + GenericRateAdd
+# while speechd_rate is a value between -100 (lowest) and +100 (highest)
+# You have to define some meaningful conversion for each synthesizer
+
+# Here's the mapping from SSIP (Speech Dispatcher) to ESpeak (v1.10):
+#
+#           SSIP Range  SSIP Default    ESpeak/MBROLA Range ESpeak Default
+#           ----------- ------------    ------------         --------------
+# Rate      -100 to 100     0           80 to 320       160
+# Pitch     -100 to 100     0            0 to 99         50
+# Volume    -100 to 100     0            0 to 2          --
+#
+# The SSIP defaults are actually controlled via DefaultRate, DefaultPitch, and
+# DefaultVolume in the speechd.conf file.
+
+GenericRateAdd          160
+GenericPitchAdd         50
+GenericVolumeAdd        1
+
+# (These values are multiplied by 100, because DotConf currently
+# doesn't support floats. So you can write 0.85 as 85 and so on.)
+
+GenericRateMultiply     160
+GenericPitchMultiply    50
+GenericVolumeMultiply   1
+
+# If the client program can't handle floats, you will have to
+# use these two options to force integers as the parameters
+# 1 means force integers, 0 means do nothing (write floats).
+
+GenericRateForceInteger     1
+GenericPitchForceInteger    1
+GenericVolumeForceInteger   0
+
+# Note that SSIP rates < -50 are spoken at -50.
+
+
+# Copyright (C) 2008-2010 Brailcom, o.p.s
+# Copyright (C) 2014 Luke Yelavich <themuso@ubuntu.com>
+# Copyright (C) 2018-2021, 2025 Samuel Thibault <samuel.thibault@ens-lyon.org>
+# Copyright (C) 2018 Didier Spaier <didier@slint.fr>
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.  See the GNU General Public License for more details (file
+# COPYING in the root directory).
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.