piper-phonemize-node 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/addon-static-import.js +58 -0
- package/addon.js +70 -0
- package/espeak-ng-data/af_dict +0 -0
- package/espeak-ng-data/am_dict +0 -0
- package/espeak-ng-data/an_dict +0 -0
- package/espeak-ng-data/ar_dict +0 -0
- package/espeak-ng-data/as_dict +0 -0
- package/espeak-ng-data/az_dict +0 -0
- package/espeak-ng-data/ba_dict +0 -0
- package/espeak-ng-data/be_dict +0 -0
- package/espeak-ng-data/bg_dict +0 -0
- package/espeak-ng-data/bn_dict +0 -0
- package/espeak-ng-data/bpy_dict +0 -0
- package/espeak-ng-data/bs_dict +0 -0
- package/espeak-ng-data/ca_dict +0 -0
- package/espeak-ng-data/chr_dict +0 -0
- package/espeak-ng-data/cmn_dict +0 -0
- package/espeak-ng-data/cs_dict +0 -0
- package/espeak-ng-data/cv_dict +0 -0
- package/espeak-ng-data/cy_dict +0 -0
- package/espeak-ng-data/da_dict +0 -0
- package/espeak-ng-data/de_dict +0 -0
- package/espeak-ng-data/el_dict +0 -0
- package/espeak-ng-data/en_dict +0 -0
- package/espeak-ng-data/eo_dict +0 -0
- package/espeak-ng-data/es_dict +0 -0
- package/espeak-ng-data/et_dict +0 -0
- package/espeak-ng-data/eu_dict +0 -0
- package/espeak-ng-data/fa_dict +0 -0
- package/espeak-ng-data/fi_dict +0 -0
- package/espeak-ng-data/fr_dict +0 -0
- package/espeak-ng-data/ga_dict +0 -0
- package/espeak-ng-data/gd_dict +0 -0
- package/espeak-ng-data/gn_dict +0 -0
- package/espeak-ng-data/grc_dict +0 -0
- package/espeak-ng-data/gu_dict +0 -0
- package/espeak-ng-data/hak_dict +0 -0
- package/espeak-ng-data/haw_dict +0 -0
- package/espeak-ng-data/he_dict +0 -0
- package/espeak-ng-data/hi_dict +0 -0
- package/espeak-ng-data/hr_dict +0 -0
- package/espeak-ng-data/ht_dict +0 -0
- package/espeak-ng-data/hu_dict +0 -0
- package/espeak-ng-data/hy_dict +0 -0
- package/espeak-ng-data/ia_dict +0 -0
- package/espeak-ng-data/id_dict +0 -0
- package/espeak-ng-data/intonations +0 -0
- package/espeak-ng-data/io_dict +0 -0
- package/espeak-ng-data/is_dict +0 -0
- package/espeak-ng-data/it_dict +0 -0
- package/espeak-ng-data/ja_dict +0 -0
- package/espeak-ng-data/jbo_dict +0 -0
- package/espeak-ng-data/ka_dict +0 -0
- package/espeak-ng-data/kk_dict +0 -0
- package/espeak-ng-data/kl_dict +0 -0
- package/espeak-ng-data/kn_dict +0 -0
- package/espeak-ng-data/ko_dict +0 -0
- package/espeak-ng-data/kok_dict +0 -0
- package/espeak-ng-data/ku_dict +0 -0
- package/espeak-ng-data/ky_dict +0 -0
- package/espeak-ng-data/la_dict +0 -0
- package/espeak-ng-data/lang/aav/vi +8 -0
- package/espeak-ng-data/lang/aav/vi-VN-x-central +9 -0
- package/espeak-ng-data/lang/aav/vi-VN-x-south +9 -0
- package/espeak-ng-data/lang/art/eo +4 -0
- package/espeak-ng-data/lang/art/ia +2 -0
- package/espeak-ng-data/lang/art/io +5 -0
- package/espeak-ng-data/lang/art/jbo +4 -0
- package/espeak-ng-data/lang/art/lfn +8 -0
- package/espeak-ng-data/lang/art/piqd +5 -0
- package/espeak-ng-data/lang/art/py +7 -0
- package/espeak-ng-data/lang/art/qdb +6 -0
- package/espeak-ng-data/lang/art/qya +4 -0
- package/espeak-ng-data/lang/art/sjn +4 -0
- package/espeak-ng-data/lang/azc/nci +6 -0
- package/espeak-ng-data/lang/bat/lt +2 -0
- package/espeak-ng-data/lang/bat/ltg +12 -0
- package/espeak-ng-data/lang/bat/lv +9 -0
- package/espeak-ng-data/lang/bnt/sw +4 -0
- package/espeak-ng-data/lang/bnt/tn +4 -0
- package/espeak-ng-data/lang/ccs/ka +3 -0
- package/espeak-ng-data/lang/cel/cy +4 -0
- package/espeak-ng-data/lang/cel/ga +4 -0
- package/espeak-ng-data/lang/cel/gd +4 -0
- package/espeak-ng-data/lang/cus/om +4 -0
- package/espeak-ng-data/lang/dra/kn +5 -0
- package/espeak-ng-data/lang/dra/ml +5 -0
- package/espeak-ng-data/lang/dra/ta +5 -0
- package/espeak-ng-data/lang/dra/te +7 -0
- package/espeak-ng-data/lang/esx/kl +3 -0
- package/espeak-ng-data/lang/eu +5 -0
- package/espeak-ng-data/lang/gmq/da +4 -0
- package/espeak-ng-data/lang/gmq/is +2 -0
- package/espeak-ng-data/lang/gmq/nb +7 -0
- package/espeak-ng-data/lang/gmq/sv +2 -0
- package/espeak-ng-data/lang/gmw/af +8 -0
- package/espeak-ng-data/lang/gmw/de +3 -0
- package/espeak-ng-data/lang/gmw/en +8 -0
- package/espeak-ng-data/lang/gmw/en-029 +20 -0
- package/espeak-ng-data/lang/gmw/en-GB-scotland +17 -0
- package/espeak-ng-data/lang/gmw/en-GB-x-gbclan +14 -0
- package/espeak-ng-data/lang/gmw/en-GB-x-gbcwmd +12 -0
- package/espeak-ng-data/lang/gmw/en-GB-x-rp +15 -0
- package/espeak-ng-data/lang/gmw/en-US +15 -0
- package/espeak-ng-data/lang/gmw/en-US-nyc +14 -0
- package/espeak-ng-data/lang/gmw/lb +2 -0
- package/espeak-ng-data/lang/gmw/nl +2 -0
- package/espeak-ng-data/lang/grk/el +2 -0
- package/espeak-ng-data/lang/grk/grc +6 -0
- package/espeak-ng-data/lang/inc/as +4 -0
- package/espeak-ng-data/lang/inc/bn +2 -0
- package/espeak-ng-data/lang/inc/bpy +2 -0
- package/espeak-ng-data/lang/inc/gu +4 -0
- package/espeak-ng-data/lang/inc/hi +2 -0
- package/espeak-ng-data/lang/inc/kok +2 -0
- package/espeak-ng-data/lang/inc/mr +4 -0
- package/espeak-ng-data/lang/inc/ne +4 -0
- package/espeak-ng-data/lang/inc/or +4 -0
- package/espeak-ng-data/lang/inc/pa +2 -0
- package/espeak-ng-data/lang/inc/sd +3 -0
- package/espeak-ng-data/lang/inc/si +6 -0
- package/espeak-ng-data/lang/inc/ur +7 -0
- package/espeak-ng-data/lang/ine/hy +3 -0
- package/espeak-ng-data/lang/ine/hyw +24 -0
- package/espeak-ng-data/lang/ine/sq +5 -0
- package/espeak-ng-data/lang/ira/fa +4 -0
- package/espeak-ng-data/lang/ira/fa-Latn +8 -0
- package/espeak-ng-data/lang/ira/ku +5 -0
- package/espeak-ng-data/lang/iro/chr +27 -0
- package/espeak-ng-data/lang/itc/la +12 -0
- package/espeak-ng-data/lang/jpx/ja +5 -0
- package/espeak-ng-data/lang/ko +5 -0
- package/espeak-ng-data/lang/map/haw +3 -0
- package/espeak-ng-data/lang/miz/mto +8 -0
- package/espeak-ng-data/lang/myn/quc +6 -0
- package/espeak-ng-data/lang/poz/id +7 -0
- package/espeak-ng-data/lang/poz/mi +21 -0
- package/espeak-ng-data/lang/poz/ms +14 -0
- package/espeak-ng-data/lang/qu +5 -0
- package/espeak-ng-data/lang/roa/an +2 -0
- package/espeak-ng-data/lang/roa/ca +2 -0
- package/espeak-ng-data/lang/roa/es +4 -0
- package/espeak-ng-data/lang/roa/es-419 +11 -0
- package/espeak-ng-data/lang/roa/fr +6 -0
- package/espeak-ng-data/lang/roa/fr-BE +8 -0
- package/espeak-ng-data/lang/roa/fr-CH +6 -0
- package/espeak-ng-data/lang/roa/ht +8 -0
- package/espeak-ng-data/lang/roa/it +7 -0
- package/espeak-ng-data/lang/roa/pap +7 -0
- package/espeak-ng-data/lang/roa/pt +7 -0
- package/espeak-ng-data/lang/roa/pt-BR +7 -0
- package/espeak-ng-data/lang/roa/ro +2 -0
- package/espeak-ng-data/lang/sai/gn +4 -0
- package/espeak-ng-data/lang/sem/am +4 -0
- package/espeak-ng-data/lang/sem/ar +5 -0
- package/espeak-ng-data/lang/sem/he +4 -0
- package/espeak-ng-data/lang/sem/mt +4 -0
- package/espeak-ng-data/lang/sit/cmn +36 -0
- package/espeak-ng-data/lang/sit/cmn-Latn-pinyin +11 -0
- package/espeak-ng-data/lang/sit/hak +6 -0
- package/espeak-ng-data/lang/sit/my +3 -0
- package/espeak-ng-data/lang/sit/yue +13 -0
- package/espeak-ng-data/lang/sit/yue-Latn-jyutping +13 -0
- package/espeak-ng-data/lang/tai/shn +4 -0
- package/espeak-ng-data/lang/tai/th +3 -0
- package/espeak-ng-data/lang/trk/az +4 -0
- package/espeak-ng-data/lang/trk/ba +2 -0
- package/espeak-ng-data/lang/trk/cv +3 -0
- package/espeak-ng-data/lang/trk/kk +4 -0
- package/espeak-ng-data/lang/trk/ky +4 -0
- package/espeak-ng-data/lang/trk/nog +3 -0
- package/espeak-ng-data/lang/trk/tk +2 -0
- package/espeak-ng-data/lang/trk/tr +2 -0
- package/espeak-ng-data/lang/trk/tt +2 -0
- package/espeak-ng-data/lang/trk/ug +2 -0
- package/espeak-ng-data/lang/trk/uz +4 -0
- package/espeak-ng-data/lang/urj/et +10 -0
- package/espeak-ng-data/lang/urj/fi +11 -0
- package/espeak-ng-data/lang/urj/hu +7 -0
- package/espeak-ng-data/lang/urj/smj +4 -0
- package/espeak-ng-data/lang/zle/be +4 -0
- package/espeak-ng-data/lang/zle/ru +4 -0
- package/espeak-ng-data/lang/zle/ru-LV +16 -0
- package/espeak-ng-data/lang/zle/ru-cl +6 -0
- package/espeak-ng-data/lang/zle/uk +7 -0
- package/espeak-ng-data/lang/zls/bg +5 -0
- package/espeak-ng-data/lang/zls/bs +14 -0
- package/espeak-ng-data/lang/zls/hr +15 -0
- package/espeak-ng-data/lang/zls/mk +2 -0
- package/espeak-ng-data/lang/zls/sl +4 -0
- package/espeak-ng-data/lang/zls/sr +13 -0
- package/espeak-ng-data/lang/zlw/cs +2 -0
- package/espeak-ng-data/lang/zlw/pl +4 -0
- package/espeak-ng-data/lang/zlw/sk +2 -0
- package/espeak-ng-data/lb_dict +0 -0
- package/espeak-ng-data/lfn_dict +0 -0
- package/espeak-ng-data/lt_dict +0 -0
- package/espeak-ng-data/lv_dict +0 -0
- package/espeak-ng-data/mi_dict +0 -0
- package/espeak-ng-data/mk_dict +0 -0
- package/espeak-ng-data/ml_dict +0 -0
- package/espeak-ng-data/mr_dict +0 -0
- package/espeak-ng-data/ms_dict +0 -0
- package/espeak-ng-data/mt_dict +0 -0
- package/espeak-ng-data/mto_dict +0 -0
- package/espeak-ng-data/my_dict +0 -0
- package/espeak-ng-data/nci_dict +0 -0
- package/espeak-ng-data/ne_dict +0 -0
- package/espeak-ng-data/nl_dict +0 -0
- package/espeak-ng-data/no_dict +0 -0
- package/espeak-ng-data/nog_dict +0 -0
- package/espeak-ng-data/om_dict +0 -0
- package/espeak-ng-data/or_dict +0 -0
- package/espeak-ng-data/pa_dict +0 -0
- package/espeak-ng-data/pap_dict +0 -0
- package/espeak-ng-data/phondata +0 -0
- package/espeak-ng-data/phondata-manifest +987 -0
- package/espeak-ng-data/phonindex +0 -0
- package/espeak-ng-data/phontab +0 -0
- package/espeak-ng-data/piqd_dict +0 -0
- package/espeak-ng-data/pl_dict +0 -0
- package/espeak-ng-data/pt_dict +0 -0
- package/espeak-ng-data/py_dict +0 -0
- package/espeak-ng-data/qdb_dict +0 -0
- package/espeak-ng-data/qu_dict +0 -0
- package/espeak-ng-data/quc_dict +0 -0
- package/espeak-ng-data/qya_dict +0 -0
- package/espeak-ng-data/ro_dict +0 -0
- package/espeak-ng-data/ru_dict +0 -0
- package/espeak-ng-data/sd_dict +0 -0
- package/espeak-ng-data/shn_dict +0 -0
- package/espeak-ng-data/si_dict +0 -0
- package/espeak-ng-data/sjn_dict +0 -0
- package/espeak-ng-data/sk_dict +0 -0
- package/espeak-ng-data/sl_dict +0 -0
- package/espeak-ng-data/smj_dict +0 -0
- package/espeak-ng-data/sq_dict +0 -0
- package/espeak-ng-data/sr_dict +0 -0
- package/espeak-ng-data/sv_dict +0 -0
- package/espeak-ng-data/sw_dict +0 -0
- package/espeak-ng-data/ta_dict +0 -0
- package/espeak-ng-data/te_dict +0 -0
- package/espeak-ng-data/th_dict +0 -0
- package/espeak-ng-data/tk_dict +0 -0
- package/espeak-ng-data/tn_dict +0 -0
- package/espeak-ng-data/tr_dict +0 -0
- package/espeak-ng-data/tt_dict +0 -0
- package/espeak-ng-data/ug_dict +0 -0
- package/espeak-ng-data/uk_dict +0 -0
- package/espeak-ng-data/ur_dict +0 -0
- package/espeak-ng-data/uz_dict +0 -0
- package/espeak-ng-data/vi_dict +0 -0
- package/espeak-ng-data/voices/!v/Alex +10 -0
- package/espeak-ng-data/voices/!v/Alicia +22 -0
- package/espeak-ng-data/voices/!v/Andrea +20 -0
- package/espeak-ng-data/voices/!v/Andy +19 -0
- package/espeak-ng-data/voices/!v/Annie +17 -0
- package/espeak-ng-data/voices/!v/AnxiousAndy +19 -0
- package/espeak-ng-data/voices/!v/Demonic +65 -0
- package/espeak-ng-data/voices/!v/Denis +19 -0
- package/espeak-ng-data/voices/!v/Diogo +22 -0
- package/espeak-ng-data/voices/!v/Gene +17 -0
- package/espeak-ng-data/voices/!v/Gene2 +17 -0
- package/espeak-ng-data/voices/!v/Henrique +22 -0
- package/espeak-ng-data/voices/!v/Hugo +22 -0
- package/espeak-ng-data/voices/!v/Jacky +17 -0
- package/espeak-ng-data/voices/!v/Lee +20 -0
- package/espeak-ng-data/voices/!v/Marco +23 -0
- package/espeak-ng-data/voices/!v/Mario +17 -0
- package/espeak-ng-data/voices/!v/Michael +17 -0
- package/espeak-ng-data/voices/!v/Mike +7 -0
- package/espeak-ng-data/voices/!v/Mr serious +50 -0
- package/espeak-ng-data/voices/!v/Nguyen +16 -0
- package/espeak-ng-data/voices/!v/Reed +15 -0
- package/espeak-ng-data/voices/!v/RicishayMax +16 -0
- package/espeak-ng-data/voices/!v/RicishayMax2 +25 -0
- package/espeak-ng-data/voices/!v/RicishayMax3 +25 -0
- package/espeak-ng-data/voices/!v/Storm +23 -0
- package/espeak-ng-data/voices/!v/Tweaky +50 -0
- package/espeak-ng-data/voices/!v/UniRobot +19 -0
- package/espeak-ng-data/voices/!v/adam +6 -0
- package/espeak-ng-data/voices/!v/anika +25 -0
- package/espeak-ng-data/voices/!v/anikaRobot +26 -0
- package/espeak-ng-data/voices/!v/announcer +17 -0
- package/espeak-ng-data/voices/!v/antonio +21 -0
- package/espeak-ng-data/voices/!v/aunty +19 -0
- package/espeak-ng-data/voices/!v/belinda +20 -0
- package/espeak-ng-data/voices/!v/benjamin +11 -0
- package/espeak-ng-data/voices/!v/boris +15 -0
- package/espeak-ng-data/voices/!v/caleb +5 -0
- package/espeak-ng-data/voices/!v/croak +11 -0
- package/espeak-ng-data/voices/!v/david +8 -0
- package/espeak-ng-data/voices/!v/ed +17 -0
- package/espeak-ng-data/voices/!v/edward +10 -0
- package/espeak-ng-data/voices/!v/edward2 +10 -0
- package/espeak-ng-data/voices/!v/f1 +18 -0
- package/espeak-ng-data/voices/!v/f2 +21 -0
- package/espeak-ng-data/voices/!v/f3 +22 -0
- package/espeak-ng-data/voices/!v/f4 +18 -0
- package/espeak-ng-data/voices/!v/f5 +23 -0
- package/espeak-ng-data/voices/!v/fast +7 -0
- package/espeak-ng-data/voices/!v/grandma +17 -0
- package/espeak-ng-data/voices/!v/grandpa +14 -0
- package/espeak-ng-data/voices/!v/gustave +17 -0
- package/espeak-ng-data/voices/!v/ian +51 -0
- package/espeak-ng-data/voices/!v/iven +14 -0
- package/espeak-ng-data/voices/!v/iven2 +15 -0
- package/espeak-ng-data/voices/!v/iven3 +14 -0
- package/espeak-ng-data/voices/!v/iven4 +14 -0
- package/espeak-ng-data/voices/!v/john +50 -0
- package/espeak-ng-data/voices/!v/kaukovalta +16 -0
- package/espeak-ng-data/voices/!v/klatt +4 -0
- package/espeak-ng-data/voices/!v/klatt2 +4 -0
- package/espeak-ng-data/voices/!v/klatt3 +4 -0
- package/espeak-ng-data/voices/!v/klatt4 +4 -0
- package/espeak-ng-data/voices/!v/klatt5 +4 -0
- package/espeak-ng-data/voices/!v/klatt6 +4 -0
- package/espeak-ng-data/voices/!v/linda +20 -0
- package/espeak-ng-data/voices/!v/m1 +20 -0
- package/espeak-ng-data/voices/!v/m2 +15 -0
- package/espeak-ng-data/voices/!v/m3 +17 -0
- package/espeak-ng-data/voices/!v/m4 +17 -0
- package/espeak-ng-data/voices/!v/m5 +15 -0
- package/espeak-ng-data/voices/!v/m6 +13 -0
- package/espeak-ng-data/voices/!v/m7 +17 -0
- package/espeak-ng-data/voices/!v/m8 +16 -0
- package/espeak-ng-data/voices/!v/marcelo +17 -0
- package/espeak-ng-data/voices/!v/max +15 -0
- package/espeak-ng-data/voices/!v/michel +22 -0
- package/espeak-ng-data/voices/!v/miguel +22 -0
- package/espeak-ng-data/voices/!v/mike2 +12 -0
- package/espeak-ng-data/voices/!v/norbert +50 -0
- package/espeak-ng-data/voices/!v/pablo +52 -0
- package/espeak-ng-data/voices/!v/paul +17 -0
- package/espeak-ng-data/voices/!v/pedro +23 -0
- package/espeak-ng-data/voices/!v/quincy +20 -0
- package/espeak-ng-data/voices/!v/rob +17 -0
- package/espeak-ng-data/voices/!v/robert +17 -0
- package/espeak-ng-data/voices/!v/robosoft +26 -0
- package/espeak-ng-data/voices/!v/robosoft2 +26 -0
- package/espeak-ng-data/voices/!v/robosoft3 +26 -0
- package/espeak-ng-data/voices/!v/robosoft4 +25 -0
- package/espeak-ng-data/voices/!v/robosoft5 +25 -0
- package/espeak-ng-data/voices/!v/robosoft6 +15 -0
- package/espeak-ng-data/voices/!v/robosoft7 +25 -0
- package/espeak-ng-data/voices/!v/robosoft8 +16 -0
- package/espeak-ng-data/voices/!v/sandro +25 -0
- package/espeak-ng-data/voices/!v/shelby +18 -0
- package/espeak-ng-data/voices/!v/steph +21 -0
- package/espeak-ng-data/voices/!v/steph2 +21 -0
- package/espeak-ng-data/voices/!v/steph3 +22 -0
- package/espeak-ng-data/voices/!v/travis +23 -0
- package/espeak-ng-data/voices/!v/victor +16 -0
- package/espeak-ng-data/voices/!v/whisper +13 -0
- package/espeak-ng-data/voices/!v/whisperf +24 -0
- package/espeak-ng-data/voices/!v/zac +15 -0
- package/espeak-ng-data/yue_dict +0 -0
- package/package.json +44 -0
- package/piper-phonemize.js +95 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Robosoft7
|
|
3
|
+
echo 10 10000
|
|
4
|
+
|
|
5
|
+
pitch 75 115
|
|
6
|
+
|
|
7
|
+
formant 0 90 120 100
|
|
8
|
+
formant 1 100 100 75
|
|
9
|
+
formant 2 100 100 75
|
|
10
|
+
formant 3 100 80 75
|
|
11
|
+
formant 4 100 80 75
|
|
12
|
+
formant 5 100 80 75
|
|
13
|
+
formant 6 100 0 75
|
|
14
|
+
formant 7 100 0 75
|
|
15
|
+
formant 8 100 0 75
|
|
16
|
+
|
|
17
|
+
roughness 0
|
|
18
|
+
|
|
19
|
+
intonation 10
|
|
20
|
+
voicing 150
|
|
21
|
+
consonants 60 40
|
|
22
|
+
stressLength 0 1 2 3 4 5 6 7
|
|
23
|
+
stressAdd 130 140 140 100 0 0 130 160
|
|
24
|
+
|
|
25
|
+
tone 100 255 600 70 1200 22 2000 66 3000 12
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Robosoft8
|
|
3
|
+
echo 40 10000
|
|
4
|
+
pitch 150 150
|
|
5
|
+
formant 0 90 120 100
|
|
6
|
+
formant 1 100 100 75
|
|
7
|
+
formant 2 100 100 75
|
|
8
|
+
formant 3 100 80 75
|
|
9
|
+
formant 4 100 80 75
|
|
10
|
+
formant 5 100 80 75
|
|
11
|
+
formant 6 100 0 75
|
|
12
|
+
formant 7 100 0 75
|
|
13
|
+
formant 8 100 0 75
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// This file is UTF-8 encoded
|
|
2
|
+
// Variant sandro (ver.25-3) for eSpeak-ng Copyright (C)2019 by Lolo vmanolo301@gmail.com
|
|
3
|
+
|
|
4
|
+
language variant
|
|
5
|
+
name sandro
|
|
6
|
+
gender male
|
|
7
|
+
|
|
8
|
+
formant 0 95 146 100
|
|
9
|
+
formant 1 98 90 100
|
|
10
|
+
formant 2 103 98 100
|
|
11
|
+
formant 3 100 90 100
|
|
12
|
+
formant 4 100 101 100
|
|
13
|
+
formant 5 110 120 100 2123
|
|
14
|
+
formant 6 100 100 100 1200
|
|
15
|
+
formant 7 32 125 80 600
|
|
16
|
+
formant 8 34 95 30 49
|
|
17
|
+
|
|
18
|
+
voicing 165
|
|
19
|
+
consonants 194 255
|
|
20
|
+
pitch 78 115
|
|
21
|
+
roughness 3
|
|
22
|
+
breath 20 5 2 10 5 0 27 100
|
|
23
|
+
breathw 255 255 60 180 160 255 255 255
|
|
24
|
+
|
|
25
|
+
tone 500 210 470 70 160 155 2985 32
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name shelby
|
|
3
|
+
flutter 0
|
|
4
|
+
roughness 0
|
|
5
|
+
|
|
6
|
+
formant 0 100 160 190
|
|
7
|
+
formant 1 90 90 90
|
|
8
|
+
formant 2 140 140 140
|
|
9
|
+
formant 3 130 150 130
|
|
10
|
+
formant 4 110 110 110
|
|
11
|
+
formant 5 120 120 110
|
|
12
|
+
formant 6 10 10 10
|
|
13
|
+
formant 7 10 10 10
|
|
14
|
+
formant 8 10 10 10
|
|
15
|
+
|
|
16
|
+
pitch 100 210
|
|
17
|
+
voicing 40
|
|
18
|
+
consonants 90 70
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Steph
|
|
3
|
+
gender female
|
|
4
|
+
|
|
5
|
+
pitch 166 200
|
|
6
|
+
flutter 1
|
|
7
|
+
roughness 0
|
|
8
|
+
tone 100 255 600 70 1200 22 2000 66 3000 12
|
|
9
|
+
|
|
10
|
+
formant 0 99 80 150
|
|
11
|
+
formant 1 120 60 160
|
|
12
|
+
formant 2 99 70 110 150
|
|
13
|
+
formant 3 116 77 150
|
|
14
|
+
formant 4 9 59 110
|
|
15
|
+
formant 5 100 50 2
|
|
16
|
+
formant 6 104 80 150
|
|
17
|
+
formant 7 110 70 150
|
|
18
|
+
formant 8 110 70 150
|
|
19
|
+
|
|
20
|
+
stressAmp 16 16 24 24 16 16 20 24
|
|
21
|
+
consonants 55 90
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Steph2
|
|
3
|
+
gender female
|
|
4
|
+
|
|
5
|
+
pitch 166 200
|
|
6
|
+
flutter 1
|
|
7
|
+
roughness 0
|
|
8
|
+
tone 100 255 600 70 1200 22 2000 66 3000 12
|
|
9
|
+
|
|
10
|
+
formant 0 99 100 150
|
|
11
|
+
formant 1 120 80 160
|
|
12
|
+
formant 2 99 90 110 150
|
|
13
|
+
formant 3 116 97 150
|
|
14
|
+
formant 4 9 73 116
|
|
15
|
+
formant 5 100 70 2
|
|
16
|
+
formant 6 104 100 150
|
|
17
|
+
formant 7 110 90 150
|
|
18
|
+
formant 8 110 90 150
|
|
19
|
+
|
|
20
|
+
stressAmp 16 16 24 24 16 16 20 24
|
|
21
|
+
consonants 55 90
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Steph3
|
|
3
|
+
gender female
|
|
4
|
+
|
|
5
|
+
pitch 166 200
|
|
6
|
+
flutter 1
|
|
7
|
+
roughness 0
|
|
8
|
+
voicing 200
|
|
9
|
+
tone 100 255 600 70 1200 22 2000 66 3000 12
|
|
10
|
+
|
|
11
|
+
formant 0 99 80 150
|
|
12
|
+
formant 1 120 60 160
|
|
13
|
+
formant 2 99 70 110 150
|
|
14
|
+
formant 3 116 77 150
|
|
15
|
+
formant 4 9 59 110
|
|
16
|
+
formant 5 100 50 2
|
|
17
|
+
formant 6 104 80 150
|
|
18
|
+
formant 7 110 70 150
|
|
19
|
+
formant 8 110 70 150
|
|
20
|
+
|
|
21
|
+
stressAmp 16 16 24 24 16 16 20 24
|
|
22
|
+
consonants 70 90
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name travis
|
|
3
|
+
gender male 30
|
|
4
|
+
|
|
5
|
+
pitch 75 120
|
|
6
|
+
|
|
7
|
+
formant 0 90 90 90 90
|
|
8
|
+
formant 1 50 100 80 95
|
|
9
|
+
formant 2 90 60 90 100
|
|
10
|
+
formant 3 80 80 90 100
|
|
11
|
+
formant 4 50 90 100 100
|
|
12
|
+
formant 5 100 95 100 55
|
|
13
|
+
formant 6 80 50 100 85
|
|
14
|
+
formant 7 60 60 60 120
|
|
15
|
+
formant 8 80 80 140 100
|
|
16
|
+
|
|
17
|
+
tone 600 100 1000 200 1500 50
|
|
18
|
+
flutter 1
|
|
19
|
+
|
|
20
|
+
roughness 3
|
|
21
|
+
|
|
22
|
+
voicing 200
|
|
23
|
+
consonants 120 190
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name victor
|
|
3
|
+
gender male 25
|
|
4
|
+
|
|
5
|
+
formant 0 100 100 100
|
|
6
|
+
formant 1 95 95 95
|
|
7
|
+
formant 2 90 90 90
|
|
8
|
+
formant 3 90 90 90
|
|
9
|
+
formant 4 40 40 40
|
|
10
|
+
formant 5 80 80 80
|
|
11
|
+
formant 6 20 20 20
|
|
12
|
+
formant 7 20 20 20
|
|
13
|
+
formant 8 20 20 20
|
|
14
|
+
pitch 80 110
|
|
15
|
+
voicing 60
|
|
16
|
+
breath 2 4
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name female_whisper
|
|
3
|
+
gender female
|
|
4
|
+
|
|
5
|
+
pitch 160 220
|
|
6
|
+
roughness 3
|
|
7
|
+
|
|
8
|
+
formant 0 105 0 150
|
|
9
|
+
formant 1 110 40 160
|
|
10
|
+
formant 2 110 70 150
|
|
11
|
+
formant 3 110 70 150
|
|
12
|
+
formant 4 115 80 150
|
|
13
|
+
formant 5 115 80 150
|
|
14
|
+
formant 6 110 70 150
|
|
15
|
+
formant 7 110 70 150
|
|
16
|
+
formant 8 110 70 150
|
|
17
|
+
|
|
18
|
+
stressAdd 0 0 -10 -10 0 0 10 40
|
|
19
|
+
|
|
20
|
+
// whisper
|
|
21
|
+
voicing 20
|
|
22
|
+
breath 75 75 50 40 15 10
|
|
23
|
+
breathw 150 150 200 200 400 400
|
|
24
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
language variant
|
|
2
|
+
name Zac
|
|
3
|
+
flutter 5
|
|
4
|
+
|
|
5
|
+
pitch 240 390
|
|
6
|
+
formant 0 145 100 145
|
|
7
|
+
formant 1 145 100 145
|
|
8
|
+
formant 2 145 100 145
|
|
9
|
+
formant 3 145 100 145
|
|
10
|
+
formant 4 145 100 145
|
|
11
|
+
formant 5 145 120 145
|
|
12
|
+
formant 6 145 120 145
|
|
13
|
+
formant 7 145 120 145
|
|
14
|
+
formant 8 145 120 145
|
|
15
|
+
voicing 80
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "piper-phonemize-node",
|
|
3
|
+
"version": "1.4.7",
|
|
4
|
+
"description": "Phonemization library for Piper text-to-speech using espeak-ng (native addon)",
|
|
5
|
+
"main": "piper-phonemize.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/csukuangfj/piper-phonemize.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"piper",
|
|
15
|
+
"phonemize",
|
|
16
|
+
"phonemization",
|
|
17
|
+
"espeak-ng",
|
|
18
|
+
"text-to-speech",
|
|
19
|
+
"tts",
|
|
20
|
+
"ipa",
|
|
21
|
+
"phonemes",
|
|
22
|
+
"native",
|
|
23
|
+
"addon",
|
|
24
|
+
"node-addon-api",
|
|
25
|
+
"speech"
|
|
26
|
+
],
|
|
27
|
+
"author": "Michael Hansen",
|
|
28
|
+
"contributors": [
|
|
29
|
+
"Fangjun Kuang <csukuangfj@gmail.com> (https://github.com/csukuangfj)"
|
|
30
|
+
],
|
|
31
|
+
"license": "GPL-3.0-or-later",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/csukuangfj/piper-phonemize/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/csukuangfj/piper-phonemize#readme",
|
|
36
|
+
"optionalDependencies": {
|
|
37
|
+
"piper-phonemize-darwin-arm64": "^1.4.7",
|
|
38
|
+
"piper-phonemize-darwin-x64": "^1.4.7",
|
|
39
|
+
"piper-phonemize-linux-x64": "^1.4.7",
|
|
40
|
+
"piper-phonemize-linux-arm64": "^1.4.7",
|
|
41
|
+
"piper-phonemize-win-x64": "^1.4.7",
|
|
42
|
+
"piper-phonemize-win-ia32": "^1.4.7"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// piper-phonemize.js
|
|
2
|
+
//
|
|
3
|
+
// High-level Node.js API for piper-phonemize native addon
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2026 Xiaomi Corporation
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
const path = require('path');
|
|
10
|
+
const addon = require('./addon');
|
|
11
|
+
|
|
12
|
+
let isInitialized = false;
|
|
13
|
+
|
|
14
|
+
// Path to bundled espeak-ng-data
|
|
15
|
+
// espeak-ng expects the parent directory and appends '/espeak-ng-data' itself
|
|
16
|
+
const bundledDataDir = __dirname;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Initialize espeak-ng with the given data directory.
|
|
20
|
+
* If not called, phonemize() will auto-initialize with bundled data.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} [dataDir] - Path to espeak-ng-data directory. If omitted, uses bundled data.
|
|
23
|
+
* @returns {number} Sample rate (22050) on success, -1 on failure
|
|
24
|
+
*/
|
|
25
|
+
function initialize(dataDir) {
|
|
26
|
+
if (!dataDir) {
|
|
27
|
+
dataDir = bundledDataDir;
|
|
28
|
+
}
|
|
29
|
+
const ret = addon.initialize(dataDir);
|
|
30
|
+
if (ret > 0) {
|
|
31
|
+
isInitialized = true;
|
|
32
|
+
}
|
|
33
|
+
return ret;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Ensure espeak-ng is initialized. Uses bundled data if not already initialized.
|
|
38
|
+
*/
|
|
39
|
+
function ensureInitialized() {
|
|
40
|
+
if (!isInitialized) {
|
|
41
|
+
const ret = initialize(bundledDataDir);
|
|
42
|
+
if (ret < 0) {
|
|
43
|
+
throw new Error(
|
|
44
|
+
'Failed to initialize espeak-ng. ' +
|
|
45
|
+
'Make sure espeak-ng-data is available at: ' + bundledDataDir
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Get the version string
|
|
53
|
+
* @returns {string} Version string
|
|
54
|
+
*/
|
|
55
|
+
function getVersionStr() {
|
|
56
|
+
return addon.getVersionStr();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Phonemize text using espeak-ng
|
|
61
|
+
*
|
|
62
|
+
* @param {string} text - Text to phonemize
|
|
63
|
+
* @param {string} [voice='en-us'] - espeak-ng voice (e.g., 'en-us', 'de', 'fr')
|
|
64
|
+
* @returns {Array<Array<number>>|null} Array of sentences, each containing phoneme code points (uint32), or null on failure
|
|
65
|
+
*/
|
|
66
|
+
function phonemize(text, voice) {
|
|
67
|
+
ensureInitialized();
|
|
68
|
+
return addon.phonemize(text, voice || 'en-us');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Phonemize text and return as IPA string
|
|
73
|
+
*
|
|
74
|
+
* @param {string} text - Text to phonemize
|
|
75
|
+
* @param {string} [voice='en-us'] - espeak-ng voice
|
|
76
|
+
* @returns {Array<string>|null} Array of IPA strings, or null on failure
|
|
77
|
+
*/
|
|
78
|
+
function phonemizeToString(text, voice) {
|
|
79
|
+
const sentences = phonemize(text, voice);
|
|
80
|
+
|
|
81
|
+
if (!sentences) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return sentences.map(phonemes =>
|
|
86
|
+
String.fromCodePoint(...phonemes)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
module.exports = {
|
|
91
|
+
initialize,
|
|
92
|
+
phonemize,
|
|
93
|
+
phonemizeToString,
|
|
94
|
+
version: getVersionStr(),
|
|
95
|
+
};
|