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
|
# Note! This is used by the www.rockbox.org infrastructure
# to know what targets/etc should be displayed, built, and so forth.
#
$publicrelease="3.15";
$releasedate="15 Nov 2019";
$releasenotes="/wiki/ReleaseNotes315";
################################################################
# 'modelname' => {
# name => 'Full Name',
# status => 1, # 0=retired, 1=unusable, 2=unstable, 3=stable
# sim = 1, # optional (defaults 1 for status 2/3 and 0 for status 1)
# ram => 2, # optional (used?)
# manual => 'modelname2', # optional (uses modelname2's manual)
# icon => 'modelname3', # optional (uses modelname3's icon)
# voice => 'modelname4' # optional (uses modelname4's voice)
# release => '3.14', # optional (final release version, if different from above)
# manualok => 1, # optional (defaults 1 for status 3 and 0 for rest)
# }
%builds = (
'archosfmrecorder' => {
name => 'Archos FM Recorder',
status => 0,
ram => 2,
release => '3.15',
},
'archosondiofm' => {
name => 'Archos Ondio FM',
status => 0,
ram => 2,
release => '3.15',
},
'archosondiosp' => {
name => 'Archos Ondio SP',
status => 0,
ram => 2,
release => '3.15',
},
'archosplayer' => {
name => 'Archos Player/Studio',
status => 0,
ram => 2,
release => '3.15',
},
'archosrecorder' => {
name => 'Archos Recorder v1',
status => 0, # Has not compiled since 2013
ram => 2,
release => '3.13', # Haven't had a proper release since then.
},
'archosrecorderv2' => {
name => 'Archos Recorder v2',
status => 0,
ram => 2,
manual => "archosfmrecorder",
release => '3.15',
},
'cowond2' => {
name => 'Cowon D2',
status => 2,
},
'gigabeatfx' => {
name => 'Toshiba Gigabeat F/X',
status => 3,
},
'gigabeats' => {
name => 'Toshiba Gigabeat S',
status => 2,
},
'gogearhdd1630' => {
name => 'Philips GoGear HDD1630',
manualok => 0,
status => 3,
},
'gogearhdd6330' => {
name => 'Philips GoGear HDD6330',
manualok => 0,
status => 3,
},
'gogearsa9200' => {
name => 'Philips GoGear SA9200',
status => 3,
},
'hifietma9' => {
name => 'HiFi E.T MA9',
sim => 0,
status => 2,
},
'hifietma9c' => {
name => 'HiFi E.T MA9C',
sim => 0,
status => 2,
},
'hifietma8' => {
name => 'HiFi E.T MA8',
status => 2,
sim => 0,
},
'hifietma8c' => {
name => 'HiFi E.T MA8C',
status => 2,
sim => 0,
},
'hifimanhm60x' => {
name => 'HiFiMAN HM-60x',
sim => 0,
status => 2,
},
'hifimanhm801' => {
name => 'HiFiMAN HM-801',
sim => 0,
status => 2,
},
'iaudiom3' => {
name => 'iAudio M3',
status => 3,
},
'iaudiom5' => {
name => 'iAudio M5',
status => 3,
},
'iaudiox5' => {
name => 'iAudio X5',
status => 3,
},
'ibassodx50' => {
name => 'iBasso DX50',
sim => 0,
status => 2,
},
'ibassodx90' => {
name => 'iBasso DX90',
sim => 0,
status => 2,
},
'ipod1g2g' => {
name => 'iPod 1st and 2nd gen',
status => 3,
},
'ipod3g' => {
name => 'iPod 3rd gen',
status => 3,
},
'ipod4g' => {
name => 'iPod 4th gen Grayscale',
status => 3,
},
'ipodcolor' => {
name => 'iPod color/Photo',
status => 3,
},
'ipodmini1g' => {
name => 'iPod Mini 1st gen',
status => 3,
},
'ipodmini2g' => {
name => 'iPod Mini 2nd gen',
status => 3,
icon => 'ipodmini1g',
manual => 'ipodmini1g',
},
'ipodnano1g' => {
name => 'iPod Nano 1st gen',
status => 3,
},
'ipodnano2g' => {
name => 'iPod Nano 2nd gen',
status => 3,
},
'ipodvideo' => {
name => 'iPod Video',
status => 3,
},
'ipod6g' => {
name => 'iPod 6th gen (Classic)',
status => 3,
},
'iriverh10' => {
name => 'iriver H10 20GB',
status => 3,
},
'iriverh10_5gb' => {
name => 'iriver H10 5GB',
status => 3,
},
'iriverh100' => {
name => 'iriver H100/115',
status => 3,
},
'iriverh120' => {
name => 'iriver H120/140',
status => 3,
icon => 'iriverh100',
manual => 'iriverh100',
},
'iriverh300' => {
name => 'iriver H320/340',
status => 3,
},
'lyreproto1' => {
name => 'Lyre Prototype 1',
status => 1,
},
'mini2440' => {
name => 'Mini 2440',
status => 1,
},
'meizum3' => {
name => 'Meizu M3',
status => 1,
},
'meizum6sl' => {
name => 'Meizu M6SL',
status => 1,
},
'meizum6sp' => {
name => 'Meizu M6SP',
status => 1,
},
'mrobe100' => {
name => 'Olympus M-Robe 100',
status => 3,
},
'mrobe500' => {
name => 'Olympus M-Robe 500',
status => 2,
},
'ondavx747' => {
name => 'Onda VX747',
status => 1,
sim => 1,
},
'ondavx747p' => {
name => 'Onda VX747+',
status => 1,
sim => 1,
},
'ondavx767' => {
name => 'Onda VX767',
status => 1,
},
'ondavx777' => {
name => 'Onda VX777',
status => 1,
sim => 1,
},
'rk27generic' => {
name => 'Rockchip rk27xx',
status => 1,
},
'samsungyh820' => {
name => 'Samsung YH-820',
status => 3,
},
'samsungyh920' => {
name => 'Samsung YH-920',
status => 3,
},
'samsungyh925' => {
name => 'Samsung YH-925',
status => 3,
},
'samsungypr0' => {
name => 'Samsung YP-R0',
status => 2,
},
'samsungypr1' => {
name => 'Samsung YP-R1',
sim => 0,
status => 2,
},
'samsungyps3' => {
name => 'Samsung YP-S3',
status => 1,
},
'sansac200' => {
name => 'SanDisk Sansa c200',
status => 3,
},
'sansac200v2' => {
name => 'SanDisk Sansa c200 v2',
status => 3,
icon => 'sansac200',
},
'sansaclip' => {
name => 'SanDisk Sansa Clip v1',
status => 3,
},
'sansaclipv2' => {
name => 'SanDisk Sansa Clip v2',
status => 3,
icon => 'sansaclip',
},
'sansaclipplus' => {
name => 'SanDisk Sansa Clip+',
status => 3,
},
'sansaclipzip' => {
name => 'SanDisk Sansa Clip Zip',
status => 3,
},
'sansaconnect' => {
name => 'SanDisk Sansa Connect',
status => 2,
},
'sansae200' => {
name => 'SanDisk Sansa e200',
status => 3,
},
'sansae200v2' => {
name => 'SanDisk Sansa e200 v2',
status => 3,
icon => 'sansae200',
},
'sansafuze' => {
name => 'SanDisk Sansa Fuze',
status => 3,
},
'sansafuzev2' => {
name => 'SanDisk Sansa Fuze v2',
status => 3,
icon => 'sansafuze',
},
'sansafuzeplus' => {
name => 'SanDisk Sansa Fuze+',
status => 3,
icon => 'sansafuzeplus',
},
'sansam200v4' => {
name => 'SanDisk Sansa m200 v4',
status => 1,
sim => 1,
},
'sansaview' => {
name => 'SanDisk Sansa View',
status => 1,
},
'vibe500' => {
name => 'Packard Bell Vibe 500',
status => 3,
},
'zenvision' => {
name => 'Creative Zen Vision',
status => 1,
sim => 1,
},
'zenvisionm30gb' => {
name => 'Creative Zen Vision:M 30GB',
status => 1,
sim => 1,
},
'zenvisionm60gb' => {
name => 'Creative Zen Vision:M 60GB',
status => 1,
sim => 1,
},
'mpiohd200' => {
name => 'MPIO HD200',
status => 2,
},
'mpiohd300' => {
name => 'MPIO HD300',
status => 3,
},
'creativezenxfi2' => {
name => 'Creative Zen X-Fi2',
status => 2,
},
'creativezenxfi3' => {
name => 'Creative Zen X-Fi3',
status => 3,
manualok => 0,
},
'sonynwze350' => {
name => 'Sony NWZ-E350',
sim => 0,
status => 2,
},
'sonynwze360' => {
name => 'Sony NWZ-E360',
status => 3,
manualok => 0,
},
'sonynwze370' => {
name => 'Sony NWZ-E370/E380',
status => 3,
manualok => 0,
},
'sonynwze450' => {
name => 'Sony NWZ-E450',
sim => 0,
status => 2,
},
'sonynwze460' => {
name => 'Sony NWZ-E460',
sim => 0,
status => 2,
},
'sonynwze470' => {
name => 'Sony NWZ-E470',
sim => 0,
status => 2,
},
'sonynwze580' => {
name => 'Sony NWZ-E580',
sim => 0,
status => 2,
},
'sonynwza10' => {
name => 'Sony NWZ-A10',
sim => 0,
status => 2,
},
'sonynwa20' => {
name => 'Sony NW-A20',
sim => 0,
status => 2,
},
'sonynwza860' => {
name => 'Sony NWZ-A860',
status => 2,
},
'sonynwzs750' => {
name => 'Sony NWZ-S750',
status => 2,
sim => 0,
},
'creativezenxfi' => {
name => 'Creative Zen X-Fi',
status => 3,
manualok => 0,
},
'creativezenxfistyle' => {
name => 'Creative Zen X-Fi Style',
status => 3,
manualok => 0,
},
'creativezen' => {
name => 'Creative Zen',
status => 2
},
'creativezenmozaic' => {
name => 'Creative Zen Mozaic',
status => 3,
manualok => 0,
},
'agptekrocker' => {
name => 'Agptek Rocker',
status => 3,
release => '4.0', # Remove once 4.0 lands
},
'xduoox3' => {
name => 'xDuoo X3',
status => 3,
release => '4.0', # Remove once 4.0 lands
},
'xduoox3ii' => {
name => 'xDuoo X3ii',
manualok => 0, # Remove when manual is written
status => 3,
release => '4.0', # Remove once 4.0 lands
},
'xduoox20' => {
name => 'xDuoo X20',
manualok => 0, # Remove when manual is written
status => 3,
release => '4.0', # Remove once 4.0 lands
},
'fiiom3klinux' => {
name => 'FiiO M3K (Linux)',
status => 1,
},
'fiiom3k' => {
name => 'FiiO M3K',
status => 2,
manualok => 1, # Remove once status moves to 3
},
'aigoerosq' => {
name => 'AIGO EROS Q / K (Hosted)',
status => 2,
},
'erosqnative' => {
name => 'AIGO EROS Q / K (Native)',
status => 2,
},
'ihifi770' => {
name => 'Xuelin iHIFI 770',
status => 2,
},
'ihifi770c' => {
name => 'Xuelin iHIFI 770C',
status => 2,
},
'ihifi800' => {
name => 'Xuelin iHIFI 800',
status => 2,
},
'shanlingq1' => {
name => 'Shanling Q1',
status => 2,
manualok => 1, # Remove once status moves to 3
},
);
sub manualname {
my $m = shift @_;
return $builds{$m}{manual} ? "$builds{$m}{manual}" : $m;
}
sub voicename {
my $m = shift @_;
return $builds{$m}{voice} ? "$builds{$m}{voice}" : $m;
}
sub byname {
return uc $builds{$a}{name} cmp uc $builds{$b}{name};
}
sub usablebuilds {
my @list;
for my $b (sort byname keys %builds) {
push @list, $b if ($builds{$b}{status} >= 2);
}
return @list;
}
sub manualbuilds {
my @list;
for my $b (sort byname keys %builds) {
push @list, $b if (($builds{$b}{status} > 2 && !defined($builds{$b}{manualok})) ||
(defined($builds{$b}{manualok}) && ($builds{$b}{manualok} > 0)));
}
return @list;
}
sub stablebuilds {
my @list;
for my $b (sort byname keys %builds) {
push @list, $b if ($builds{$b}{status} >= 3) or $builds{$b}{release};
}
return @list;
}
sub allbuilds {
my @list;
for my $b (sort byname keys %builds) {
push @list, $b;
}
return @list;
}
sub simbuilds {
my @list;
for my $b (&allbuilds) {
push @list, $b if (defined($builds{$b}{sim}) and $builds{$b}{sim});
push @list, $b if (!defined($builds{$b}{sim}) and $builds{$b}{status} > 1);
}
return @list;
}
################################################################
# 'voicename' => {
# lang => 'langname', # source rockbox .lang file
# name => 'Native Name ( English Name )', # descriptive text
# short => 'xx', # short iso621-ish text
# defengine => 'enginename', # which engine to prefer
# engines => { # supported engines
# enginenamea = '-opt1=x -opt2=y', # options for enginea
# enginenameb = '-lang=xx', # options for engineb
# },
# enabled => 1, # set to 0 or leave out to disable
# }
# A single source language file can have many voice variants.
# For example, Mandarin and Cantonese use the same "Chinese" script.
# Also, different genders or regional accents for the same language
%voices = (
# UK English always comes first; it's the "master"
'english' => {
'lang' => 'english',
'name' => 'UK English',
'short' => 'en-gb',
'defengine' => 'piper',
'engines' => {
'festival' => '--language english',
'espeak' => '-ven-gb -k 5',
'gtts' => '-l en -t co.uk',
'piper' => 'en_GB-semaine-medium.onnx',
},
'enabled' => 1,
},
# Everything else in alphabetical order
'bulgarian' => {
'lang' => 'bulgarian',
'name' => 'Български (Bulgarian)',
'short' => 'bg',
'defengine' => 'espeak', # XXX Switch to gtts when buildserver is updated
'engines' => {
'espeak' => '-vbg',
'gtts' => '-l bg',
# No piper voice yet.
},
'enabled' => 1,
},
'chinese-simp' => { # Mandarin?
'lang' => 'chinese-simp',
'name' => '简体中文 (Chinese Simplified)',
'short' => 'zh_cn',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vzh',
'gtts' => '-l zh',
'piper' => 'zh_CN-huayan-medium.onnx',
},
'enabled' => 1,
},
'czech' => {
'lang' => 'czech',
'name' => 'Čeština (Czech)',
'short' => 'cs',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vcs',
'gtts' => '-l cs',
'piper' => 'cs_CZ-jirka-medium.onnx',
},
'enabled' => 1,
},
'dansk' => {
'lang' => 'dansk',
'name' => 'Dansk (Danish)',
'short' => 'da',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vda',
'gtts' => '-l da',
'piper' => 'da_DK-talesyntese-medium.onnx',
},
'enabled' => 0,
},
'deutsch' => {
'lang' => 'deutsch',
'name' => 'Deutsch (German)',
'short' => 'de',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vde',
'gtts' => '-l de',
'piper' => 'de_DE-thorsten-high.onnx',
},
'enabled' => 1,
},
'eesti' => {
'lang' => 'eesti',
'name' => 'Eesti (Estonian)',
'short' => 'et',
'defengine' => 'espeak',
'engines' => {
'espeak' => '-vet',
'gtts' => '-l et',
# No piper voice yet.
},
'enabled' => 0,
},
'english-us' => {
'lang' => 'english-us',
'name' => 'American English',
'short' => 'en-us',
'defengine' => 'piper',
'engines' => {
'festival' => '--language english',
'espeak' => '-ven-us -k 5',
'gtts' => '-l en -t us',
'piper' => 'en_US-lessac-high.onnx',
},
'enabled' => 1,
},
'espanol' => {
'lang' => 'espanol',
'name' => 'Spanish (Peninsular)',
'short' => 'es-es',
'defengine' => 'piper',
'engines' => {
'festival' => '--language spanish',
'espeak' => '-ves -k 5',
'gtts' => '-l es',
'piper' => 'es_ES-sharvard-medium.onnx',
},
'enabled' => 0,
},
'espanol-mx' => {
'lang' => 'espanol',
'name' => 'Spanish (Mexican)',
'short' => 'es-mx',
'defengine' => 'espeak',
'engines' => {
'espeak' => '-ves -k 6',
'gtts' => '-l es -t mx',
# No piper voice yet.
},
'enabled' => 0,
},
'francais' => {
'lang' => 'francais',
'name' => 'Français (French)',
'short' => 'fr',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vfr-fr',
'gtts' => '-l fr',
'piper' => 'fr_FR-siwis-medium.onnx',
},
'enabled' => 1,
},
'greek' => {
'lang' => 'greek',
'name' => 'Ελληνικά (Greek)',
'short' => 'el',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vel',
'gtts' => '-l el',
'piper' => 'el_GR-rapunzelina-low.onnx',
},
'enabled' => 1,
},
'italiano' => {
'lang' => 'italiano',
'name' => 'Italiano (Italian)',
'short' => 'it',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vit',
'gtts' => '-l it',
'piper' => 'it_IT-paola-medium.onnx',
},
'enabled' => 1,
},
'korean' => { #
'lang' => 'korean',
'name' => '한국어 (Korean)',
'short' => 'ko',
'defengine' => 'espeak',
'engines' => {
'espeak' => '-vko',
'gtts' => '-l ko',
},
'enabled' => 1,
},
'nederlands' => {
'lang' => 'nederlands',
'name' => 'Nederlands (Dutch)',
'short' => 'nl',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vnl',
'gtts' => '-l nl',
'piper' => 'nl_NL-mls-medium.onnx',
},
'enabled' => 1,
},
'norsk' => {
'lang' => 'norsk',
'name' => 'Norsk (Norwegian)',
'short' => 'no',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vno',
'gtts' => '-l no',
'piper' => 'no_NO-talesyntese-medium.onnx',
},
'enabled' => 1,
},
'polski' => {
'lang' => 'polski',
'name' => 'Polski (Polish)',
'short' => 'pl',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vpl',
'gtts' => '-l pl',
'piper' => 'pl_PL-gosia-medium.onnx',
},
'enabled' => 1,
},
'russian' => {
'lang' => 'russian',
'name' => 'Русский (Russian)',
'short' => 'ru',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vru',
'gtts' => '-l ru',
'piper' => 'ru_RU-irina-medium.onnx',
},
'enabled' => 1,
},
'slovak' => {
'lang' => 'slovak',
'name' => 'Slovenský (Slovak)',
'short' => 'sk',
'defengine' => 'espeak',
'engines' => {
'espeak' => '-vsk',
'gtts' => '-l sk',
'piper' => 'sk_SK-lili-medium.onnx',
},
'enabled' => 1,
},
'srpski' => {
'lang' => 'srpski',
'name' => 'српски (Serbian)',
'short' => 'sr',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vsr',
'gtts' => '-l sr',
'piper' => 'sr_RS-serbski_institut-medium.onnx',
},
'enabled' => 1,
},
'svenska' => {
'lang' => 'svenska',
'name' => 'Svenska (Swedish)',
'short' => 'sr',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vsv',
'gtts' => '-l sv',
'piper' => 'sv_SE-nst-medium.onnx',
},
'enabled' => 0,
},
'turkce' => {
'lang' => 'turkce',
'name' => 'Türkçe (Turkish)',
'short' => 'tr',
'defengine' => 'piper',
'engines' => {
'espeak' => '-vtr',
'gtts' => '-l tr',
'piper' => 'tr_TR-fettah-medium.onnx',
},
'enabled' => 1,
},
);
sub byshortname {
return uc $voices{$a}{short} cmp uc $voices{$b}{short};
}
sub allvoices {
my @list;
for my $b (sort byshortname keys %voices) {
push @list, $b if (defined($voices{$b}->{enabled}) && $voices{$b}->{enabled});
}
return @list;
}
sub voicesforlang($) {
my $l = shift @_;
my @list;
for my $b (sort byshortname keys %voices) {
push @list, $b if ($voices{$b}{lang} eq $b && defined($voices{$b}->{enabled}) && $voices{$b}->{enabled});
}
return @list;
}
1;
|