@onjmin/koe 1.0.9 → 1.0.10
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.
|
@@ -44,6 +44,11 @@ export function analyze_prosody(text, speed, gv_weight) {
|
|
|
44
44
|
* テキストを NJD ノード列 (JSON 文字列) にする。各ノードは
|
|
45
45
|
* `{string, pos, pos_group1, pron, read, acc, mora_size, chain_flag}`。
|
|
46
46
|
* 半角英数などは naist-jdic 向けに全角へ正規化してから解析する。
|
|
47
|
+
*
|
|
48
|
+
* Open JTalk と同じ NJD 前処理 (読みの補完、数字列の読み、アクセント句の連結、
|
|
49
|
+
* アクセント型、無声化) を掛けてから返す。`extract_fullcontext` / `analyze_prosody`
|
|
50
|
+
* が見るモーラ列と一致させるためで、これが無いと「2024年」「koe」のような
|
|
51
|
+
* 数字・英字を含む文で HTS 韻律とモーラ数が食い違い、整列に失敗する。
|
|
47
52
|
* @param {string} text
|
|
48
53
|
* @returns {string}
|
|
49
54
|
*/
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "onjmin",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "@onjmin/koe",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.10",
|
|
6
6
|
"description": "UTAU concatenative synthesis engine optimized for browser / mobile via WebAssembly + AudioWorklet",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|