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.
Files changed (360) hide show
  1. package/README.md +11 -0
  2. package/addon-static-import.js +58 -0
  3. package/addon.js +70 -0
  4. package/espeak-ng-data/af_dict +0 -0
  5. package/espeak-ng-data/am_dict +0 -0
  6. package/espeak-ng-data/an_dict +0 -0
  7. package/espeak-ng-data/ar_dict +0 -0
  8. package/espeak-ng-data/as_dict +0 -0
  9. package/espeak-ng-data/az_dict +0 -0
  10. package/espeak-ng-data/ba_dict +0 -0
  11. package/espeak-ng-data/be_dict +0 -0
  12. package/espeak-ng-data/bg_dict +0 -0
  13. package/espeak-ng-data/bn_dict +0 -0
  14. package/espeak-ng-data/bpy_dict +0 -0
  15. package/espeak-ng-data/bs_dict +0 -0
  16. package/espeak-ng-data/ca_dict +0 -0
  17. package/espeak-ng-data/chr_dict +0 -0
  18. package/espeak-ng-data/cmn_dict +0 -0
  19. package/espeak-ng-data/cs_dict +0 -0
  20. package/espeak-ng-data/cv_dict +0 -0
  21. package/espeak-ng-data/cy_dict +0 -0
  22. package/espeak-ng-data/da_dict +0 -0
  23. package/espeak-ng-data/de_dict +0 -0
  24. package/espeak-ng-data/el_dict +0 -0
  25. package/espeak-ng-data/en_dict +0 -0
  26. package/espeak-ng-data/eo_dict +0 -0
  27. package/espeak-ng-data/es_dict +0 -0
  28. package/espeak-ng-data/et_dict +0 -0
  29. package/espeak-ng-data/eu_dict +0 -0
  30. package/espeak-ng-data/fa_dict +0 -0
  31. package/espeak-ng-data/fi_dict +0 -0
  32. package/espeak-ng-data/fr_dict +0 -0
  33. package/espeak-ng-data/ga_dict +0 -0
  34. package/espeak-ng-data/gd_dict +0 -0
  35. package/espeak-ng-data/gn_dict +0 -0
  36. package/espeak-ng-data/grc_dict +0 -0
  37. package/espeak-ng-data/gu_dict +0 -0
  38. package/espeak-ng-data/hak_dict +0 -0
  39. package/espeak-ng-data/haw_dict +0 -0
  40. package/espeak-ng-data/he_dict +0 -0
  41. package/espeak-ng-data/hi_dict +0 -0
  42. package/espeak-ng-data/hr_dict +0 -0
  43. package/espeak-ng-data/ht_dict +0 -0
  44. package/espeak-ng-data/hu_dict +0 -0
  45. package/espeak-ng-data/hy_dict +0 -0
  46. package/espeak-ng-data/ia_dict +0 -0
  47. package/espeak-ng-data/id_dict +0 -0
  48. package/espeak-ng-data/intonations +0 -0
  49. package/espeak-ng-data/io_dict +0 -0
  50. package/espeak-ng-data/is_dict +0 -0
  51. package/espeak-ng-data/it_dict +0 -0
  52. package/espeak-ng-data/ja_dict +0 -0
  53. package/espeak-ng-data/jbo_dict +0 -0
  54. package/espeak-ng-data/ka_dict +0 -0
  55. package/espeak-ng-data/kk_dict +0 -0
  56. package/espeak-ng-data/kl_dict +0 -0
  57. package/espeak-ng-data/kn_dict +0 -0
  58. package/espeak-ng-data/ko_dict +0 -0
  59. package/espeak-ng-data/kok_dict +0 -0
  60. package/espeak-ng-data/ku_dict +0 -0
  61. package/espeak-ng-data/ky_dict +0 -0
  62. package/espeak-ng-data/la_dict +0 -0
  63. package/espeak-ng-data/lang/aav/vi +8 -0
  64. package/espeak-ng-data/lang/aav/vi-VN-x-central +9 -0
  65. package/espeak-ng-data/lang/aav/vi-VN-x-south +9 -0
  66. package/espeak-ng-data/lang/art/eo +4 -0
  67. package/espeak-ng-data/lang/art/ia +2 -0
  68. package/espeak-ng-data/lang/art/io +5 -0
  69. package/espeak-ng-data/lang/art/jbo +4 -0
  70. package/espeak-ng-data/lang/art/lfn +8 -0
  71. package/espeak-ng-data/lang/art/piqd +5 -0
  72. package/espeak-ng-data/lang/art/py +7 -0
  73. package/espeak-ng-data/lang/art/qdb +6 -0
  74. package/espeak-ng-data/lang/art/qya +4 -0
  75. package/espeak-ng-data/lang/art/sjn +4 -0
  76. package/espeak-ng-data/lang/azc/nci +6 -0
  77. package/espeak-ng-data/lang/bat/lt +2 -0
  78. package/espeak-ng-data/lang/bat/ltg +12 -0
  79. package/espeak-ng-data/lang/bat/lv +9 -0
  80. package/espeak-ng-data/lang/bnt/sw +4 -0
  81. package/espeak-ng-data/lang/bnt/tn +4 -0
  82. package/espeak-ng-data/lang/ccs/ka +3 -0
  83. package/espeak-ng-data/lang/cel/cy +4 -0
  84. package/espeak-ng-data/lang/cel/ga +4 -0
  85. package/espeak-ng-data/lang/cel/gd +4 -0
  86. package/espeak-ng-data/lang/cus/om +4 -0
  87. package/espeak-ng-data/lang/dra/kn +5 -0
  88. package/espeak-ng-data/lang/dra/ml +5 -0
  89. package/espeak-ng-data/lang/dra/ta +5 -0
  90. package/espeak-ng-data/lang/dra/te +7 -0
  91. package/espeak-ng-data/lang/esx/kl +3 -0
  92. package/espeak-ng-data/lang/eu +5 -0
  93. package/espeak-ng-data/lang/gmq/da +4 -0
  94. package/espeak-ng-data/lang/gmq/is +2 -0
  95. package/espeak-ng-data/lang/gmq/nb +7 -0
  96. package/espeak-ng-data/lang/gmq/sv +2 -0
  97. package/espeak-ng-data/lang/gmw/af +8 -0
  98. package/espeak-ng-data/lang/gmw/de +3 -0
  99. package/espeak-ng-data/lang/gmw/en +8 -0
  100. package/espeak-ng-data/lang/gmw/en-029 +20 -0
  101. package/espeak-ng-data/lang/gmw/en-GB-scotland +17 -0
  102. package/espeak-ng-data/lang/gmw/en-GB-x-gbclan +14 -0
  103. package/espeak-ng-data/lang/gmw/en-GB-x-gbcwmd +12 -0
  104. package/espeak-ng-data/lang/gmw/en-GB-x-rp +15 -0
  105. package/espeak-ng-data/lang/gmw/en-US +15 -0
  106. package/espeak-ng-data/lang/gmw/en-US-nyc +14 -0
  107. package/espeak-ng-data/lang/gmw/lb +2 -0
  108. package/espeak-ng-data/lang/gmw/nl +2 -0
  109. package/espeak-ng-data/lang/grk/el +2 -0
  110. package/espeak-ng-data/lang/grk/grc +6 -0
  111. package/espeak-ng-data/lang/inc/as +4 -0
  112. package/espeak-ng-data/lang/inc/bn +2 -0
  113. package/espeak-ng-data/lang/inc/bpy +2 -0
  114. package/espeak-ng-data/lang/inc/gu +4 -0
  115. package/espeak-ng-data/lang/inc/hi +2 -0
  116. package/espeak-ng-data/lang/inc/kok +2 -0
  117. package/espeak-ng-data/lang/inc/mr +4 -0
  118. package/espeak-ng-data/lang/inc/ne +4 -0
  119. package/espeak-ng-data/lang/inc/or +4 -0
  120. package/espeak-ng-data/lang/inc/pa +2 -0
  121. package/espeak-ng-data/lang/inc/sd +3 -0
  122. package/espeak-ng-data/lang/inc/si +6 -0
  123. package/espeak-ng-data/lang/inc/ur +7 -0
  124. package/espeak-ng-data/lang/ine/hy +3 -0
  125. package/espeak-ng-data/lang/ine/hyw +24 -0
  126. package/espeak-ng-data/lang/ine/sq +5 -0
  127. package/espeak-ng-data/lang/ira/fa +4 -0
  128. package/espeak-ng-data/lang/ira/fa-Latn +8 -0
  129. package/espeak-ng-data/lang/ira/ku +5 -0
  130. package/espeak-ng-data/lang/iro/chr +27 -0
  131. package/espeak-ng-data/lang/itc/la +12 -0
  132. package/espeak-ng-data/lang/jpx/ja +5 -0
  133. package/espeak-ng-data/lang/ko +5 -0
  134. package/espeak-ng-data/lang/map/haw +3 -0
  135. package/espeak-ng-data/lang/miz/mto +8 -0
  136. package/espeak-ng-data/lang/myn/quc +6 -0
  137. package/espeak-ng-data/lang/poz/id +7 -0
  138. package/espeak-ng-data/lang/poz/mi +21 -0
  139. package/espeak-ng-data/lang/poz/ms +14 -0
  140. package/espeak-ng-data/lang/qu +5 -0
  141. package/espeak-ng-data/lang/roa/an +2 -0
  142. package/espeak-ng-data/lang/roa/ca +2 -0
  143. package/espeak-ng-data/lang/roa/es +4 -0
  144. package/espeak-ng-data/lang/roa/es-419 +11 -0
  145. package/espeak-ng-data/lang/roa/fr +6 -0
  146. package/espeak-ng-data/lang/roa/fr-BE +8 -0
  147. package/espeak-ng-data/lang/roa/fr-CH +6 -0
  148. package/espeak-ng-data/lang/roa/ht +8 -0
  149. package/espeak-ng-data/lang/roa/it +7 -0
  150. package/espeak-ng-data/lang/roa/pap +7 -0
  151. package/espeak-ng-data/lang/roa/pt +7 -0
  152. package/espeak-ng-data/lang/roa/pt-BR +7 -0
  153. package/espeak-ng-data/lang/roa/ro +2 -0
  154. package/espeak-ng-data/lang/sai/gn +4 -0
  155. package/espeak-ng-data/lang/sem/am +4 -0
  156. package/espeak-ng-data/lang/sem/ar +5 -0
  157. package/espeak-ng-data/lang/sem/he +4 -0
  158. package/espeak-ng-data/lang/sem/mt +4 -0
  159. package/espeak-ng-data/lang/sit/cmn +36 -0
  160. package/espeak-ng-data/lang/sit/cmn-Latn-pinyin +11 -0
  161. package/espeak-ng-data/lang/sit/hak +6 -0
  162. package/espeak-ng-data/lang/sit/my +3 -0
  163. package/espeak-ng-data/lang/sit/yue +13 -0
  164. package/espeak-ng-data/lang/sit/yue-Latn-jyutping +13 -0
  165. package/espeak-ng-data/lang/tai/shn +4 -0
  166. package/espeak-ng-data/lang/tai/th +3 -0
  167. package/espeak-ng-data/lang/trk/az +4 -0
  168. package/espeak-ng-data/lang/trk/ba +2 -0
  169. package/espeak-ng-data/lang/trk/cv +3 -0
  170. package/espeak-ng-data/lang/trk/kk +4 -0
  171. package/espeak-ng-data/lang/trk/ky +4 -0
  172. package/espeak-ng-data/lang/trk/nog +3 -0
  173. package/espeak-ng-data/lang/trk/tk +2 -0
  174. package/espeak-ng-data/lang/trk/tr +2 -0
  175. package/espeak-ng-data/lang/trk/tt +2 -0
  176. package/espeak-ng-data/lang/trk/ug +2 -0
  177. package/espeak-ng-data/lang/trk/uz +4 -0
  178. package/espeak-ng-data/lang/urj/et +10 -0
  179. package/espeak-ng-data/lang/urj/fi +11 -0
  180. package/espeak-ng-data/lang/urj/hu +7 -0
  181. package/espeak-ng-data/lang/urj/smj +4 -0
  182. package/espeak-ng-data/lang/zle/be +4 -0
  183. package/espeak-ng-data/lang/zle/ru +4 -0
  184. package/espeak-ng-data/lang/zle/ru-LV +16 -0
  185. package/espeak-ng-data/lang/zle/ru-cl +6 -0
  186. package/espeak-ng-data/lang/zle/uk +7 -0
  187. package/espeak-ng-data/lang/zls/bg +5 -0
  188. package/espeak-ng-data/lang/zls/bs +14 -0
  189. package/espeak-ng-data/lang/zls/hr +15 -0
  190. package/espeak-ng-data/lang/zls/mk +2 -0
  191. package/espeak-ng-data/lang/zls/sl +4 -0
  192. package/espeak-ng-data/lang/zls/sr +13 -0
  193. package/espeak-ng-data/lang/zlw/cs +2 -0
  194. package/espeak-ng-data/lang/zlw/pl +4 -0
  195. package/espeak-ng-data/lang/zlw/sk +2 -0
  196. package/espeak-ng-data/lb_dict +0 -0
  197. package/espeak-ng-data/lfn_dict +0 -0
  198. package/espeak-ng-data/lt_dict +0 -0
  199. package/espeak-ng-data/lv_dict +0 -0
  200. package/espeak-ng-data/mi_dict +0 -0
  201. package/espeak-ng-data/mk_dict +0 -0
  202. package/espeak-ng-data/ml_dict +0 -0
  203. package/espeak-ng-data/mr_dict +0 -0
  204. package/espeak-ng-data/ms_dict +0 -0
  205. package/espeak-ng-data/mt_dict +0 -0
  206. package/espeak-ng-data/mto_dict +0 -0
  207. package/espeak-ng-data/my_dict +0 -0
  208. package/espeak-ng-data/nci_dict +0 -0
  209. package/espeak-ng-data/ne_dict +0 -0
  210. package/espeak-ng-data/nl_dict +0 -0
  211. package/espeak-ng-data/no_dict +0 -0
  212. package/espeak-ng-data/nog_dict +0 -0
  213. package/espeak-ng-data/om_dict +0 -0
  214. package/espeak-ng-data/or_dict +0 -0
  215. package/espeak-ng-data/pa_dict +0 -0
  216. package/espeak-ng-data/pap_dict +0 -0
  217. package/espeak-ng-data/phondata +0 -0
  218. package/espeak-ng-data/phondata-manifest +987 -0
  219. package/espeak-ng-data/phonindex +0 -0
  220. package/espeak-ng-data/phontab +0 -0
  221. package/espeak-ng-data/piqd_dict +0 -0
  222. package/espeak-ng-data/pl_dict +0 -0
  223. package/espeak-ng-data/pt_dict +0 -0
  224. package/espeak-ng-data/py_dict +0 -0
  225. package/espeak-ng-data/qdb_dict +0 -0
  226. package/espeak-ng-data/qu_dict +0 -0
  227. package/espeak-ng-data/quc_dict +0 -0
  228. package/espeak-ng-data/qya_dict +0 -0
  229. package/espeak-ng-data/ro_dict +0 -0
  230. package/espeak-ng-data/ru_dict +0 -0
  231. package/espeak-ng-data/sd_dict +0 -0
  232. package/espeak-ng-data/shn_dict +0 -0
  233. package/espeak-ng-data/si_dict +0 -0
  234. package/espeak-ng-data/sjn_dict +0 -0
  235. package/espeak-ng-data/sk_dict +0 -0
  236. package/espeak-ng-data/sl_dict +0 -0
  237. package/espeak-ng-data/smj_dict +0 -0
  238. package/espeak-ng-data/sq_dict +0 -0
  239. package/espeak-ng-data/sr_dict +0 -0
  240. package/espeak-ng-data/sv_dict +0 -0
  241. package/espeak-ng-data/sw_dict +0 -0
  242. package/espeak-ng-data/ta_dict +0 -0
  243. package/espeak-ng-data/te_dict +0 -0
  244. package/espeak-ng-data/th_dict +0 -0
  245. package/espeak-ng-data/tk_dict +0 -0
  246. package/espeak-ng-data/tn_dict +0 -0
  247. package/espeak-ng-data/tr_dict +0 -0
  248. package/espeak-ng-data/tt_dict +0 -0
  249. package/espeak-ng-data/ug_dict +0 -0
  250. package/espeak-ng-data/uk_dict +0 -0
  251. package/espeak-ng-data/ur_dict +0 -0
  252. package/espeak-ng-data/uz_dict +0 -0
  253. package/espeak-ng-data/vi_dict +0 -0
  254. package/espeak-ng-data/voices/!v/Alex +10 -0
  255. package/espeak-ng-data/voices/!v/Alicia +22 -0
  256. package/espeak-ng-data/voices/!v/Andrea +20 -0
  257. package/espeak-ng-data/voices/!v/Andy +19 -0
  258. package/espeak-ng-data/voices/!v/Annie +17 -0
  259. package/espeak-ng-data/voices/!v/AnxiousAndy +19 -0
  260. package/espeak-ng-data/voices/!v/Demonic +65 -0
  261. package/espeak-ng-data/voices/!v/Denis +19 -0
  262. package/espeak-ng-data/voices/!v/Diogo +22 -0
  263. package/espeak-ng-data/voices/!v/Gene +17 -0
  264. package/espeak-ng-data/voices/!v/Gene2 +17 -0
  265. package/espeak-ng-data/voices/!v/Henrique +22 -0
  266. package/espeak-ng-data/voices/!v/Hugo +22 -0
  267. package/espeak-ng-data/voices/!v/Jacky +17 -0
  268. package/espeak-ng-data/voices/!v/Lee +20 -0
  269. package/espeak-ng-data/voices/!v/Marco +23 -0
  270. package/espeak-ng-data/voices/!v/Mario +17 -0
  271. package/espeak-ng-data/voices/!v/Michael +17 -0
  272. package/espeak-ng-data/voices/!v/Mike +7 -0
  273. package/espeak-ng-data/voices/!v/Mr serious +50 -0
  274. package/espeak-ng-data/voices/!v/Nguyen +16 -0
  275. package/espeak-ng-data/voices/!v/Reed +15 -0
  276. package/espeak-ng-data/voices/!v/RicishayMax +16 -0
  277. package/espeak-ng-data/voices/!v/RicishayMax2 +25 -0
  278. package/espeak-ng-data/voices/!v/RicishayMax3 +25 -0
  279. package/espeak-ng-data/voices/!v/Storm +23 -0
  280. package/espeak-ng-data/voices/!v/Tweaky +50 -0
  281. package/espeak-ng-data/voices/!v/UniRobot +19 -0
  282. package/espeak-ng-data/voices/!v/adam +6 -0
  283. package/espeak-ng-data/voices/!v/anika +25 -0
  284. package/espeak-ng-data/voices/!v/anikaRobot +26 -0
  285. package/espeak-ng-data/voices/!v/announcer +17 -0
  286. package/espeak-ng-data/voices/!v/antonio +21 -0
  287. package/espeak-ng-data/voices/!v/aunty +19 -0
  288. package/espeak-ng-data/voices/!v/belinda +20 -0
  289. package/espeak-ng-data/voices/!v/benjamin +11 -0
  290. package/espeak-ng-data/voices/!v/boris +15 -0
  291. package/espeak-ng-data/voices/!v/caleb +5 -0
  292. package/espeak-ng-data/voices/!v/croak +11 -0
  293. package/espeak-ng-data/voices/!v/david +8 -0
  294. package/espeak-ng-data/voices/!v/ed +17 -0
  295. package/espeak-ng-data/voices/!v/edward +10 -0
  296. package/espeak-ng-data/voices/!v/edward2 +10 -0
  297. package/espeak-ng-data/voices/!v/f1 +18 -0
  298. package/espeak-ng-data/voices/!v/f2 +21 -0
  299. package/espeak-ng-data/voices/!v/f3 +22 -0
  300. package/espeak-ng-data/voices/!v/f4 +18 -0
  301. package/espeak-ng-data/voices/!v/f5 +23 -0
  302. package/espeak-ng-data/voices/!v/fast +7 -0
  303. package/espeak-ng-data/voices/!v/grandma +17 -0
  304. package/espeak-ng-data/voices/!v/grandpa +14 -0
  305. package/espeak-ng-data/voices/!v/gustave +17 -0
  306. package/espeak-ng-data/voices/!v/ian +51 -0
  307. package/espeak-ng-data/voices/!v/iven +14 -0
  308. package/espeak-ng-data/voices/!v/iven2 +15 -0
  309. package/espeak-ng-data/voices/!v/iven3 +14 -0
  310. package/espeak-ng-data/voices/!v/iven4 +14 -0
  311. package/espeak-ng-data/voices/!v/john +50 -0
  312. package/espeak-ng-data/voices/!v/kaukovalta +16 -0
  313. package/espeak-ng-data/voices/!v/klatt +4 -0
  314. package/espeak-ng-data/voices/!v/klatt2 +4 -0
  315. package/espeak-ng-data/voices/!v/klatt3 +4 -0
  316. package/espeak-ng-data/voices/!v/klatt4 +4 -0
  317. package/espeak-ng-data/voices/!v/klatt5 +4 -0
  318. package/espeak-ng-data/voices/!v/klatt6 +4 -0
  319. package/espeak-ng-data/voices/!v/linda +20 -0
  320. package/espeak-ng-data/voices/!v/m1 +20 -0
  321. package/espeak-ng-data/voices/!v/m2 +15 -0
  322. package/espeak-ng-data/voices/!v/m3 +17 -0
  323. package/espeak-ng-data/voices/!v/m4 +17 -0
  324. package/espeak-ng-data/voices/!v/m5 +15 -0
  325. package/espeak-ng-data/voices/!v/m6 +13 -0
  326. package/espeak-ng-data/voices/!v/m7 +17 -0
  327. package/espeak-ng-data/voices/!v/m8 +16 -0
  328. package/espeak-ng-data/voices/!v/marcelo +17 -0
  329. package/espeak-ng-data/voices/!v/max +15 -0
  330. package/espeak-ng-data/voices/!v/michel +22 -0
  331. package/espeak-ng-data/voices/!v/miguel +22 -0
  332. package/espeak-ng-data/voices/!v/mike2 +12 -0
  333. package/espeak-ng-data/voices/!v/norbert +50 -0
  334. package/espeak-ng-data/voices/!v/pablo +52 -0
  335. package/espeak-ng-data/voices/!v/paul +17 -0
  336. package/espeak-ng-data/voices/!v/pedro +23 -0
  337. package/espeak-ng-data/voices/!v/quincy +20 -0
  338. package/espeak-ng-data/voices/!v/rob +17 -0
  339. package/espeak-ng-data/voices/!v/robert +17 -0
  340. package/espeak-ng-data/voices/!v/robosoft +26 -0
  341. package/espeak-ng-data/voices/!v/robosoft2 +26 -0
  342. package/espeak-ng-data/voices/!v/robosoft3 +26 -0
  343. package/espeak-ng-data/voices/!v/robosoft4 +25 -0
  344. package/espeak-ng-data/voices/!v/robosoft5 +25 -0
  345. package/espeak-ng-data/voices/!v/robosoft6 +15 -0
  346. package/espeak-ng-data/voices/!v/robosoft7 +25 -0
  347. package/espeak-ng-data/voices/!v/robosoft8 +16 -0
  348. package/espeak-ng-data/voices/!v/sandro +25 -0
  349. package/espeak-ng-data/voices/!v/shelby +18 -0
  350. package/espeak-ng-data/voices/!v/steph +21 -0
  351. package/espeak-ng-data/voices/!v/steph2 +21 -0
  352. package/espeak-ng-data/voices/!v/steph3 +22 -0
  353. package/espeak-ng-data/voices/!v/travis +23 -0
  354. package/espeak-ng-data/voices/!v/victor +16 -0
  355. package/espeak-ng-data/voices/!v/whisper +13 -0
  356. package/espeak-ng-data/voices/!v/whisperf +24 -0
  357. package/espeak-ng-data/voices/!v/zac +15 -0
  358. package/espeak-ng-data/yue_dict +0 -0
  359. package/package.json +44 -0
  360. 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,13 @@
1
+ language variant
2
+ name whisper
3
+ gender male
4
+
5
+ pitch 82 117
6
+ flutter 20
7
+
8
+ formant 0 100 0 100
9
+ formant 1 100 80 100
10
+
11
+ voicing 17
12
+ breath 75 75 50 40 15 10
13
+ breathw 150 150 200 200 400 400
@@ -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
+ };