@readium/speech 0.10.1 → 0.12.0

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 (204) hide show
  1. package/README.md +4 -6
  2. package/build/Fallback/fallbackEngineProvider.d.ts +3 -3
  3. package/build/Fallback/fallbackSpeechEngine.d.ts +5 -5
  4. package/build/Fallback/index.d.ts +3 -3
  5. package/build/Fallback/recoverableFailure.d.ts +1 -1
  6. package/build/SpeechServer/index.d.ts +7 -7
  7. package/build/SpeechServer/selectFormat.d.ts +1 -1
  8. package/build/SpeechServer/speechServerEngine.d.ts +5 -5
  9. package/build/SpeechServer/speechServerEngineProvider.d.ts +4 -4
  10. package/build/SpeechServer/speechServerVoiceMapping.d.ts +2 -2
  11. package/build/SpeechServer/types.d.ts +1 -1
  12. package/build/WebSpeech/WebSpeechVoiceManager.d.ts +1 -1
  13. package/build/WebSpeech/index.d.ts +3 -3
  14. package/build/WebSpeech/webSpeechEngine.d.ts +5 -4
  15. package/build/WebSpeech/webSpeechEngineProvider.d.ts +3 -3
  16. package/build/ar-BGKtJRyt.js +13 -0
  17. package/build/bg-D9Q1JriY.js +13 -0
  18. package/build/bn-Bpn_lzoe.js +13 -0
  19. package/build/ca-5hzouNcE.js +13 -0
  20. package/build/cmn-DlnYMCd8.js +13 -0
  21. package/build/cs-CDpMkMNO.js +13 -0
  22. package/build/da-XWCfWAwB.js +13 -0
  23. package/build/de-DU0USiOh.js +13 -0
  24. package/build/decorator/createLocator.d.ts +1 -1
  25. package/build/decorator/index.d.ts +2 -2
  26. package/build/decorator/setupDecorations.d.ts +1 -1
  27. package/build/el-ClBwbIAW.js +13 -0
  28. package/build/en-l3wcpTw3.js +13 -0
  29. package/build/engine.d.ts +3 -3
  30. package/build/es-DwOFJY07.js +13 -0
  31. package/build/fa-Ml9KtIw1.js +13 -0
  32. package/build/fi-Dk-5Fhhl.js +13 -0
  33. package/build/fr-MfhjukJ4.js +13 -0
  34. package/build/gl-DwtzWds9.js +13 -0
  35. package/build/he-CfajFNE_.js +13 -0
  36. package/build/hi-pv2ttBoh.js +13 -0
  37. package/build/hr-MRApcEKR.js +13 -0
  38. package/build/hu-DGRDZdHH.js +13 -0
  39. package/build/id-DZUuUiTG.js +13 -0
  40. package/build/index.d.ts +14 -15
  41. package/build/index.js +1802 -6858
  42. package/build/it-DJUYnjyj.js +13 -0
  43. package/build/ja-BpFcZRMu.js +13 -0
  44. package/build/kk-C480t1iH.js +13 -0
  45. package/build/kn-BVqs26qv.js +13 -0
  46. package/build/ko-TNoPZd6N.js +13 -0
  47. package/build/mr-DstAHTvT.js +13 -0
  48. package/build/ms-BceBSD-j.js +13 -0
  49. package/build/navigator.d.ts +7 -7
  50. package/build/nb-CwPbwG-i.js +13 -0
  51. package/build/nl-BmW-Dmw5.js +13 -0
  52. package/build/pl-CH8qoDu8.js +13 -0
  53. package/build/preferences/Preference.d.ts +6 -6
  54. package/build/preferences/SpeechDefaults.d.ts +1 -1
  55. package/build/preferences/SpeechPreferences.d.ts +1 -1
  56. package/build/preferences/SpeechSettings.d.ts +1 -1
  57. package/build/preferences/constraints.d.ts +8 -8
  58. package/build/preferences/guards.d.ts +1 -1
  59. package/build/preferences/index.d.ts +4 -2
  60. package/build/preferences/verbosityTables.d.ts +1 -1
  61. package/build/provider.d.ts +2 -2
  62. package/build/providerRegistry.d.ts +3 -3
  63. package/build/pt-CjCENn24.js +13 -0
  64. package/build/ro-BlJN7qkA.js +13 -0
  65. package/build/ru-udzq1D5e.js +13 -0
  66. package/build/sk-VAEHsTWJ.js +13 -0
  67. package/build/sl-DaZQ1gp0.js +13 -0
  68. package/build/speechNavigator.d.ts +14 -14
  69. package/build/sv-CicHwXe4.js +13 -0
  70. package/build/ta-CvpRY89g.js +13 -0
  71. package/build/te-D5TcdW9V.js +13 -0
  72. package/build/th-CYakoFVa.js +13 -0
  73. package/build/tr-BfYrcAz7.js +13 -0
  74. package/build/uk-BVs6lQbX.js +13 -0
  75. package/build/utils/text.d.ts +0 -2
  76. package/build/utterances/contextualization.d.ts +5 -4
  77. package/build/utterances/extractUtterances.d.ts +4 -4
  78. package/build/utterances/locate.d.ts +3 -3
  79. package/build/utterances/mergeUtterances.d.ts +2 -2
  80. package/build/utterances/nodeFields.d.ts +5 -0
  81. package/build/utterances/roles.d.ts +1 -1
  82. package/build/utterances/tableStructure.d.ts +5 -5
  83. package/build/utterances/text.d.ts +4 -4
  84. package/build/utterances/types.d.ts +3 -2
  85. package/build/utterances/utteranceOutput.d.ts +2 -2
  86. package/build/utterances/walk.d.ts +2 -2
  87. package/build/utterances/walkContext.d.ts +8 -7
  88. package/build/vi-DP1xN9KL.js +13 -0
  89. package/build/voices/filters.d.ts +1 -1
  90. package/build/voices/languages.d.ts +2 -2
  91. package/build/voices/localized.d.ts +1 -1
  92. package/build/voices/packages.d.ts +1 -1
  93. package/build/voices/sorting.d.ts +8 -2
  94. package/build/voices/types.d.ts +8 -3
  95. package/build/voices/voiceDuplicates.d.ts +1 -1
  96. package/build/yue-C8kEWdfv.js +13 -0
  97. package/package.json +15 -15
  98. package/build/ar-BYWkyZgW.cjs +0 -1
  99. package/build/ar-CJhBAgKq.js +0 -13
  100. package/build/bg-D7xe9YTl.cjs +0 -1
  101. package/build/bg-JvP4LoOT.js +0 -13
  102. package/build/bho-UB6aO8oz.cjs +0 -1
  103. package/build/bn-84u93pMd.js +0 -13
  104. package/build/bn-boRZ2pl5.cjs +0 -1
  105. package/build/ca-DdScTbex.js +0 -13
  106. package/build/ca-DkC8kSJ8.cjs +0 -1
  107. package/build/cmn-BsNLjyA4.cjs +0 -1
  108. package/build/cmn-Dd1zrvTE.js +0 -13
  109. package/build/cs-CDMne0uc.js +0 -13
  110. package/build/cs-p05r08p7.cjs +0 -1
  111. package/build/da-crefCup9.cjs +0 -1
  112. package/build/da-oFf4cHgj.js +0 -13
  113. package/build/de-Bjgc3bVq.js +0 -13
  114. package/build/de-xoW-RuhZ.cjs +0 -1
  115. package/build/el-C025sTug.cjs +0 -1
  116. package/build/el-FkKIcghI.js +0 -13
  117. package/build/en-BELFJRDQ.js +0 -13
  118. package/build/en-CbfmLXbR.cjs +0 -1
  119. package/build/es-DW7IPf8I.cjs +0 -1
  120. package/build/es-nAmbEkcR.js +0 -13
  121. package/build/eu-uq15ZgwW.cjs +0 -1
  122. package/build/fa-CHOnwiFr.cjs +0 -1
  123. package/build/fa-CTVUniYi.js +0 -13
  124. package/build/fi-Bxlno6Zi.cjs +0 -1
  125. package/build/fi-Do6QFzRv.js +0 -13
  126. package/build/fr-B5-P9o29.js +0 -13
  127. package/build/fr-yAth5-FC.cjs +0 -1
  128. package/build/gl-BEgzCAO0.cjs +0 -1
  129. package/build/gl-DqSXeC_F.js +0 -13
  130. package/build/gnd/a11y.d.ts +0 -20
  131. package/build/gnd/converter.d.ts +0 -73
  132. package/build/gnd/dom.d.ts +0 -6
  133. package/build/gnd/domRangeGenerator.d.ts +0 -9
  134. package/build/gnd/elementHandlers.d.ts +0 -5
  135. package/build/gnd/idAllocator.d.ts +0 -6
  136. package/build/gnd/index.d.ts +0 -7
  137. package/build/gnd/makeGnd.d.ts +0 -9
  138. package/build/gnd/object.d.ts +0 -28
  139. package/build/gnd/options.d.ts +0 -17
  140. package/build/gnd/prescan.d.ts +0 -1
  141. package/build/gnd/roles.d.ts +0 -3
  142. package/build/gnd/selectorGenerator.d.ts +0 -3
  143. package/build/gnd/text.d.ts +0 -18
  144. package/build/gnd/textFragmentGenerator.d.ts +0 -2
  145. package/build/gnd/textrefFragment.d.ts +0 -40
  146. package/build/gnd/types.d.ts +0 -21
  147. package/build/he-B-CTHJPL.cjs +0 -1
  148. package/build/he-CpyNwgaH.js +0 -13
  149. package/build/hi-C0yUjV1-.cjs +0 -1
  150. package/build/hi-CeOBacbl.js +0 -13
  151. package/build/hr-CSpU18l6.js +0 -13
  152. package/build/hr-CZvFOcdo.cjs +0 -1
  153. package/build/hu-_2PInItj.cjs +0 -1
  154. package/build/hu-oONHmpR6.js +0 -13
  155. package/build/id-BROcb7-t.cjs +0 -1
  156. package/build/id-BpZuB5Iw.js +0 -13
  157. package/build/index.cjs +0 -24
  158. package/build/it-Bmc8Ycff.cjs +0 -1
  159. package/build/it-CM4X84UA.js +0 -13
  160. package/build/ja-B8t6WOeg.cjs +0 -1
  161. package/build/ja-e-iw3c4_.js +0 -13
  162. package/build/kk-BdLCAb2s.js +0 -13
  163. package/build/kk-DskO1CW8.cjs +0 -1
  164. package/build/kn-BYRvouO5.js +0 -13
  165. package/build/kn-Cy3NH6na.cjs +0 -1
  166. package/build/ko-CZdQzppZ.cjs +0 -1
  167. package/build/ko-EIouMDK1.js +0 -13
  168. package/build/mr-9hGqBYlV.cjs +0 -1
  169. package/build/mr-DN-hwEV1.js +0 -13
  170. package/build/ms-B5E3oaWE.js +0 -13
  171. package/build/ms-DzpBxNFZ.cjs +0 -1
  172. package/build/nb-BQfw9EEH.cjs +0 -1
  173. package/build/nb-DOw05HBh.js +0 -13
  174. package/build/nl-CEydw4A9.js +0 -13
  175. package/build/nl-CyM0R4Gr.cjs +0 -1
  176. package/build/pl-Da8XOMa1.cjs +0 -1
  177. package/build/pl-Ivj_eAP7.js +0 -13
  178. package/build/pt-BPEGqRmW.js +0 -13
  179. package/build/pt-tubyvYaM.cjs +0 -1
  180. package/build/ro-BQ617SOx.js +0 -13
  181. package/build/ro-C-rXDfuM.cjs +0 -1
  182. package/build/ru-DJocRaDd.cjs +0 -1
  183. package/build/ru-Dieeph4H.js +0 -13
  184. package/build/sk-BvpojIXp.cjs +0 -1
  185. package/build/sk-pEiOt4GQ.js +0 -13
  186. package/build/sl-D0X3JKvQ.cjs +0 -1
  187. package/build/sl-Z6jWAR8J.js +0 -13
  188. package/build/sv-4lEgrHda.cjs +0 -1
  189. package/build/sv-BT09piiZ.js +0 -13
  190. package/build/ta-B0YMGW5q.js +0 -13
  191. package/build/ta-CyeVPdIs.cjs +0 -1
  192. package/build/te-DqWIZZxL.cjs +0 -1
  193. package/build/te-ax-HNsAY.js +0 -13
  194. package/build/th-BcoSVZAp.cjs +0 -1
  195. package/build/th-C7Dbxwoz.js +0 -13
  196. package/build/tr-BuafNhfw.cjs +0 -1
  197. package/build/tr-mipEichO.js +0 -13
  198. package/build/uk-CHdx7DHz.js +0 -13
  199. package/build/uk-DkXNxnD9.cjs +0 -1
  200. package/build/vi-Ct2avSE6.cjs +0 -1
  201. package/build/vi-DrlcEwAD.js +0 -13
  202. package/build/wuu-DnwGQ6c-.cjs +0 -1
  203. package/build/yue-CFroa59o.js +0 -13
  204. package/build/yue-j9Y48sR-.cjs +0 -1
@@ -0,0 +1,13 @@
1
+ const l = "it", e = "it-IT", a = "Ciao, mi chiamo {name} e sono una voce italiana.", i = [{ label: "Elsa (Alta qualita)", name: "Microsoft Elsa Online (Natural) - Italian (Italy)", language: "it-IT", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Isabella", name: "Microsoft Isabella Online (Natural) - Italian (Italy)", language: "it-IT", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Giuseppe", name: "Microsoft GiuseppeMultilingual Online (Natural) - Italian (Italy)", language: "it-IT", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Diego", name: "Microsoft Diego Online (Natural) - Italian (Italy)", language: "it-IT", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Voce Google femminile", name: "Google italiano", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "it-IT", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Federica", name: "Federica", localizedName: "apple", language: "it-IT", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Emma", name: "Emma", localizedName: "apple", language: "it-IT", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Alice", name: "Alice", localizedName: "apple", language: "it-IT", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Paola", name: "Paola", localizedName: "apple", language: "it-IT", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Luca", name: "Luca", localizedName: "apple", language: "it-IT", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Elsa", name: "Microsoft Elsa - Italian (Italy)", language: "it-IT", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Cosimo", name: "Microsoft Cosimo - Italian (Italy)", language: "it-IT", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Voce femminile 1", name: "Google italiano 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google it-it-x-itb-network", "Chrome OS italiano 2", "Android Speech Recognition and Synthesis from Google it-it-x-itb-local", "Android Speech Recognition and Synthesis from Google it-IT-language"], nativeID: ["it-it-x-itb-network", "it-it-x-itb-local"], language: "it-IT", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voce femminile 2", name: "Google italiano 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google it-it-x-kda-network", "Chrome OS italiano 1", "Android Speech Recognition and Synthesis from Google it-it-x-kda-local"], nativeID: ["it-it-x-kda-network", "it-it-x-kda-local"], language: "it-IT", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voce maschile 1", name: "Google italiano 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google it-it-x-itc-network", "Chrome OS italiano 3", "Android Speech Recognition and Synthesis from Google it-it-x-itc-local"], nativeID: ["it-it-x-itc-network", "it-it-x-itc-local"], language: "it-IT", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voce maschile 2", name: "Google italiano 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google it-it-x-itd-network", "Chrome OS italiano 4", "Android Speech Recognition and Synthesis from Google it-it-x-itd-local"], nativeID: ["it-it-x-itd-network", "it-it-x-itd-local"], language: "it-IT", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], t = {
2
+ language: "it",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: i
6
+ };
7
+ export {
8
+ t as default,
9
+ e as defaultRegion,
10
+ l as language,
11
+ a as testUtterance,
12
+ i as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const l = "ja", e = "ja-JP", a = "こんにちは。私の名前は{name}で、日本語の声を担当しています。", o = [{ label: "Nanami", name: "Microsoft Nanami Online (Natural) - Japanese (Japan)", language: "ja-JP", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Keita", name: "Microsoft Keita Online (Natural) - Japanese (Japan)", language: "ja-JP", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Hattori", name: "Hattori", nativeID: ["com.apple.ttsbundle.siri_Hattori_ja-JP_premium"], localizedName: "apple", language: "ja-JP", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Google の女性の声", name: "Google 日本語", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "ja-JP", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "O-Ren", name: "O-Ren", localizedName: "apple", language: "ja-JP", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Kyoko", name: "Kyoko", localizedName: "apple", language: "ja-JP", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Otoya", name: "Otoya", localizedName: "apple", language: "ja-JP", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Ayumi", name: "Microsoft Ayumi - Japanese (Japan)", language: "ja-JP", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Haruka", name: "Microsoft Haruka - Japanese (Japan)", language: "ja-JP", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Ichiro", name: "Microsoft Ichiro - Japanese (Japan)", language: "ja-JP", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "女性の声1", name: "Google 日本語 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ja-jp-x-htm-network", "Chrome OS 日本語 1", "Android Speech Recognition and Synthesis from Google ja-jp-x-htm-local", "Android Speech Recognition and Synthesis from Google ja-JP-language"], nativeID: ["ja-jp-x-htm-network", "ja-jp-x-htm-local"], language: "ja-JP", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "女性の声2", name: "Chrome OS 日本語 2", altNames: ["Android Speech Recognition and Synthesis from Google ja-jp-x-jab-network", "Android Speech Recognition and Synthesis from Google ja-jp-x-jab-local"], nativeID: ["ja-jp-x-jab-network", "ja-jp-x-jab-local"], language: "ja-JP", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "男性の声1", name: "Google 日本語 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ja-jp-x-jac-network", "Chrome OS 日本語 3", "Android Speech Recognition and Synthesis from Google ja-jp-x-jac-local"], nativeID: ["ja-jp-x-jac-network", "ja-jp-x-jac-local"], language: "ja-JP", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "男性の声2", name: "Google 日本語 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ja-jp-x-jad-network", "Chrome OS 日本語 4", "Android Speech Recognition and Synthesis from Google ja-jp-x-jad-local"], nativeID: ["ja-jp-x-jad-network", "ja-jp-x-jad-local"], language: "ja-JP", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "ja",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ l as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const t = "kk", a = "kk-KZ", e = "Сәлеметсіз бе, менің атым {name} және мен қазақ дауыстымын.", l = [{ label: "Aigul", name: "Microsoft Aigul Online (Natural) - Kazakh (Kazakhstan)", language: "kk-KZ", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Daulet", name: "Microsoft Daulet Online (Natural) - Kazakh (Kazakhstan)", language: "kk-KZ", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Aru", name: "Aru", nativeID: ["com.apple.voice.Aru"], localizedName: "apple", language: "kk-KZ", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }], n = {
2
+ language: "kk",
3
+ defaultRegion: a,
4
+ testUtterance: e,
5
+ voices: l
6
+ };
7
+ export {
8
+ n as default,
9
+ a as defaultRegion,
10
+ t as language,
11
+ e as testUtterance,
12
+ l as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const o = "kn", e = "kn-IN", n = "ಹಲೋ, ನನ್ನ ಹೆಸರು {name} ಮತ್ತು ನಾನು ಕನ್ನಡ ಧ್ವನಿ.", a = [{ label: "Sapna", name: "Microsoft Sapna Online (Natural) - Kannada (India)", language: "kn-IN", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Gagan", name: "Microsoft Gagan Online (Natural) - Kannada (India)", language: "kn-IN", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Soumya", name: "Soumya", localizedName: "apple", language: "kn-IN", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "ಸ್ತ್ರೀ ಧ್ವನಿ", name: "Android Speech Recognition and Synthesis from Google kn-in-x-knf-network", altNames: ["Android Speech Recognition and Synthesis from Google kn-in-x-knf-local", "Android Speech Recognition and Synthesis from Google kn-IN-language"], nativeID: ["kn-in-x-knf-network", "kn-in-x-knf-local"], language: "kn-IN", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "ಪುರುಷ ಧ್ವನಿ", name: "Android Speech Recognition and Synthesis from Google kn-in-x-knm-network", altNames: ["Android Speech Recognition and Synthesis from Google kn-in-x-knm-local"], nativeID: ["kn-in-x-knm-network", "kn-in-x-knm-local"], language: "kn-IN", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], l = {
2
+ language: "kn",
3
+ defaultRegion: e,
4
+ testUtterance: n,
5
+ voices: a
6
+ };
7
+ export {
8
+ l as default,
9
+ e as defaultRegion,
10
+ o as language,
11
+ n as testUtterance,
12
+ a as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const l = "ko", e = "ko-KR", o = "안녕하세요, 저는 {name}이고 한국어 음성입니다.", a = [{ label: "SunHi", name: "Microsoft SunHi Online (Natural) - Korean (Korea)", language: "ko-KR", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Hyunsu", name: "Microsoft HyunsuMultilingual Online (Natural) - Korean (Korea)", altNames: ["Microsoft Hyunsu Online (Natural) - Korean (Korea)"], language: "ko-KR", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "InJoon", name: "Microsoft InJoon Online (Natural) - Korean (Korea)", language: "ko-KR", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Google 여성 음성", name: "Google 한국의", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "ko-KR", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Yuna", name: "Yuna", localizedName: "apple", language: "ko-KR", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Jian", name: "Jian", localizedName: "apple", language: "ko-KR", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Suhyun", name: "Suhyun", localizedName: "apple", language: "ko-KR", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Sora", name: "Sora", localizedName: "apple", language: "ko-KR", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Minsu", name: "Minsu", localizedName: "apple", language: "ko-KR", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Heami", name: "Microsoft Heami - Korean (Korea)", language: "ko-KR", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "여성 목소리 1", name: "Google 한국어 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ko-kr-x-kob-network", "Chrome OS 한국어 2", "Android Speech Recognition and Synthesis from Google ko-kr-x-kob-local", "Android Speech Recognition and Synthesis from Google ko-KR-language"], nativeID: ["ko-kr-x-kob-network", "ko-kr-x-kob-local"], language: "ko-KR", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "여성 목소리 2", name: "Google 한국어 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ko-kr-x-ism-network", "Chrome OS 한국어 1", "Android Speech Recognition and Synthesis from Google ko-kr-x-ism-local"], nativeID: ["ko-kr-x-ism-network", "ko-kr-x-ism-local"], language: "ko-KR", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "남성 1", name: "Google 한국어 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ko-kr-x-koc-network", "Chrome OS 한국어 3", "Android Speech Recognition and Synthesis from Google ko-kr-x-koc-local"], nativeID: ["ko-kr-x-koc-network", "ko-kr-x-koc-local"], language: "ko-KR", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "남성 2", name: "Google 한국어 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google ko-kr-x-kod-network", "Chrome OS 한국어 4", "Android Speech Recognition and Synthesis from Google ko-kr-x-kod-local"], nativeID: ["ko-kr-x-kod-network", "ko-kr-x-kod-local"], language: "ko-KR", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "ko",
3
+ defaultRegion: e,
4
+ testUtterance: o,
5
+ voices: a
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ l as language,
11
+ o as testUtterance,
12
+ a as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const n = "mr", e = "mr-IN", a = "नमस्कार, माझे नाव {name} आहे आणि मी एक मराठी आवाज आहे.", r = [{ label: "Aarohi", name: "Microsoft Aarohi Online (Natural) - Marathi (India)", language: "mr-IN", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Manohar", name: "Microsoft Manohar Online (Natural) - Marathi (India)", language: "mr-IN", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Ananya", name: "Ananya", localizedName: "apple", language: "mr-IN", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "स्त्री आवाज", name: "Android Speech Recognition and Synthesis from Google mr-in-x-mrf-network", altNames: ["Android Speech Recognition and Synthesis from Google mr-in-x-mrf-local", "Android Speech Recognition and Synthesis from Google mr-IN-language"], nativeID: ["mr-in-x-mrf-network", "mr-in-x-mrf-local"], language: "mr-IN", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], o = {
2
+ language: "mr",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: r
6
+ };
7
+ export {
8
+ o as default,
9
+ e as defaultRegion,
10
+ n as language,
11
+ a as testUtterance,
12
+ r as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const n = "ms", e = "ms-MY", a = "Hello, nama saya {name} dan saya suara Melayu.", o = [{ label: "Yasmin", name: "Microsoft Yasmin Online (Natural) - Malay (Malaysia)", language: "ms-MY", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Osman", name: "Microsoft Osman Online (Natural) - Malay (Malaysia)", language: "ms-MY", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Amira", name: "Amira", localizedName: "apple", language: "ms-MY", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Rizwan", name: "Microsoft Rizwan - Malay (Malaysia)", language: "ms-MY", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Suara perempuan 1", name: "Android Speech Recognition and Synthesis from Google ms-my-x-msc-network", altNames: ["Android Speech Recognition and Synthesis from Google ms-my-x-msc-local", "Android Speech Recognition and Synthesis from Google ms-MY-language"], nativeID: ["ms-my-x-msc-network", "ms-my-x-msc-local"], language: "ms-MY", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Suara perempuan 2", name: "Android Speech Recognition and Synthesis from Google ms-my-x-mse-network", altNames: ["Android Speech Recognition and Synthesis from Google ms-my-x-mse-local"], nativeID: ["ms-my-x-mse-network", "ms-my-x-mse-local"], language: "ms-MY", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Suara lelaki 1", name: "Android Speech Recognition and Synthesis from Google ms-my-x-msd-network", altNames: ["Android Speech Recognition and Synthesis from Google ms-my-x-msd-local"], nativeID: ["ms-my-x-msd-network", "ms-my-x-msd-local"], language: "ms-MY", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Suara lelaki 2", name: "Android Speech Recognition and Synthesis from Google ms-my-x-msg-network", altNames: ["Android Speech Recognition and Synthesis from Google ms-my-x-msg-local"], nativeID: ["ms-my-x-msg-network", "ms-my-x-msg-local"], language: "ms-MY", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], l = {
2
+ language: "ms",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ l as default,
9
+ e as defaultRegion,
10
+ n as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -1,9 +1,9 @@
1
- import { GndObject } from './gnd/types';
2
- import { Configurable } from './preferences/Configurable';
3
- import { SpeechPreferences } from './preferences/SpeechPreferences';
4
- import { SpeechSettings } from './preferences/SpeechSettings';
5
- import { ReadiumSpeechVoice } from './voices/types';
6
- import { ReadiumSpeechUtterance } from './utterance';
1
+ import { GuidedNavigationObject } from '@readium/shared';
2
+ import { Configurable } from './preferences/Configurable.js';
3
+ import { SpeechPreferences } from './preferences/SpeechPreferences.js';
4
+ import { SpeechSettings } from './preferences/SpeechSettings.js';
5
+ import { ReadiumSpeechVoice } from './voices/types.js';
6
+ import { ReadiumSpeechUtterance } from './utterance.js';
7
7
  export type ReadiumSpeechPlaybackState = "playing" | "paused" | "idle" | "loading" | "ready";
8
8
  export interface ReadiumSpeechPlaybackEvent {
9
9
  type: "start" | "pause" | "resume" | "end" | "stop" | "skip" | "error" | "boundary" | "mark" | "idle" | "loading" | "ready" | "voiceschanged" | "languagefallback" | "enginefallback" | "enginerecovered";
@@ -16,7 +16,7 @@ export interface ReadiumSpeechNavigatorContract extends Configurable<SpeechSetti
16
16
  setSpeakInContentLanguage(enabled: boolean): void;
17
17
  getSpeakInContentLanguage(): boolean;
18
18
  loadContent(content: ReadiumSpeechUtterance | ReadiumSpeechUtterance[]): void;
19
- loadGndContent(nodes: GndObject[]): Promise<void>;
19
+ loadGndContent(nodes: GuidedNavigationObject[]): Promise<void>;
20
20
  getCurrentContent(): ReadiumSpeechUtterance | null;
21
21
  getContentQueue(): ReadiumSpeechUtterance[];
22
22
  play(): void;
@@ -0,0 +1,13 @@
1
+ const a = "nb", e = "nb-NO", o = "Hei, jeg heter {name} og er en norsk stemme.", n = [{ label: "Pernille", name: "Microsoft Pernille Online (Natural) - Norwegian (Bokmål, Norway)", language: "nb-NO", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Finn", name: "Microsoft Finn Online (Natural) - Norwegian (Bokmål Norway)", language: "nb-NO", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Nora", name: "Nora", localizedName: "apple", language: "nb-NO", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Henrik", name: "Henrik", localizedName: "apple", language: "nb-NO", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Jon", name: "Microsoft Jon - Norwegian (Bokmål Norway)", language: "nb-NO", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Kvinnestemme 1", name: "Google Norsk Bokmål 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nb-no-x-cfl-network", "Chrome OS Norsk Bokmål 2", "Android Speech Recognition and Synthesis from Google nb-no-x-cfl-local", "Android Speech Recognition and Synthesis from Google nb-NO-language"], nativeID: ["nb-no-x-cfl-network", "nb-no-x-cfl-local"], language: "nb-NO", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Kvinnestemme 2", name: "Google Norsk Bokmål 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nb-no-x-rfj-network", "Chrome OS Norsk Bokmål 1", "Android Speech Recognition and Synthesis from Google nb-no-x-rfj-local"], nativeID: ["nb-no-x-rfj-network", "nb-no-x-rfj-local"], language: "nb-NO", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Kvinnestemme 3", name: "Google Norsk Bokmål 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nb-no-x-tfs-network", "Chrome OS Norsk Bokmål 4", "Android Speech Recognition and Synthesis from Google nb-no-x-tfs-local"], nativeID: ["nb-no-x-tfs-network", "nb-no-x-tfs-local"], language: "nb-NO", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mannsstemme 1", name: "Google Norsk Bokmål 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nb-no-x-cmj-network", "Chrome OS Norsk Bokmål 3", "Android Speech Recognition and Synthesis from Google nb-no-x-cmj-local"], nativeID: ["nb-no-x-cmj-network", "nb-no-x-cmj-local"], language: "nb-NO", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mannsstemme 2", name: "Google Norsk Bokmål 5 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nb-no-x-tmg-network", "Chrome OS Norsk Bokmål 5", "Android Speech Recognition and Synthesis from Google nb-no-x-tmg-local"], nativeID: ["nb-no-x-tmg-network", "nb-no-x-tmg-local"], language: "nb-NO", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], l = {
2
+ language: "nb",
3
+ defaultRegion: e,
4
+ testUtterance: o,
5
+ voices: n
6
+ };
7
+ export {
8
+ l as default,
9
+ e as defaultRegion,
10
+ a as language,
11
+ o as testUtterance,
12
+ n as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const a = "nl", e = "nl-NL", l = "Hallo, mijn naam is {name} en ik ben een Nederlandse stem.", n = [{ label: "Colette", name: "Microsoft Colette Online (Natural) - Dutch (Netherlands)", language: "nl-NL", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Fenna", name: "Microsoft Fenna Online (Natural) - Dutch (Netherlands)", language: "nl-NL", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Hanna", name: "Microsoft Hanna Online - Dutch (Netherlands)", language: "nl-NL", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Maarten", name: "Microsoft Maarten Online (Natural) - Dutch (Netherlands)", language: "nl-NL", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Dena", name: "Microsoft Dena Online (Natural) - Dutch (Belgium)", language: "nl-BE", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Arnaud", name: "Microsoft Arnaud Online (Natural) - Dutch (Belgium)", language: "nl-BE", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Google mannelijke stem", name: "Google Nederlands", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "nl-NL", gender: "male", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Claire", name: "Claire", localizedName: "apple", language: "nl-NL", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Xander", name: "Xander", localizedName: "apple", language: "nl-NL", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Ellen", name: "Ellen", localizedName: "apple", language: "nl-BE", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Frank", name: "Microsoft Frank - Dutch (Netherlands)", language: "nl-NL", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Vrouwelijke stem 1 (Nederland)", name: "Google Nederlands 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nl-nl-x-lfc-network", "Chrome OS Nederlands 4", "Android Speech Recognition and Synthesis from Google nl-nl-x-lfc-local", "Android Speech Recognition and Synthesis from Google nl-NL-language"], nativeID: ["nl-nl-x-lfc-network", "nl-nl-x-lfc-local"], language: "nl-NL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Vrouwelijke stem 2 (Nederland)", name: "Google Nederlands 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nl-nl-x-tfb-network", "Chrome OS Nederlands 1", "Android Speech Recognition and Synthesis from Google nl-nl-x-tfb-local"], nativeID: ["nl-nl-x-tfb-network", "nl-nl-x-tfb-local"], language: "nl-NL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Vrouwelijke stem 3 (Nederland)", name: "Google Nederlands 5 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nl-nl-x-yfr-network", "Chrome OS Nederlands 5", "Android Speech Recognition and Synthesis from Google nl-nl-x-yfr-local"], nativeID: ["nl-nl-x-yfr-network", "nl-nl-x-yfr-local"], language: "nl-NL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mannelijke stem 1 (Nederland)", name: "Google Nederlands 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nl-nl-x-bmh-network", "Chrome OS Nederlands 2", "Android Speech Recognition and Synthesis from Google nl-nl-x-bmh-local"], nativeID: ["nl-nl-x-bmh-network", "nl-nl-x-bmh-local"], language: "nl-NL", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mannelijke stem 2 (Nederland)", name: "Google Nederlands 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google nl-nl-x-dma-network", "Chrome OS Nederlands 3", "Android Speech Recognition and Synthesis from Google nl-nl-x-dma-local"], nativeID: ["nl-nl-x-dma-network", "nl-nl-x-dma-local"], language: "nl-NL", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Vrouwelijke stem (België)", name: "Android Speech Recognition and Synthesis from Google nl-be-x-bec-network", altNames: ["Android Speech Recognition and Synthesis from Google nl-be-x-bec-local", "Android Speech Recognition and Synthesis from Google nl-BE-language"], nativeID: ["nl-be-x-bec-network", "nl-be-x-bec-local"], language: "nl-BE", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mannelijke stem (België)", name: "Android Speech Recognition and Synthesis from Google nl-be-x-bed-network", altNames: ["Android Speech Recognition and Synthesis from Google nl-be-x-bed-local"], nativeID: ["nl-be-x-bed-network", "nl-be-x-bed-local"], language: "nl-BE", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], o = {
2
+ language: "nl",
3
+ defaultRegion: e,
4
+ testUtterance: l,
5
+ voices: n
6
+ };
7
+ export {
8
+ o as default,
9
+ e as defaultRegion,
10
+ a as language,
11
+ l as testUtterance,
12
+ n as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const a = "pl", e = "pl-PL", l = "Cześć, nazywam się {name} i mam polski głos.", o = [{ label: "Zofia", name: "Microsoft Zofia Online (Natural) - Polish (Poland)", language: "pl-PL", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Paulina", name: "Microsoft Paulina Online - Polish (Poland)", language: "pl-PL", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Marek", name: "Microsoft Marek Online (Natural) - Polish (Poland)", language: "pl-PL", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Żeński głos Google’a", name: "Google polski", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "pl-PL", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Ewa", name: "Ewa", localizedName: "apple", language: "pl-PL", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Zosia", name: "Zosia", localizedName: "apple", language: "pl-PL", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Krzysztof", name: "Krzysztof", localizedName: "apple", language: "pl-PL", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Paulina", name: "Microsoft Paulina - Polish (Poland)", language: "pl-PL", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Adam", name: "Microsoft Adam - Polish (Poland)", language: "pl-PL", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Głos żeński 1", name: "Google Polski 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pl-pl-x-afb-network", "Chrome OS Polski 2", "Android Speech Recognition and Synthesis from Google pl-pl-x-afb-local", "Android Speech Recognition and Synthesis from Google pl-PL-language"], nativeID: ["pl-pl-x-afb-network", "pl-pl-x-afb-local"], language: "pl-PL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Głos żeński 2", name: "Google Polski 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pl-pl-x-oda-network", "Chrome OS Polski 1", "Android Speech Recognition and Synthesis from Google pl-pl-x-oda-local"], nativeID: ["pl-pl-x-oda-network", "pl-pl-x-oda-local"], language: "pl-PL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Głos żeński 3", name: "Google Polski 5 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pl-pl-x-zfg-network", "Chrome OS Polski 5", "Android Speech Recognition and Synthesis from Google pl-pl-x-zfg-local"], nativeID: ["pl-pl-x-zfg-network", "pl-pl-x-zfg-local"], language: "pl-PL", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Głos męski 1", name: "Google Polski 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pl-pl-x-bmg-network", "Chrome OS Polski 3", "Android Speech Recognition and Synthesis from Google pl-pl-x-bmg-local"], nativeID: ["pl-pl-x-bmg-network", "pl-pl-x-bmg-local"], language: "pl-PL", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Głos męski 2", name: "Google Polski 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pl-pl-x-jmk-network", "Chrome OS Polski 4", "Android Speech Recognition and Synthesis from Google pl-pl-x-jmk-local"], nativeID: ["pl-pl-x-jmk-network", "pl-pl-x-jmk-local"], language: "pl-PL", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "pl",
3
+ defaultRegion: e,
4
+ testUtterance: l,
5
+ voices: o
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ a as language,
11
+ l as testUtterance,
12
+ o as voices
13
+ };
@@ -5,10 +5,10 @@ export interface IPreference<T> {
5
5
  clear(): void;
6
6
  }
7
7
  export interface IEnumPreference<T> extends IPreference<T> {
8
- supportedValues: T[];
8
+ supportedValues: readonly T[];
9
9
  }
10
10
  export interface IRangePreference<T> extends IPreference<T> {
11
- supportedRange: [T, T];
11
+ supportedRange: readonly [T, T];
12
12
  step: number;
13
13
  increment(): void;
14
14
  decrement(): void;
@@ -38,11 +38,11 @@ export declare class EnumPreference<T extends string | number | symbol> extends
38
38
  effectiveValue?: T | null;
39
39
  isEffective: boolean;
40
40
  onChange: (newValue: T | null | undefined) => void;
41
- supportedValues: T[];
41
+ supportedValues: readonly T[];
42
42
  });
43
43
  set value(value: T | null | undefined);
44
44
  get value(): T | null | undefined;
45
- get supportedValues(): T[];
45
+ get supportedValues(): readonly T[];
46
46
  }
47
47
  export declare class BooleanPreference extends Preference<boolean> {
48
48
  set value(value: boolean | null | undefined);
@@ -61,12 +61,12 @@ export declare class RangePreference<T extends number> extends Preference<T> imp
61
61
  effectiveValue?: T | null;
62
62
  isEffective: boolean;
63
63
  onChange: (newValue: T | null | undefined) => void;
64
- supportedRange: [T, T];
64
+ supportedRange: readonly [T, T];
65
65
  step: number;
66
66
  });
67
67
  set value(value: T | null | undefined);
68
68
  get value(): T | null | undefined;
69
- get supportedRange(): [T, T];
69
+ get supportedRange(): readonly [T, T];
70
70
  get step(): number;
71
71
  increment(): void;
72
72
  decrement(): void;
@@ -1,4 +1,4 @@
1
- import { GndRole } from '../gnd/types.js';
1
+ import { GndRole } from '@readium/guided-navigation';
2
2
  import { AutoPauseScope, VerbosityPreset } from './SpeechPreferences.js';
3
3
  import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
4
4
  export interface ISpeechDefaults {
@@ -1,4 +1,4 @@
1
- import { GndRole } from '../gnd/types.js';
1
+ import { GndRole } from '@readium/guided-navigation';
2
2
  import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
3
3
  import { ConfigurablePreferences } from './Configurable.js';
4
4
  export type VerbosityPreset = "none" | "few" | "some" | "most" | "custom";
@@ -1,4 +1,4 @@
1
- import { GndRole } from '../gnd/types.js';
1
+ import { GndRole } from '@readium/guided-navigation';
2
2
  import { ConfigurableSettings } from './Configurable.js';
3
3
  import { SpeechDefaults } from './SpeechDefaults.js';
4
4
  import { AutoPauseScope, SpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
@@ -1,16 +1,16 @@
1
1
  import { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
2
2
  import { AutoPauseScope, ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
3
3
  export interface RangeConfig {
4
- range: [number, number];
5
- step: number;
4
+ readonly range: readonly [number, number];
5
+ readonly step: number;
6
6
  }
7
7
  export declare const pauseDurationRangeConfig: RangeConfig;
8
8
  export declare const rateRangeConfig: RangeConfig;
9
9
  export declare const pitchRangeConfig: RangeConfig;
10
10
  export declare const volumeRangeConfig: RangeConfig;
11
- export declare const verbosityPresets: VerbosityPreset[];
12
- export declare const languageModes: LanguageMode[];
13
- export declare const extractionFormats: ExtractionFormat[];
14
- export declare const autoPauseScopes: AutoPauseScope[];
15
- export declare const segmentationModes: Segmentation[];
16
- export declare const extractionPreferenceKeys: (keyof ISpeechPreferences)[];
11
+ export declare const verbosityPresets: readonly VerbosityPreset[];
12
+ export declare const languageModes: readonly LanguageMode[];
13
+ export declare const extractionFormats: readonly ExtractionFormat[];
14
+ export declare const autoPauseScopes: readonly AutoPauseScope[];
15
+ export declare const segmentationModes: readonly Segmentation[];
16
+ export declare const extractionPreferenceKeys: readonly (keyof ISpeechPreferences)[];
@@ -1,4 +1,4 @@
1
1
  export declare function ensureBoolean(value: boolean | null | undefined): boolean | null | undefined;
2
2
  export declare function ensureEnumValue<T extends string | number | symbol>(value: T | null | undefined, supportedValues: readonly T[]): T | null | undefined;
3
- export declare function ensureValueInRange(value: number | null | undefined, range: [number, number]): number | null | undefined;
3
+ export declare function ensureValueInRange(value: number | null | undefined, range: readonly [number, number]): number | null | undefined;
4
4
  export declare function ensureStringArray(value: string[] | null | undefined): string[] | null | undefined;
@@ -3,8 +3,10 @@ export type { IPreferencesEditor } from './PreferencesEditor.js';
3
3
  export { BooleanPreference, EnumPreference, Preference, RangePreference, StringArrayPreference } from './Preference.js';
4
4
  export type { IEnumPreference, IPreference, IRangePreference } from './Preference.js';
5
5
  export { SpeechPreferences } from './SpeechPreferences.js';
6
- export type { ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
7
- export type { LanguageMode, Segmentation } from '../utterances/types.js';
6
+ export type { AutoPauseScope, ISpeechPreferences, VerbosityPreset } from './SpeechPreferences.js';
7
+ export type { ExtractionFormat, LanguageMode, Segmentation } from '../utterances/types.js';
8
+ export { autoPauseScopes, extractionFormats, extractionPreferenceKeys, languageModes, pauseDurationRangeConfig, pitchRangeConfig, rateRangeConfig, segmentationModes, verbosityPresets, volumeRangeConfig, } from './constraints.js';
9
+ export type { RangeConfig } from './constraints.js';
8
10
  export { SpeechDefaults } from './SpeechDefaults.js';
9
11
  export type { ISpeechDefaults } from './SpeechDefaults.js';
10
12
  export { SpeechSettings } from './SpeechSettings.js';
@@ -1,4 +1,4 @@
1
- import { GndRole } from '../gnd/types.js';
1
+ import { GndRole } from '@readium/guided-navigation';
2
2
  import { VerbosityPreset } from './SpeechPreferences.js';
3
3
  export declare const skippedAtVerbosity: Readonly<Record<Exclude<VerbosityPreset, "custom">, ReadonlySet<GndRole>>>;
4
4
  export declare const contextualizedAtVerbosity: Readonly<Record<Exclude<VerbosityPreset, "custom">, ReadonlySet<GndRole>>>;
@@ -1,5 +1,5 @@
1
- import { ReadiumSpeechPlaybackEngine } from './engine';
2
- import { ReadiumSpeechVoice } from './voices/types';
1
+ import { ReadiumSpeechPlaybackEngine } from './engine.js';
2
+ import { ReadiumSpeechVoice } from './voices/types.js';
3
3
  export interface ReadiumSpeechEngineProvider {
4
4
  readonly id: string;
5
5
  readonly name: string;
@@ -1,6 +1,6 @@
1
- import { ReadiumSpeechEngineProvider } from './provider';
2
- import { ReadiumSpeechPlaybackEngine } from './engine';
3
- import { ReadiumSpeechVoice } from './voices/types';
1
+ import { ReadiumSpeechEngineProvider } from './provider.js';
2
+ import { ReadiumSpeechPlaybackEngine } from './engine.js';
3
+ import { ReadiumSpeechVoice } from './voices/types.js';
4
4
  export interface ReadiumSpeechProviderVoices {
5
5
  providerId: string;
6
6
  voices: ReadiumSpeechVoice[];
@@ -0,0 +1,13 @@
1
+ const t = "pt", e = "pt-BR", a = "Olá, o meu nome é {name} e sou uma voz portuguesa.", o = [{ label: "Raquel", name: "Microsoft Raquel Online (Natural) - Portuguese (Portugal)", language: "pt-PT", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Duarte", name: "Microsoft Duarte Online (Natural) - Portuguese (Portugal)", language: "pt-PT", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Francisca", name: "Microsoft Francisca Online (Natural) - Portuguese (Brazil)", language: "pt-BR", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Thalita", name: "Microsoft ThalitaMultilingual Online (Natural) - Portuguese (Brazil)", language: "pt-BR", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Antonio", name: "Microsoft Antonio Online (Natural) - Portuguese (Brazil)", language: "pt-BR", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Voz feminina do Google", name: "Google português do Brasil", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "pt-BR", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Catarina", name: "Catarina", localizedName: "apple", language: "pt-PT", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Joana", name: "Joana", localizedName: "apple", language: "pt-PT", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Joaquim", name: "Joaquim", localizedName: "apple", language: "pt-PT", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Fernanda", name: "Fernanda", localizedName: "apple", language: "pt-BR", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Luciana", name: "Luciana", localizedName: "apple", language: "pt-BR", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Felipe", name: "Felipe", localizedName: "apple", language: "pt-BR", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Helia", name: "Microsoft Helia - Portuguese (Portugal)", language: "pt-PT", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Maria", name: "Microsoft Maria - Portuguese (Brazil)", language: "pt-BR", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Daniel", name: "Microsoft Daniel - Portuguese (Brazil)", language: "pt-BR", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Voz feminina 1 (Portugal)", name: "Google português de Portugal 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-pt-x-jfb-network", "Android Speech Recognition and Synthesis from Google pt-pt-x-jfb-local", "Android Speech Recognition and Synthesis from Google pt-PT-language"], nativeID: ["pt-pt-x-jfb-network", "pt-pt-x-jfb-local"], language: "pt-PT", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz feminina 2 (Portugal)", name: "Google português de Portugal 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-pt-x-sfs-network", "Chrome OS português de Portugal", "Android Speech Recognition and Synthesis from Google pt-pt-x-sfs-local"], nativeID: ["pt-pt-x-sfs-network", "pt-pt-x-sfs-local"], language: "pt-PT", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz masculina 1 (Portugal)", name: "Google português de Portugal 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-pt-x-jmn-network", "Android Speech Recognition and Synthesis from Google pt-pt-x-jmn-local"], nativeID: ["pt-pt-x-jmn-network", "pt-pt-x-jmn-local"], language: "pt-PT", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz masculina 2 (Portugal)", name: "Google português de Portugal 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-pt-x-pmj-network", "Android Speech Recognition and Synthesis from Google pt-pt-x-pmj-local"], nativeID: ["pt-pt-x-pmj-network", "pt-pt-x-pmj-local"], language: "pt-PT", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz feminina 1 (Brasil)", name: "Google português do Brasil 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-br-x-afs-network", "Chrome OS português do Brasil", "Android Speech Recognition and Synthesis from Google pt-br-x-afs-local", "Android Speech Recognition and Synthesis from Google pt-BR-language"], nativeID: ["pt-br-x-afs-network", "pt-br-x-afs-local"], language: "pt-BR", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz feminina 2 (Brasil)", name: "Google português do Brasil 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-br-x-pte-network", "Android Speech Recognition and Synthesis from Google pt-br-x-pte-local"], nativeID: ["pt-br-x-pte-network", "pt-br-x-pte-local"], language: "pt-BR", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Voz masculina (Brasil)", name: "Google português do Brasil 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google pt-br-x-ptd-network", "Android Speech Recognition and Synthesis from Google pt-br-x-ptd-local"], nativeID: ["pt-br-x-ptd-network", "pt-br-x-ptd-local"], language: "pt-BR", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], l = {
2
+ language: "pt",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ l as default,
9
+ e as defaultRegion,
10
+ t as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const n = "ro", e = "ro-RO", a = "Buna ziua, ma numesc {name} si sunt o voce romaneasca.", o = [{ label: "Alina", name: "Microsoft Alina Online (Natural) - Romanian (Romania)", language: "ro-RO", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Emil", name: "Microsoft Emil Online (Natural) - Romanian (Romania)", language: "ro-RO", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Ioana", name: "Ioana", localizedName: "apple", language: "ro-RO", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Andrei", name: "Microsoft Andrei - Romanian (Romania)", language: "ro-RO", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Voce feminină", name: "Android Speech Recognition and Synthesis from Google ro-ro-x-vfv-network", altNames: ["Android Speech Recognition and Synthesis from Google ro-ro-x-vfv-local", "Android Speech Recognition and Synthesis from Google ro-RO-language"], nativeID: ["ro-ro-x-vfv-network", "ro-ro-x-vfv-local"], language: "ro-RO", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], r = {
2
+ language: "ro",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ r as default,
9
+ e as defaultRegion,
10
+ n as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const o = "ru", e = "ru-RU", a = "Здравствуйте, меня зовут {name} и я русский голос.", r = [{ label: "Svetlana", name: "Microsoft Svetlana Online (Natural) - Russian (Russia)", language: "ru-RU", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Ekaterina", name: "Microsoft Ekaterina Online - Russian (Russia)", language: "ru-RU", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Dmitry", name: "Microsoft Dmitry Online (Natural) - Russian (Russia)", language: "ru-RU", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Google женский голос", name: "Google русский", note: "This voice is pre-loaded in Chrome on desktop. Utterances that are longer than 14 seconds long can trigger a bug with this voice, check the notes in the project's README for more information.", language: "ru-RU", gender: "female", quality: ["high"], rate: 1, pitch: 1, controls: { boundary: !1 }, browser: ["ChromeDesktop"], preloaded: !0 }, { label: "Katya", name: "Katya", localizedName: "apple", language: "ru-RU", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Milena", name: "Milena", localizedName: "apple", language: "ru-RU", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Yuri", name: "Yuri", localizedName: "apple", language: "ru-RU", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Irina", name: "Microsoft Irina - Russian (Russian)", language: "ru-RU", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Pavel", name: "Microsoft Pavel - Russian (Russian)", language: "ru-RU", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Женский голос 1", name: "Android Speech Recognition and Synthesis from Google ru-ru-x-dfc-network", altNames: ["Android Speech Recognition and Synthesis from Google ru-ru-x-dfc-local"], nativeID: ["ru-ru-x-dfc-network", "ru-ru-x-dfc-local"], language: "ru-RU", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Женский голос 2", name: "Android Speech Recognition and Synthesis from Google ru-ru-x-ruc-network", altNames: ["Android Speech Recognition and Synthesis from Google ru-ru-x-ruc-local"], nativeID: ["ru-ru-x-ruc-network", "ru-ru-x-ruc-local"], language: "ru-RU", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Женский голос 3", name: "Android Speech Recognition and Synthesis from Google ru-ru-x-rue-network", altNames: ["Android Speech Recognition and Synthesis from Google ru-ru-x-rue-local"], nativeID: ["ru-ru-x-rue-network", "ru-ru-x-rue-local"], language: "ru-RU", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Мужской голос 1", name: "Android Speech Recognition and Synthesis from Google ru-ru-x-rud-network", altNames: ["Android Speech Recognition and Synthesis from Google ru-ru-x-rud-local"], nativeID: ["ru-ru-x-rud-network", "ru-ru-x-rud-local"], language: "ru-RU", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Мужской голос 2", name: "Android Speech Recognition and Synthesis from Google ru-ru-x-ruf-network", altNames: ["Android Speech Recognition and Synthesis from Google ru-ru-x-ruf-local"], nativeID: ["ru-ru-x-ruf-network", "ru-ru-x-ruf-local"], language: "ru-RU", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "ru",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: r
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ o as language,
11
+ a as testUtterance,
12
+ r as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const l = "sk", e = "sk-SK", a = "Dobrý deň, volám sa {name} a som slovenský hlas.", o = [{ label: "Viktoria", name: "Microsoft Viktoria Online (Natural) - Slovak (Slovakia)", language: "sk-SK", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Lukas", name: "Microsoft Lukas Online (Natural) - Slovak (Slovakia)", language: "sk-SK", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Laura", name: "Laura", localizedName: "apple", language: "sk-SK", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Filip", name: "Microsoft Filip - Slovak (Slovakia)", language: "sk-SK", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Ženský hlas", name: "Google Slovenčina (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sk-sk-x-sfk-network", "Android Speech Recognition and Synthesis from Google sk-sk-x-sfk-local", "Chrome OS Slovenčina", "Android Speech Recognition and Synthesis from Google sk-SK-language"], nativeID: ["sk-sk-x-sfk-network", "sk-sk-x-sfk-local"], language: "sk-SK", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "sk",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ l as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const o = "sl", e = "sl-SI", a = "Pozdravljeni, moje ime je {name} in sem slovenski glas.", l = [{ label: "Petra", name: "Microsoft Petra Online (Natural) - Slovenian (Slovenia)", language: "sl-SI", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Rok", name: "Microsoft Rok Online (Natural) - Slovenian (Slovenia)", language: "sl-SI", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Tina", name: "Tina", localizedName: "apple", language: "sl-SI", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Lado", name: "Microsoft Lado - Slovenian (Slovenia)", language: "sl-SI", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Ženski glas", name: "Android Speech Recognition and Synthesis from Google sl-si-x-frm-local", altNames: ["Android Speech Recognition and Synthesis from Google sl-SI-language"], nativeID: ["sl-si-x-frm-local"], language: "sl-SI", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "sl",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: l
6
+ };
7
+ export {
8
+ n as default,
9
+ e as defaultRegion,
10
+ o as language,
11
+ a as testUtterance,
12
+ l as voices
13
+ };
@@ -1,19 +1,19 @@
1
- import { ReadiumSpeechPlaybackEngine } from './engine';
2
- import { GndObject } from './gnd/types';
3
- import { ReadiumSpeechNavigatorContract, ReadiumSpeechPlaybackEvent, ReadiumSpeechPlaybackState } from './navigator';
4
- import { ISpeechDefaults } from './preferences/SpeechDefaults';
5
- import { ISpeechPreferences, SpeechPreferences } from './preferences/SpeechPreferences';
6
- import { SpeechPreferencesEditor } from './preferences/SpeechPreferencesEditor';
7
- import { SpeechSettings } from './preferences/SpeechSettings';
8
- import { ContextualizationShapeOverrides } from './preferences/verbosityTables';
9
- import { ReadiumSpeechUtterance } from './utterance';
10
- import { Contextualizations } from './utterances/types';
11
- import { SentenceSegmenter } from './utterances/sentenceSegmenter';
12
- import { ReadiumSpeechVoice } from './voices/types';
1
+ import { ReadiumSpeechPlaybackEngine } from './engine.js';
2
+ import { GuidedNavigationObject } from '@readium/shared';
3
+ import { ReadiumSpeechNavigatorContract, ReadiumSpeechPlaybackEvent, ReadiumSpeechPlaybackState } from './navigator.js';
4
+ import { ISpeechDefaults } from './preferences/SpeechDefaults.js';
5
+ import { ISpeechPreferences, SpeechPreferences } from './preferences/SpeechPreferences.js';
6
+ import { SpeechPreferencesEditor } from './preferences/SpeechPreferencesEditor.js';
7
+ import { SpeechSettings } from './preferences/SpeechSettings.js';
8
+ import { ContextualizationShapeOverrides } from './preferences/verbosityTables.js';
9
+ import { ReadiumSpeechUtterance } from './utterance.js';
10
+ import { Contextualizations } from './utterances/types.js';
11
+ import { SentenceSegmenter } from './utterances/sentenceSegmenter.js';
12
+ import { ReadiumSpeechVoice } from './voices/types.js';
13
13
  export interface ContextualizationOverrides {
14
14
  contextualizations?: Contextualizations;
15
15
  shapes?: ContextualizationShapeOverrides;
16
- params?: (role: string, node: GndObject) => Record<string, string> | undefined;
16
+ params?: (role: string, node: GuidedNavigationObject) => Record<string, string> | undefined;
17
17
  }
18
18
  export interface SegmentationOverrides {
19
19
  suppressions?: Record<string, string[]>;
@@ -54,7 +54,7 @@ export declare class ReadiumSpeechNavigator implements ReadiumSpeechNavigatorCon
54
54
  setSpeakInContentLanguage(enabled: boolean): void;
55
55
  getSpeakInContentLanguage(): boolean;
56
56
  loadContent(content: ReadiumSpeechUtterance | ReadiumSpeechUtterance[]): void;
57
- loadGndContent(nodes: GndObject[]): Promise<void>;
57
+ loadGndContent(nodes: GuidedNavigationObject[]): Promise<void>;
58
58
  private setContentQueue;
59
59
  private reextract;
60
60
  private resolveResumeIndex;
@@ -0,0 +1,13 @@
1
+ const n = "sv", e = "sv-SE", a = "Hej, jag heter {name} och jag är en svensk röst.", o = [{ label: "Sofie", name: "Microsoft Sofie Online (Natural) - Swedish (Sweden)", language: "sv-SE", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Mattias", name: "Microsoft Mattias Online (Natural) - Swedish (Sweden)", language: "sv-SE", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Klara", name: "Klara", localizedName: "apple", language: "sv-SE", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Alva", name: "Alva", localizedName: "apple", language: "sv-SE", gender: "female", quality: ["low", "normal", "high"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Oskar", name: "Oskar", note: "This voice can be installed on all Apple devices and offers two variants. Like all voices that can be installed on Apple devices, it suffers from inconsistent naming due to localization.", language: "sv-SE", gender: "male", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"] }, { label: "Bengt", name: "Microsoft Bengt - Swedish (Sweden)", language: "sv-SE", gender: "female", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "Kvinnlig röst 1", name: "Google Svenska 1 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sv-se-x-lfs-network", "Chrome OS Svenska", "Android Speech Recognition and Synthesis from Google sv-se-x-lfs-local", "Android Speech Recognition and Synthesis from Google sv-SE-language"], nativeID: ["sv-se-x-lfs-network", "sv-se-x-lfs-local"], language: "sv-SE", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Kvinnlig röst 2", name: "Google Svenska 2 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sv-se-x-afp-network", "Android Speech Recognition and Synthesis from Google sv-se-x-afp-local"], nativeID: ["sv-se-x-afp-network", "sv-se-x-afp-local"], language: "sv-SE", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Kvinnlig röst 3", name: "Google Svenska 3 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sv-se-x-cfg-network", "Android Speech Recognition and Synthesis from Google sv-se-x-cfg-local"], nativeID: ["sv-se-x-cfg-network", "sv-se-x-cfg-local"], language: "sv-SE", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mansröst 1", name: "Google Svenska 4 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sv-se-x-cmh-network", "Android Speech Recognition and Synthesis from Google sv-se-x-cmh-local"], nativeID: ["sv-se-x-cmh-network", "sv-se-x-cmh-local"], language: "sv-SE", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "Mansröst 2", name: "Google Svenska 5 (Natural)", altNames: ["Android Speech Recognition and Synthesis from Google sv-se-x-dmc-network", "Android Speech Recognition and Synthesis from Google sv-se-x-dmc-local"], nativeID: ["sv-se-x-dmc-network", "sv-se-x-dmc-local"], language: "sv-SE", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], l = {
2
+ language: "sv",
3
+ defaultRegion: e,
4
+ testUtterance: a,
5
+ voices: o
6
+ };
7
+ export {
8
+ l as default,
9
+ e as defaultRegion,
10
+ n as language,
11
+ a as testUtterance,
12
+ o as voices
13
+ };
@@ -0,0 +1,13 @@
1
+ const r = "ta", a = "ta-IN", e = "வணக்கம், என் பெயர் {name} மற்றும் நான் ஒரு தமிழ் குரல்", l = [{ label: "Pallavi", name: "Microsoft Pallavi Online (Natural) - Tamil (India)", language: "ta-IN", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Valluvar", name: "Microsoft Valluvar Online (Natural) - Tamil (India)", language: "ta-IN", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Saranya", name: "Microsoft Saranya Online (Natural) - Tamil (Sri Lanka)", language: "ta-LK", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Kumar", name: "Microsoft Kumar Online (Natural) - Tamil (Sri Lanka)", language: "ta-LK", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Kani", name: "Microsoft Kani Online (Natural) - Tamil (Malaysia)", language: "ta-MY", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Surya", name: "Microsoft Surya Online (Natural) - Tamil (Malaysia)", language: "ta-MY", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Venba", name: "Microsoft Venba Online (Natural) - Tamil (Singapore)", language: "ta-SG", gender: "female", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Anbu", name: "Microsoft Anbu Online (Natural) - Tamil (Singapore)", language: "ta-SG", gender: "male", quality: ["veryHigh"], rate: 1, browser: ["Edge"], preloaded: !0, controls: { pitch: !1, boundary: !1 } }, { label: "Vani", name: "Vani", localizedName: "apple", language: "ta-IN", gender: "female", quality: ["low", "normal"], rate: 1, pitch: 1, os: ["macOS", "iOS", "iPadOS"], preloaded: !0 }, { label: "Valluvar", name: "Microsoft Valluvar - Tamil (India)", language: "ta-IN", gender: "male", quality: ["normal"], rate: 1, pitch: 1, os: ["Windows"], preloaded: !0 }, { label: "பெண் குரல்", name: "Android Speech Recognition and Synthesis from Google ta-in-x-tac-network", altNames: ["Android Speech Recognition and Synthesis from Google ta-in-x-tac-local", "Android Speech Recognition and Synthesis from Google ta-IN-language"], nativeID: ["ta-in-x-tac-network", "ta-in-x-tac-local"], language: "ta-IN", gender: "female", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }, { label: "ஆண் குரல்", name: "Android Speech Recognition and Synthesis from Google ta-in-x-tad-network", altNames: ["Android Speech Recognition and Synthesis from Google ta-in-x-tad-local"], nativeID: ["ta-in-x-tad-network", "ta-in-x-tad-local"], language: "ta-IN", gender: "male", quality: ["high"], rate: 1, pitch: 1, os: ["Android", "ChromeOS"], preloaded: !0, controls: { boundary: !1 } }], n = {
2
+ language: "ta",
3
+ defaultRegion: a,
4
+ testUtterance: e,
5
+ voices: l
6
+ };
7
+ export {
8
+ n as default,
9
+ a as defaultRegion,
10
+ r as language,
11
+ e as testUtterance,
12
+ l as voices
13
+ };