gojiteji commited on
Commit
148af80
·
0 Parent(s):

Audio Decision Model demo

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +62 -0
  2. Dockerfile +26 -0
  3. README.md +33 -0
  4. app.py +321 -0
  5. audio-player.js +133 -0
  6. audio-recorder.js +167 -0
  7. examples/ADULT_VOICE_PROVENANCE.json +89 -0
  8. examples/ATTRIBUTION.json +599 -0
  9. examples/IRODORI_PROVENANCE.json +62 -0
  10. examples/PHONE_PROVENANCE.json +42 -0
  11. examples/VOICE_DESIGN_PROVENANCE.json +404 -0
  12. examples/adult-backchannel-v3.wav +3 -0
  13. examples/adult-cancel-v3-telephone.wav +0 -0
  14. examples/adult-cancel-v3.wav +3 -0
  15. examples/adult-reservation-v3-telephone.wav +0 -0
  16. examples/adult-reservation-v3.wav +3 -0
  17. examples/animal-dog-birds-238688.wav +3 -0
  18. examples/catalog.json +169 -0
  19. examples/irodori-cancel.wav +3 -0
  20. examples/irodori-change.wav +3 -0
  21. examples/irodori-reservation.wav +3 -0
  22. examples/music-639.wav +3 -0
  23. examples/music-acoustic-loop-848704.wav +3 -0
  24. examples/natural-cancel-b.wav +3 -0
  25. examples/natural-change-a.wav +3 -0
  26. examples/natural-reservation-a-telephone.wav +3 -0
  27. examples/natural-reservation-a.wav +3 -0
  28. examples/reservation.wav +3 -0
  29. examples/turn-backchannel-full.wav +3 -0
  30. examples/turn-cancel-full.wav +3 -0
  31. examples/turn-confirm-full.wav +3 -0
  32. examples/turn-correction-full.wav +3 -0
  33. examples/turn-order-full.wav +3 -0
  34. examples/turn-order-hesitation-unfinished.wav +3 -0
  35. examples/turn-reservation-clause-unfinished-telephone.wav +0 -0
  36. examples/turn-reservation-clause-unfinished.wav +3 -0
  37. examples/turn-reservation-full-contrast.wav +3 -0
  38. favicon.svg +3 -0
  39. fonts/LINESeedJP_OTF_Bd.woff2 +3 -0
  40. fonts/LINESeedJP_OTF_Rg.woff2 +3 -0
  41. index.html +37 -0
  42. inference-worker.js +435 -0
  43. inference.js +34 -0
  44. licenses/LINE-Seed-OFL.txt +93 -0
  45. licenses/clap-Apache-2.0.txt +202 -0
  46. licenses/clap-NOTICE.txt +13 -0
  47. licenses/hubert-Apache-2.0.txt +202 -0
  48. licenses/irodori-MIT.txt +21 -0
  49. licenses/irodori-model-card.md +132 -0
  50. licenses/jszip.txt +651 -0
.gitattributes ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ examples/music-639.wav filter=lfs diff=lfs merge=lfs -text
37
+ examples/nature-9508.wav filter=lfs diff=lfs merge=lfs -text
38
+ examples/reservation.wav filter=lfs diff=lfs merge=lfs -text
39
+ examples/animal-863.wav filter=lfs diff=lfs merge=lfs -text
40
+ examples/irodori-reservation.wav filter=lfs diff=lfs merge=lfs -text
41
+ examples/irodori-change.wav filter=lfs diff=lfs merge=lfs -text
42
+ examples/irodori-cancel.wav filter=lfs diff=lfs merge=lfs -text
43
+ fonts/LINESeedJP_OTF_Bd.woff2 filter=lfs diff=lfs merge=lfs -text
44
+ fonts/LINESeedJP_OTF_Rg.woff2 filter=lfs diff=lfs merge=lfs -text
45
+ examples/natural-reservation-a.wav filter=lfs diff=lfs merge=lfs -text
46
+ examples/natural-change-a.wav filter=lfs diff=lfs merge=lfs -text
47
+ examples/natural-cancel-b.wav filter=lfs diff=lfs merge=lfs -text
48
+ examples/turn-order-full.wav filter=lfs diff=lfs merge=lfs -text
49
+ examples/turn-backchannel-full.wav filter=lfs diff=lfs merge=lfs -text
50
+ examples/turn-confirm-full.wav filter=lfs diff=lfs merge=lfs -text
51
+ examples/turn-correction-full.wav filter=lfs diff=lfs merge=lfs -text
52
+ examples/turn-cancel-full.wav filter=lfs diff=lfs merge=lfs -text
53
+ examples/turn-order-hesitation-unfinished.wav filter=lfs diff=lfs merge=lfs -text
54
+ examples/turn-reservation-clause-unfinished.wav filter=lfs diff=lfs merge=lfs -text
55
+ examples/turn-reservation-full-contrast.wav filter=lfs diff=lfs merge=lfs -text
56
+ examples/natural-reservation-a-telephone.wav filter=lfs diff=lfs merge=lfs -text
57
+ examples/adult-reservation-v3.wav filter=lfs diff=lfs merge=lfs -text
58
+ examples/adult-backchannel-v3.wav filter=lfs diff=lfs merge=lfs -text
59
+ examples/adult-cancel-v3.wav filter=lfs diff=lfs merge=lfs -text
60
+ examples/music-guitar-369676.wav filter=lfs diff=lfs merge=lfs -text
61
+ examples/animal-dog-birds-238688.wav filter=lfs diff=lfs merge=lfs -text
62
+ examples/music-acoustic-loop-848704.wav filter=lfs diff=lfs merge=lfs -text
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1 \
5
+ PORT=7860 \
6
+ HOME=/home/user \
7
+ HF_HOME=/home/user/.cache/huggingface
8
+
9
+ WORKDIR /app
10
+ COPY requirements.txt ./
11
+ # The CPU wheel index prevents a CUDA runtime from being included in this
12
+ # CPU-only Space. The qwen-asr 0.0.6 transformer backend is vendored under
13
+ # server_runtime, avoiding its unrelated ASR UI and alignment dependencies.
14
+ RUN pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu torch==2.9.1 && \
15
+ pip install --no-cache-dir -r requirements.txt
16
+ # Pin both remote bases at build time. Runtime loading names exact revisions,
17
+ # so a request cannot silently move to a different model version.
18
+ RUN python -c "from huggingface_hub import snapshot_download; snapshot_download('Qwen/Qwen3-ASR-0.6B', revision='5eb144179a02acc5e5ba31e748d22b0cf3e303b0'); snapshot_download('laion/clap-htsat-unfused', revision='8fa0f1c6d0433df6e97c127f64b2a1d6c0dcda8a')"
19
+ RUN useradd --create-home --uid 1000 user && \
20
+ mkdir -p /home/user/.cache/huggingface && \
21
+ chown -R user:user /home/user
22
+ COPY --chown=1000:1000 . .
23
+
24
+ USER user
25
+ EXPOSE 7860
26
+ CMD ["sh", "-c", "uvicorn server:app --host 0.0.0.0 --port ${PORT} --no-access-log"]
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: 音声版Jev「Audio Decision Model」
3
+ emoji: 🎧
4
+ colorFrom: indigo
5
+ colorTo: blue
6
+ sdk: docker
7
+ app_port: 7860
8
+ pinned: false
9
+ ---
10
+
11
+ # 音声版Jev「Audio Decision Model」
12
+
13
+ 音声と質問を入力すると、`Noul`(Yes / No)・`Choice`(選択)・`Score`(数値)の構造化JSONで答えます。予約の取り消しやキーワード、音楽や動物の鳴き声など、発話内容と周囲の音について質問できます。
14
+
15
+ 質問と選択肢は画面上で編集できます。CloudはQwen3-ASR-0.6B、ModernBERT-Ja、CLAPを組み合わせて処理します。Edge AIは量子化したONNXモデルをブラウザ上で実行し、入力データをクラウドへ送りません。
16
+
17
+ [モデル](https://huggingface.co/mocomoco-inc/mocomoco-AudioJev-AudioDecisionModel) · [mocomoco inc.](https://mocomoco.ai)
18
+
19
+ ## 使い方
20
+
21
+ 1. CloudまたはEdge AIを選びます。
22
+ 2. 30秒以内の音声を録音・アップロードするか、サンプルを選びます。
23
+ 3. 質問と選択肢を編集して「実行する」を押します。
24
+
25
+ ## 評価
26
+
27
+ 予約・注文などの用件と、依頼・確認など発話の役割を音声から同時に答える評価では、事前に固定した240件のうち**88.75%**で両方正解しました。発話と周囲の音を組み合わせる質問や、自由に作成した質問全体の正答率は引き続き評価中です。
28
+
29
+ ## ライセンス
30
+
31
+ Qwen3-ASRとCLAPはApache-2.0、ModernBERT-JaはMITです。モデルに含まれるファイルごとの条件は[モデルのLICENSE.md](https://huggingface.co/mocomoco-inc/mocomoco-AudioJev-AudioDecisionModel/blob/main/LICENSE.md)に記載しています。デモ内のサンプル音声の権利表示は`examples/ATTRIBUTION.json`にあります。
32
+
33
+ [Jev / TypeSafe AI](https://typesafe.ai/blog/introducing-system-one-models-and-jev)と[OpenJev / SemIf](https://github.com/TheoLeeCJ/SemIf)を参考にしています。
app.py ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Private Hugging Face Space UI for the Mocovoice Audio Jev research demo."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import importlib
6
+ import json
7
+ import os
8
+ from pathlib import Path
9
+ from typing import Any
10
+
11
+ import gradio as gr
12
+
13
+
14
+ SPACE_ROOT = Path(__file__).resolve().parent
15
+ CATALOG_PATH = SPACE_ROOT / "examples" / "catalog.json"
16
+
17
+ DEFAULT_QUESTIONS = {
18
+ "本人確認": {
19
+ "type": "noul",
20
+ "instructions": "話者が本人確認に必要な情報を明確に述べているか確認してください。",
21
+ "criteria": {
22
+ "false": "必要な情報が不足している、または聞き取れません。",
23
+ "true": "必要な情報を明確に述べています。",
24
+ },
25
+ },
26
+ "聞き取りやすさ": {
27
+ "type": "score",
28
+ "instructions": "発話の明瞭さを評価してください。",
29
+ "criteria": ["聞き取りにくい", "一部聞き取りにくい", "概ね明瞭", "明瞭"],
30
+ },
31
+ }
32
+
33
+ PRESETS: dict[str, tuple[str, dict[str, Any]]] = {
34
+ "本人確認": (
35
+ "本人確認の会話です。氏名、生年月日など必要な情報が音声に含まれているか確認します。",
36
+ DEFAULT_QUESTIONS,
37
+ ),
38
+ "応対品質": (
39
+ "顧客応対の通話です。応対内容と話し方を評価します。",
40
+ {
41
+ "要件の確認": {
42
+ "type": "noul",
43
+ "instructions": "依頼・質問の要点を確認できているか評価してください。",
44
+ "criteria": {"false": "要点を確認できていません。", "true": "要点を確認できています。"},
45
+ },
46
+ "応対評価": {
47
+ "type": "score",
48
+ "instructions": "丁寧で分かりやすい応対か評価してください。",
49
+ "criteria": ["改善が必要", "やや不十分", "適切", "非常に良い"],
50
+ },
51
+ },
52
+ ),
53
+ "選択肢の分類": (
54
+ "この音声を、定義した選択肢のいずれかに分類します。",
55
+ {
56
+ "お問い合わせ種別": {
57
+ "type": "choice",
58
+ "instructions": "主なお問い合わせ内容を一つ選んでください。",
59
+ "criteria": {
60
+ "契約": "契約内容、変更、解約に関する問い合わせ",
61
+ "請求": "料金、請求、支払いに関する問い合わせ",
62
+ "技術": "利用方法や不具合に関する問い合わせ",
63
+ },
64
+ }
65
+ },
66
+ ),
67
+ }
68
+
69
+
70
+ def _pretty(value: Any) -> str:
71
+ return json.dumps(value, ensure_ascii=False, indent=2)
72
+
73
+
74
+ def _user_error(message: str) -> None:
75
+ raise gr.Error(message)
76
+
77
+
78
+ def _parse_json(value: str, label: str, *, allow_empty: bool = False) -> Any:
79
+ if not value or not value.strip():
80
+ if allow_empty:
81
+ return None
82
+ _user_error(f"{label}を入力してください。")
83
+ try:
84
+ return json.loads(value)
85
+ except json.JSONDecodeError as exc:
86
+ _user_error(f"{label}は有効なJSONにしてください({exc.msg})。")
87
+
88
+
89
+ def _validate_questions(raw: Any) -> dict[str, dict[str, Any]]:
90
+ if not isinstance(raw, dict) or not raw:
91
+ _user_error("質問JSONは、質問名をキーにした1件以上のオブジェクトにしてください。")
92
+ validated: dict[str, dict[str, Any]] = {}
93
+ for name, question in raw.items():
94
+ if not isinstance(name, str) or not name.strip():
95
+ _user_error("質問名は空でない文字列にしてください。")
96
+ if not isinstance(question, dict):
97
+ _user_error(f"「{name}」はオブジェクトにしてください。")
98
+ kind = question.get("type")
99
+ instructions = question.get("instructions")
100
+ criteria = question.get("criteria")
101
+ if kind not in {"noul", "choice", "score"}:
102
+ _user_error(f"「{name}」のtypeは noul / choice / score のいずれかにしてください。")
103
+ if not isinstance(instructions, str) or not instructions.strip():
104
+ _user_error(f"「{name}」のinstructionsを入力してください。")
105
+ if kind == "noul":
106
+ if criteria is None:
107
+ criteria = {"false": "該当しません。", "true": "該当します。"}
108
+ if not isinstance(criteria, dict) or set(criteria) != {"false", "true"}:
109
+ _user_error(f"「{name}」のnoul criteriaは false と true を持つオブジェクトにしてください。")
110
+ elif kind == "choice":
111
+ if not isinstance(criteria, dict) or not 2 <= len(criteria) <= 32:
112
+ _user_error(f"「{name}」のchoice criteriaは2〜32件の選択肢オブジェクトにしてください。")
113
+ else:
114
+ if not isinstance(criteria, list) or not 2 <= len(criteria) <= 10:
115
+ _user_error(f"「{name}」のscore criteriaは2〜10件の順序���きリストにしてください。")
116
+ validated[name.strip()] = {"type": kind, "instructions": instructions.strip(), "criteria": criteria}
117
+ return validated
118
+
119
+
120
+ def _questions_from_text(questions_text: str) -> dict[str, dict[str, Any]]:
121
+ return _validate_questions(_parse_json(questions_text, "質問JSON"))
122
+
123
+
124
+ def _criteria_hint(kind: str) -> str:
125
+ if kind == "noul":
126
+ return _pretty({"false": "該当しません", "true": "該当します"})
127
+ if kind == "choice":
128
+ return _pretty({"選択肢A": "説明", "選択肢B": "説明"})
129
+ return _pretty(["低い", "高い"])
130
+
131
+
132
+ def _set_criteria_hint(kind: str) -> str:
133
+ return _criteria_hint(kind)
134
+
135
+
136
+ def _edit_question(
137
+ questions_text: str, name: str, kind: str, instructions: str, criteria_text: str, action: str
138
+ ) -> tuple[str, str, str, str]:
139
+ questions = _questions_from_text(questions_text)
140
+ clean_name = name.strip()
141
+ if not clean_name:
142
+ _user_error("質問名を入力してください。")
143
+ if action == "remove":
144
+ if clean_name not in questions:
145
+ _user_error(f"「{clean_name}」は質問JSONにありません。")
146
+ del questions[clean_name]
147
+ if not questions:
148
+ _user_error("最後の質問は削除できません。代わりに内容を更新してください。")
149
+ return _pretty(questions), "", "", _criteria_hint("noul")
150
+
151
+ criteria = _parse_json(criteria_text, "基準") if criteria_text.strip() else None
152
+ candidate = {clean_name: {"type": kind, "instructions": instructions, "criteria": criteria}}
153
+ normalized = _validate_questions(candidate)[clean_name]
154
+ questions[clean_name] = normalized
155
+ return _pretty(questions), "", "", _criteria_hint(kind)
156
+
157
+
158
+ def _load_preset(name: str) -> tuple[str, str]:
159
+ context, questions = PRESETS[name]
160
+ return context, _pretty(questions)
161
+
162
+
163
+ def _catalog_examples() -> list[list[Any]]:
164
+ if not CATALOG_PATH.is_file():
165
+ return []
166
+ try:
167
+ records = json.loads(CATALOG_PATH.read_text(encoding="utf-8"))
168
+ examples: list[list[Any]] = []
169
+ for record in records:
170
+ if not all(key in record for key in ("name", "audio", "context", "questions")):
171
+ continue
172
+ audio = SPACE_ROOT / str(record["audio"])
173
+ if audio.is_file():
174
+ examples.append([str(audio), str(record["context"]), _pretty(record["questions"])])
175
+ return examples
176
+ except (OSError, json.JSONDecodeError, TypeError):
177
+ return []
178
+
179
+
180
+ def _backend() -> Any:
181
+ try:
182
+ return importlib.import_module("demo_backend")
183
+ except Exception:
184
+ _user_error("デモの実行準備がまだ完了していません。少し待ってから再度お試しください。")
185
+
186
+
187
+ def _summary(result: Any) -> str:
188
+ if not isinstance(result, dict):
189
+ return "結果を受け取りました。下のJSONで詳細を確認してください。"
190
+ lines = ["### 読みやすい結果"]
191
+ transcript = result.get("transcript") or result.get("text")
192
+ if isinstance(transcript, str) and transcript.strip():
193
+ lines.append(f"**文字起こし** \\n{transcript.strip()}")
194
+ answers = result.get("answers") or result.get("results") or result.get("decisions")
195
+ if isinstance(answers, dict):
196
+ for name, answer in answers.items():
197
+ if isinstance(answer, dict):
198
+ value = answer.get("value", answer.get("answer", answer.get("label", answer)))
199
+ rationale = answer.get("reason") or answer.get("rationale")
200
+ lines.append(f"- **{name}**: {value}" + (f" — {rationale}" if rationale else ""))
201
+ else:
202
+ lines.append(f"- **{name}**: {answer}")
203
+ elif not transcript:
204
+ lines.append("下のJSONで結果を確認してください。")
205
+ return "\n".join(lines)
206
+
207
+
208
+ def _analyze(audio_path: str | None, context: str, questions_text: str) -> tuple[Any, str]:
209
+ if not audio_path:
210
+ _user_error("音声ファイルをアップロードするか、マイクで録音してください。")
211
+ questions = _questions_from_text(questions_text)
212
+ try:
213
+ result = _backend().analyze(str(audio_path), context or "", _pretty(questions))
214
+ except gr.Error:
215
+ raise
216
+ except Exception:
217
+ _user_error("解析に失敗しました。音声と質問の内容を確認して、もう一度お試しください。")
218
+ return result, _summary(result)
219
+
220
+
221
+ def _export_sample(
222
+ audio_path: str | None, context: str, questions_text: str, expected_text: str, result: Any
223
+ ) -> str:
224
+ if not audio_path:
225
+ _user_error("サンプルを保存するには音声を指定してください。")
226
+ questions = _questions_from_text(questions_text)
227
+ expected = _parse_json(expected_text, "期待する回答", allow_empty=True)
228
+ result_json = result if isinstance(result, dict) else None
229
+ try:
230
+ return _backend().export_sample(str(audio_path), context or "", _pretty(questions), _pretty(expected) if expected is not None else "", result_json)
231
+ except gr.Error:
232
+ raise
233
+ except Exception:
234
+ _user_error("サンプルZIPを作成できませんでした。入力内容を確認して再度お試しください。")
235
+
236
+
237
+ def _model_status() -> str:
238
+ try:
239
+ return str(_backend().model_status())
240
+ except gr.Error:
241
+ return "準備状況を確認できません。"
242
+ except Exception:
243
+ return "準備状況を確認できません。"
244
+
245
+
246
+ def build_app() -> gr.Blocks:
247
+ css = """
248
+ .gradio-container { max-width: 1120px !important; }
249
+ #hero { padding: 1.2rem 0 .4rem; }
250
+ #notice { border-left: 4px solid #e0a42b; padding: .7rem 1rem; background: #fff8e8; border-radius: 6px; }
251
+ """
252
+ with gr.Blocks(title="Mocovoice Audio Jev", css=css) as demo:
253
+ gr.Markdown("# Mocovoice Audio Jev", elem_id="hero")
254
+ gr.Markdown(
255
+ "音声と文脈から、定義した質問への回答を試す研究プロトタイプです。"
256
+ "新しい業務・質問への精度は検証されていません。結果は確認用であり、自動処理は行いません。",
257
+ elem_id="notice",
258
+ )
259
+ with gr.Row():
260
+ with gr.Column(scale=1):
261
+ audio = gr.Audio(label="音声", sources=["upload", "microphone"], type="filepath")
262
+ context = gr.Textbox(label="文脈・補足", lines=5, placeholder="例:この通話は契約変更についてのお問い合わせです。")
263
+ preset = gr.Dropdown(label="プリセット", choices=list(PRESETS), value="本人確認")
264
+ load_preset = gr.Button("プリセットを読み込む")
265
+ with gr.Column(scale=1):
266
+ questions = gr.Textbox(label="質問JSON", value=_pretty(DEFAULT_QUESTIONS), lines=18)
267
+ with gr.Accordion("質問をフォームで編集", open=False):
268
+ gr.Markdown("質問名が同じ場合は更新します。削除は質問名を指定して行います。")
269
+ question_name = gr.Textbox(label="質問名")
270
+ question_type = gr.Radio(["noul", "choice", "score"], value="noul", label="回答タイプ")
271
+ question_instructions = gr.Textbox(label="指示", lines=3)
272
+ question_criteria = gr.Textbox(label="基準JSON", value=_criteria_hint("noul"), lines=5)
273
+ with gr.Row():
274
+ add_update = gr.Button("追加・更新", variant="secondary")
275
+ remove = gr.Button("削除", variant="stop")
276
+
277
+ with gr.Row():
278
+ analyze = gr.Button("解析する", variant="primary", scale=1)
279
+ status_button = gr.Button("準備状況を確認", scale=0)
280
+ status = gr.Textbox(label="モデルの準備状況", interactive=False, value="解析時にモデルを読み込みます。")
281
+
282
+ with gr.Row():
283
+ with gr.Column():
284
+ summary = gr.Markdown("解析すると、ここに読みやすい結果を表示します。")
285
+ with gr.Column():
286
+ result = gr.JSON(label="結果JSON")
287
+
288
+ with gr.Accordion("評価サンプルを保存", open=False):
289
+ gr.Markdown("解析を待たずに、音声・文脈・質問をデータセット用ZIPとして保存できます。期待する回答は任意です。")
290
+ expected = gr.Textbox(label="期待する回答JSON(任意)", lines=7, placeholder='例:{"本人確認": true}')
291
+ export = gr.Button("サンプルZIPを作成")
292
+ download = gr.File(label="サンプルZIP")
293
+
294
+ examples = _catalog_examples()
295
+ if examples:
296
+ gr.Examples(examples=examples, inputs=[audio, context, questions], label="収録済みの例")
297
+
298
+ load_preset.click(_load_preset, inputs=preset, outputs=[context, questions])
299
+ question_type.change(_set_criteria_hint, inputs=question_type, outputs=question_criteria)
300
+ add_update.click(
301
+ lambda q, n, t, i, c: _edit_question(q, n, t, i, c, "upsert"),
302
+ inputs=[questions, question_name, question_type, question_instructions, question_criteria],
303
+ outputs=[questions, question_name, question_instructions, question_criteria],
304
+ )
305
+ remove.click(
306
+ lambda q, n, t, i, c: _edit_question(q, n, t, i, c, "remove"),
307
+ inputs=[questions, question_name, question_type, question_instructions, question_criteria],
308
+ outputs=[questions, question_name, question_instructions, question_criteria],
309
+ )
310
+ analyze.click(_analyze, inputs=[audio, context, questions], outputs=[result, summary])
311
+ status_button.click(_model_status, outputs=status)
312
+ export.click(_export_sample, inputs=[audio, context, questions, expected, result], outputs=download)
313
+ return demo.queue(default_concurrency_limit=1)
314
+
315
+
316
+ if __name__ == "__main__":
317
+ build_app().launch(
318
+ server_name="0.0.0.0",
319
+ server_port=int(os.environ.get("PORT", "7860")),
320
+ share=False,
321
+ )
audio-player.js ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const playIcon = `<svg aria-hidden="true" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5.3v13.4c0 .8.9 1.3 1.6.8l10.1-6.7a1 1 0 0 0 0-1.6L9.6 4.5A1 1 0 0 0 8 5.3Z"/></svg>`;
2
+ const pauseIcon = `<svg aria-hidden="true" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="5" width="4.5" height="14" rx="1"/><rect x="13.5" y="5" width="4.5" height="14" rx="1"/></svg>`;
3
+
4
+ function formatTime(value) {
5
+ const seconds = Number.isFinite(value) ? Math.max(0, Math.floor(value)) : 0;
6
+ return `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`;
7
+ }
8
+
9
+ function userError(error) {
10
+ if (error?.name === "NotAllowedError") return "再生がブラウザにより停止されました。再生ボタンをもう一度押してください。";
11
+ if (error?.name === "NotSupportedError") return "この音声形式はブラウザで再生できません。別の音声ファイルをお試しください。";
12
+ return "音声を再生できませんでした。音声ファイルを確認して、もう一度お試しください。";
13
+ }
14
+
15
+ /** Controls a native audio element and draws decoded mono 16 kHz samples locally. */
16
+ export function createAudioPlayer({ audio, container, canvas, playButton, seek, time, speed, onError } = {}) {
17
+ if (!audio || !container || !canvas || !playButton || !seek || !time || !speed) {
18
+ throw new Error("音声プレーヤーのUI要素が不足しています。");
19
+ }
20
+
21
+ const context = canvas.getContext("2d");
22
+ let samples = new Float32Array();
23
+ let animationFrame = 0;
24
+ let lastDrawAt = 0;
25
+ let disposed = false;
26
+ let resizeObserver = null;
27
+
28
+ canvas.setAttribute("role", "img");
29
+ canvas.setAttribute("aria-label", "音声の波形と再生位置");
30
+ seek.min = "0"; seek.step = "0.01"; seek.value = "0";
31
+ seek.setAttribute("aria-label", "再生位置");
32
+
33
+ function duration() { return Number.isFinite(audio.duration) ? audio.duration : 0; }
34
+ function setState(value) { container.dataset.playerState = value; }
35
+ function setButton(playing) {
36
+ playButton.setAttribute("aria-label", playing ? "一時停止" : "再生");
37
+ playButton.setAttribute("aria-pressed", String(playing));
38
+ playButton.innerHTML = playing ? pauseIcon : playIcon;
39
+ }
40
+ function updateText() { time.textContent = `${formatTime(audio.currentTime)} / ${formatTime(duration())}`; }
41
+ function updateSeek() { seek.max = String(duration()); seek.value = String(Math.min(duration(), audio.currentTime || 0)); updateText(); }
42
+
43
+ function canvasSize() {
44
+ const rect = canvas.getBoundingClientRect();
45
+ const dpr = window.devicePixelRatio || 1;
46
+ const width = Math.max(1, Math.round(rect.width * dpr));
47
+ const height = Math.max(1, Math.round(rect.height * dpr));
48
+ if (canvas.width !== width || canvas.height !== height) { canvas.width = width; canvas.height = height; }
49
+ return { width, height, dpr };
50
+ }
51
+
52
+ function draw() {
53
+ const { width, height, dpr } = canvasSize();
54
+ context.clearRect(0, 0, width, height);
55
+ const style = getComputedStyle(container);
56
+ const brand = style.getPropertyValue("--brand").trim() || "#7203ff";
57
+ const muted = style.getPropertyValue("--wave-muted").trim() || "#c6c8d0";
58
+ const binCount = Math.max(24, Math.min(140, Math.round((width / dpr) / 4)));
59
+ const progress = duration() ? Math.max(0, Math.min(1, audio.currentTime / duration())) : 0;
60
+ const gap = Math.max(1, Math.round(dpr));
61
+ const barWidth = Math.max(1, (width - gap * (binCount - 1)) / binCount);
62
+ const minHeight = Math.max(2 * dpr, height * 0.07);
63
+ for (let bin = 0; bin < binCount; bin += 1) {
64
+ const start = Math.floor(bin * samples.length / binCount);
65
+ const end = Math.max(start + 1, Math.floor((bin + 1) * samples.length / binCount));
66
+ let peak = 0;
67
+ for (let index = start; index < end; index += 1) peak = Math.max(peak, Math.abs(samples[index] || 0));
68
+ const barHeight = Math.max(minHeight, peak * (height * 0.9));
69
+ const x = bin * (barWidth + gap);
70
+ context.fillStyle = (bin + 0.5) / binCount <= progress ? brand : muted;
71
+ context.beginPath();
72
+ if (typeof context.roundRect === "function") context.roundRect(x, (height - barHeight) / 2, barWidth, barHeight, Math.min(barWidth / 2, 3 * dpr));
73
+ else context.rect(x, (height - barHeight) / 2, barWidth, barHeight);
74
+ context.fill();
75
+ }
76
+ }
77
+
78
+ function animate(now) {
79
+ if (audio.paused || disposed) { animationFrame = 0; return; }
80
+ animationFrame = requestAnimationFrame(animate);
81
+ if (now - lastDrawAt >= 50) { lastDrawAt = now; updateSeek(); draw(); }
82
+ }
83
+ function startAnimation() {
84
+ if (!animationFrame) { lastDrawAt = 0; animationFrame = requestAnimationFrame(animate); }
85
+ }
86
+ function stopAnimation() { cancelAnimationFrame(animationFrame); animationFrame = 0; }
87
+
88
+ async function togglePlay() {
89
+ if (!audio.paused) { audio.pause(); return; }
90
+ setState("waiting"); playButton.disabled = true;
91
+ try { await audio.play(); }
92
+ catch (error) { setState("error"); setButton(false); onError?.(new Error(userError(error))); }
93
+ finally { playButton.disabled = false; }
94
+ }
95
+
96
+ function onMetadata() {
97
+ container.hidden = false; updateSeek(); setButton(false); setState("ready"); draw();
98
+ }
99
+ function onSourceReset() {
100
+ stopAnimation(); seek.value = "0"; time.textContent = "0:00 / 0:00"; setButton(false); setState("loading"); draw();
101
+ }
102
+ function onPlay() { setState("playing"); setButton(true); startAnimation(); }
103
+ function onPause() { setState("paused"); setButton(false); stopAnimation(); updateSeek(); draw(); }
104
+ function onEnded() { setState("ended"); setButton(false); stopAnimation(); updateSeek(); draw(); }
105
+ function onWaiting() { setState("waiting"); }
106
+ function onErrorEvent() { setState("error"); setButton(false); stopAnimation(); onError?.(new Error(userError(audio.error))); }
107
+
108
+ const listeners = [
109
+ ["loadedmetadata", onMetadata], ["durationchange", updateSeek], ["loadstart", onSourceReset], ["emptied", onSourceReset],
110
+ ["timeupdate", () => { updateSeek(); if (audio.paused) draw(); }], ["play", onPlay], ["pause", onPause], ["ended", onEnded], ["waiting", onWaiting], ["error", onErrorEvent]
111
+ ];
112
+ listeners.forEach(([event, handler]) => audio.addEventListener(event, handler));
113
+
114
+ playButton.addEventListener("click", togglePlay);
115
+ seek.addEventListener("input", () => { const position = Number(seek.value); if (Number.isFinite(position)) { audio.currentTime = position; updateText(); draw(); } });
116
+ speed.addEventListener("change", () => { const rate = Number(speed.value); if (Number.isFinite(rate) && rate > 0) audio.playbackRate = rate; });
117
+ if (typeof ResizeObserver !== "undefined") { resizeObserver = new ResizeObserver(draw); resizeObserver.observe(canvas); }
118
+
119
+ function setSamples(value) {
120
+ if (!(value instanceof Float32Array)) throw new TypeError("波形データはFloat32Arrayで指定してください。");
121
+ samples = value.slice(); draw();
122
+ }
123
+ function dispose() {
124
+ disposed = true; stopAnimation(); resizeObserver?.disconnect(); resizeObserver = null;
125
+ listeners.forEach(([event, handler]) => audio.removeEventListener(event, handler));
126
+ playButton.removeEventListener("click", togglePlay);
127
+ audio.pause();
128
+ }
129
+
130
+ const initialRate = Number(speed.value); if (Number.isFinite(initialRate) && initialRate > 0) audio.playbackRate = initialRate;
131
+ setButton(false); updateText(); setState("idle"); draw();
132
+ return { setSamples, refreshTheme: draw, dispose };
133
+ }
audio-recorder.js ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const MAX_SECONDS = 30;
2
+
3
+ const microphoneIcon = `<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="8" y="3" width="8" height="12" rx="4"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8"/></svg>`;
4
+ const stopIcon = `<svg aria-hidden="true" viewBox="0 0 24 24" fill="currentColor"><rect x="7" y="7" width="10" height="10" rx="1"/></svg>`;
5
+
6
+ function formatTime(seconds) {
7
+ const whole = Math.min(MAX_SECONDS, Math.max(0, Math.floor(seconds)));
8
+ return `${String(Math.floor(whole / 60)).padStart(2, "0")}:${String(whole % 60).padStart(2, "0")}`;
9
+ }
10
+
11
+ function messageFor(error) {
12
+ if (error?.name === "NotAllowedError" || error?.name === "SecurityError") {
13
+ return "マイクの使用が許可されていません。ブラウザの設定でマイクを許可してから、もう一度お試しください。";
14
+ }
15
+ if (error?.name === "NotFoundError") return "利用できるマイクが見つかりません。マイクを接続してから、もう一度お試しください。";
16
+ if (error?.name === "NotReadableError") return "マイクを使用できません。他のアプリで使用中でないか確認してください。";
17
+ if (error?.name === "NotSupportedError") return "このブラウザでは録音を利用できません。最新版の対応ブラウザでお試しください。";
18
+ return "録音を開始できませんでした。ブラウザとマイクの状態を確認して、もう一度お試しください。";
19
+ }
20
+
21
+ /**
22
+ * Creates a local-only microphone recorder. `onAudio` receives a finished Blob.
23
+ */
24
+ export function createAudioRecorder({ button, canvas, timer, state, onAudio, onError } = {}) {
25
+ if (!button || !canvas || !timer || !state) throw new Error("録音UIの要素が不足しています。");
26
+
27
+ const recorderContainer = button.closest(".recorder");
28
+ const context2d = canvas.getContext("2d");
29
+ let phase = "idle";
30
+ let mediaRecorder = null;
31
+ let stream = null;
32
+ let audioContext = null;
33
+ let analyser = null;
34
+ let animationFrame = 0;
35
+ let lastDrawAt = 0;
36
+ let startedAt = 0;
37
+ let deadlineTimer = 0;
38
+ let ticker = 0;
39
+ let chunks = [];
40
+
41
+ canvas.setAttribute("role", "img");
42
+ canvas.setAttribute("aria-label", "録音中の音声波形");
43
+
44
+ function setState(text, kind = "") {
45
+ state.textContent = text;
46
+ state.dataset.state = kind;
47
+ }
48
+
49
+ function setButton(recording = false, disabled = false) {
50
+ button.disabled = disabled;
51
+ button.setAttribute("aria-pressed", String(recording));
52
+ button.innerHTML = recording ? `${stopIcon}<span>録音を終了</span>` : `${microphoneIcon}<span>録音をはじめる</span>`;
53
+ recorderContainer?.classList.toggle("is-recording", recording);
54
+ }
55
+
56
+ function drawIdle() {
57
+ const rect = canvas.getBoundingClientRect();
58
+ const dpr = window.devicePixelRatio || 1;
59
+ const width = Math.max(1, Math.round(rect.width * dpr));
60
+ const height = Math.max(1, Math.round(rect.height * dpr));
61
+ if (canvas.width !== width || canvas.height !== height) { canvas.width = width; canvas.height = height; }
62
+ context2d.clearRect(0, 0, width, height);
63
+ context2d.strokeStyle = "rgba(120, 134, 164, .38)";
64
+ context2d.lineWidth = Math.max(1, dpr);
65
+ context2d.beginPath(); context2d.moveTo(0, height / 2); context2d.lineTo(width, height / 2); context2d.stroke();
66
+ }
67
+
68
+ function drawWave(now) {
69
+ animationFrame = requestAnimationFrame(drawWave);
70
+ if (!analyser || now - lastDrawAt < 50) return;
71
+ lastDrawAt = now;
72
+ const rect = canvas.getBoundingClientRect();
73
+ const dpr = window.devicePixelRatio || 1;
74
+ const width = Math.max(1, Math.round(rect.width * dpr));
75
+ const height = Math.max(1, Math.round(rect.height * dpr));
76
+ if (canvas.width !== width || canvas.height !== height) { canvas.width = width; canvas.height = height; }
77
+ const samples = new Uint8Array(analyser.fftSize);
78
+ analyser.getByteTimeDomainData(samples);
79
+ context2d.clearRect(0, 0, width, height);
80
+ context2d.strokeStyle = "#e34a52";
81
+ context2d.lineWidth = Math.max(1.5, 2 * dpr);
82
+ context2d.lineJoin = "round";
83
+ context2d.beginPath();
84
+ for (let index = 0; index < samples.length; index += 1) {
85
+ const x = index / (samples.length - 1) * width;
86
+ const y = (samples[index] / 255) * height;
87
+ if (index === 0) context2d.moveTo(x, y); else context2d.lineTo(x, y);
88
+ }
89
+ context2d.stroke();
90
+ }
91
+
92
+ function updateTimer() {
93
+ timer.textContent = `${formatTime((performance.now() - startedAt) / 1000)} / 0:30`;
94
+ }
95
+
96
+ function stopVisuals() {
97
+ cancelAnimationFrame(animationFrame); animationFrame = 0;
98
+ clearInterval(ticker); ticker = 0;
99
+ clearTimeout(deadlineTimer); deadlineTimer = 0;
100
+ drawIdle();
101
+ }
102
+
103
+ async function closeAudio() {
104
+ if (audioContext && audioContext.state !== "closed") await audioContext.close().catch(() => {});
105
+ audioContext = null; analyser = null;
106
+ stream?.getTracks().forEach((track) => track.stop()); stream = null;
107
+ }
108
+
109
+ async function finishRecording() {
110
+ const blob = new Blob(chunks, { type: mediaRecorder?.mimeType || "audio/webm" });
111
+ mediaRecorder = null; chunks = [];
112
+ stopVisuals(); await closeAudio();
113
+ phase = "processing"; setButton(false, true); setState("録音を読み込んでいます…", "processing");
114
+ try {
115
+ await onAudio?.(blob);
116
+ phase = "idle"; setButton(); setState("録音を読み込みました。再生して内容を確認できます。", "recorded");
117
+ } catch (error) {
118
+ phase = "idle"; setButton(); setState("録音を読み込めませんでした。もう一度お試しください。", "error");
119
+ onError?.(error);
120
+ }
121
+ }
122
+
123
+ function stopRecording() {
124
+ if (phase !== "recording") return;
125
+ phase = "stopping"; setButton(false, true); setState("録音を終了しています…", "processing");
126
+ stopVisuals();
127
+ if (mediaRecorder?.state === "recording") mediaRecorder.stop();
128
+ }
129
+
130
+ async function startRecording() {
131
+ if (phase !== "idle") return;
132
+ if (!navigator.mediaDevices?.getUserMedia || !window.MediaRecorder) {
133
+ const error = new DOMException("MediaRecorder is unavailable", "NotSupportedError");
134
+ setState(messageFor(error), "error"); onError?.(error); return;
135
+ }
136
+ phase = "requesting"; setButton(false, true); setState("マイクの許可を待っています…", "pending");
137
+ try {
138
+ stream = await navigator.mediaDevices.getUserMedia({ audio: true });
139
+ audioContext = new AudioContext();
140
+ analyser = audioContext.createAnalyser(); analyser.fftSize = 1024;
141
+ const source = audioContext.createMediaStreamSource(stream); source.connect(analyser);
142
+ mediaRecorder = new MediaRecorder(stream);
143
+ chunks = [];
144
+ mediaRecorder.ondataavailable = (event) => { if (event.data.size) chunks.push(event.data); };
145
+ mediaRecorder.onstop = () => { finishRecording(); };
146
+ mediaRecorder.onerror = (event) => { const error = event.error || new Error("録音中に問題が発生しました。"); setState("録音中に問題が発生しました。もう一度お試しください。", "error"); onError?.(error); };
147
+ startedAt = performance.now(); phase = "recording";
148
+ mediaRecorder.start(); setButton(true); setState("", "recording"); updateTimer();
149
+ ticker = window.setInterval(updateTimer, 250);
150
+ deadlineTimer = window.setTimeout(stopRecording, MAX_SECONDS * 1000);
151
+ lastDrawAt = 0; animationFrame = requestAnimationFrame(drawWave);
152
+ } catch (error) {
153
+ await closeAudio(); stopVisuals(); phase = "idle"; setButton(); setState(messageFor(error), "error"); onError?.(error);
154
+ }
155
+ }
156
+
157
+ function toggle() { if (phase === "recording") stopRecording(); else if (phase === "idle") startRecording(); }
158
+ function dispose() {
159
+ button.removeEventListener("click", toggle);
160
+ if (mediaRecorder) { mediaRecorder.onstop = null; mediaRecorder.onerror = null; if (mediaRecorder.state === "recording") mediaRecorder.stop(); }
161
+ stopVisuals(); closeAudio(); phase = "disposed";
162
+ }
163
+
164
+ button.addEventListener("click", toggle);
165
+ setButton(); timer.textContent = "00:00 / 0:30"; setState("録音の準備ができました。", "idle"); drawIdle();
166
+ return { dispose, stop: stopRecording };
167
+ }
examples/ADULT_VOICE_PROVENANCE.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file": "adult-reservation-v3.wav",
4
+ "kind": "reservation",
5
+ "text": "もしもし、あしたの夜七時に、二人で予約できますか。",
6
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
7
+ "seed": 5712,
8
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
9
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
10
+ "reference_audio": null,
11
+ "synthetic_audio": true,
12
+ "training_excluded": true,
13
+ "watermark_enabled": true,
14
+ "sample_rate": 48000,
15
+ "seconds": 4.56,
16
+ "max_seconds": 8.0,
17
+ "num_steps": 40,
18
+ "cfg_scale_text": 3.0,
19
+ "cfg_scale_caption": 2.5,
20
+ "cfg_guidance_mode": "independent",
21
+ "generation_seconds": 0.5680867279879749,
22
+ "peak": 0.9645974040031433,
23
+ "rms": 0.15562847256660461,
24
+ "sha256": "e494ae99d12c8fd23ba4741a5a8507942f0e54877b1c43493d5924e0a03c7585",
25
+ "license": "MIT",
26
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
27
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
28
+ "source_file": "reservation-5712.wav",
29
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
30
+ },
31
+ {
32
+ "file": "adult-backchannel-v3.wav",
33
+ "kind": "backchannel",
34
+ "text": "ああ、そうなんですね。",
35
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
36
+ "seed": 5701,
37
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
38
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
39
+ "reference_audio": null,
40
+ "synthetic_audio": true,
41
+ "training_excluded": true,
42
+ "watermark_enabled": true,
43
+ "sample_rate": 48000,
44
+ "seconds": 3.48,
45
+ "max_seconds": 3.5,
46
+ "num_steps": 40,
47
+ "cfg_scale_text": 3.0,
48
+ "cfg_scale_caption": 2.5,
49
+ "cfg_guidance_mode": "independent",
50
+ "generation_seconds": 0.9337333729490638,
51
+ "peak": 0.8861069679260254,
52
+ "rms": 0.12877875566482544,
53
+ "sha256": "424c3152da9a8b1444363ff71574cfe26c855b5fe65e22ab6a553530132bdbe5",
54
+ "license": "MIT",
55
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
56
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
57
+ "source_file": "backchannel-5701.wav",
58
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
59
+ },
60
+ {
61
+ "file": "adult-cancel-v3.wav",
62
+ "kind": "cancel",
63
+ "text": "すみません、あしたの予約をキャンセルしたいんですけど。",
64
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
65
+ "seed": 5721,
66
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
67
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
68
+ "reference_audio": null,
69
+ "synthetic_audio": true,
70
+ "training_excluded": true,
71
+ "watermark_enabled": true,
72
+ "sample_rate": 48000,
73
+ "seconds": 3.92,
74
+ "max_seconds": 8.0,
75
+ "num_steps": 40,
76
+ "cfg_scale_text": 3.0,
77
+ "cfg_scale_caption": 2.5,
78
+ "cfg_guidance_mode": "independent",
79
+ "generation_seconds": 0.511951609980315,
80
+ "peak": 0.9111555218696594,
81
+ "rms": 0.14880435168743134,
82
+ "sha256": "27a758e3f6db7c2553db937a638f1ddf60e9ad79d3c5f49a8d8097480005dd99",
83
+ "license": "MIT",
84
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
85
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
86
+ "source_file": "cancel-5721.wav",
87
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
88
+ }
89
+ ]
examples/ATTRIBUTION.json ADDED
@@ -0,0 +1,599 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file": "reservation.wav",
4
+ "description": "Original authored Japanese text synthesized using Mei voice",
5
+ "voice": "mei_normal.htsvoice",
6
+ "creator": "Nagoya Institute of Technology / MMDAgent project",
7
+ "license": "CC-BY-3.0",
8
+ "source": "https://www.mmdagent.jp/",
9
+ "changes": "Synthesized speech, mono 16kHz WAV"
10
+ },
11
+ {
12
+ "file": "music-639.wav",
13
+ "license": "CC0-1.0",
14
+ "creator": "memexikon",
15
+ "license_url": "http://creativecommons.org/publicdomain/zero/1.0/",
16
+ "source_url": "https://freesound.org/people/memexikon/sounds/639/",
17
+ "title": "lockjawnetf.wav",
18
+ "changes": "None; original source WAV"
19
+ },
20
+ {
21
+ "file": "animal-dog-birds-238688.wav",
22
+ "creator": "SoundEnsemble",
23
+ "title": "SE ANIMALS dog barking birds.wav",
24
+ "source_url": "https://freesound.org/people/SoundEnsemble/sounds/238688/",
25
+ "preview_url": "https://cdn.freesound.org/previews/238/238688_3662372-hq.mp3",
26
+ "license": "CC0-1.0",
27
+ "license_url": "https://creativecommons.org/publicdomain/zero/1.0/",
28
+ "license_verified": "2026-09-20",
29
+ "changes": "Freesound high-quality preview decoded, downmixed to mono, and resampled to 16 kHz PCM WAV; full 22.248688-second recording retained.",
30
+ "source_sha256": "c2e6ea3ebff38bb72c57831da11e22fb606b845e9bd6085155e43dc64be788f9",
31
+ "sha256": "cb229bbe56c08902fb2e1e1d7bad639b49908148e384bdf3a1aa8d9687b19c24",
32
+ "source_id_audit": "freesound:238688 was absent from local FSD50K and typed-audio manifests at selection time.",
33
+ "selection_note": "Selected from its dog-and-birds description and CC0 license before inference; no model output was used to choose it. Exclude this demo from future independent evaluation."
34
+ },
35
+ {
36
+ "file": "irodori-reservation.wav",
37
+ "text": "明日の夜七時に、二人で予約をお願いできますか。",
38
+ "expected_intent": "reservation",
39
+ "synthetic_audio": true,
40
+ "model": "Aratako/Irodori-TTS-500M-v3",
41
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
42
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
43
+ "seed": 913,
44
+ "num_steps": 40,
45
+ "reference_audio": null,
46
+ "watermark_enabled": true,
47
+ "sample_rate": 48000,
48
+ "seconds": 4.0,
49
+ "generation_seconds": 0.9263423918746412,
50
+ "license": "MIT",
51
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
52
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
53
+ "sha256": "8f8ee91977655e119b26d3d7d35e9b414e62f1ef9c6b2c46097f010442f61fd9"
54
+ },
55
+ {
56
+ "file": "irodori-change.wav",
57
+ "text": "すみません、予約を土曜日の午後三時に変更したいのですが。",
58
+ "expected_intent": "change",
59
+ "synthetic_audio": true,
60
+ "model": "Aratako/Irodori-TTS-500M-v3",
61
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
62
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
63
+ "seed": 271,
64
+ "num_steps": 40,
65
+ "reference_audio": null,
66
+ "watermark_enabled": true,
67
+ "sample_rate": 48000,
68
+ "seconds": 4.72,
69
+ "generation_seconds": 0.4987814510241151,
70
+ "license": "MIT",
71
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
72
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
73
+ "sha256": "5c3fe27ad38a581e1f545c6cc8b18f8dd7a75b24e7c2737952e3b0e88ae589c2"
74
+ },
75
+ {
76
+ "file": "irodori-cancel.wav",
77
+ "text": "急な予定が入ってしまったので、明日の予約をキャンセルしてください。",
78
+ "expected_intent": "cancel",
79
+ "synthetic_audio": true,
80
+ "model": "Aratako/Irodori-TTS-500M-v3",
81
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
82
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
83
+ "seed": 614,
84
+ "num_steps": 40,
85
+ "reference_audio": null,
86
+ "watermark_enabled": true,
87
+ "sample_rate": 48000,
88
+ "seconds": 4.88,
89
+ "generation_seconds": 0.49401673721149564,
90
+ "license": "MIT",
91
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
92
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
93
+ "sha256": "25945f9ea6923cb47a1b008e0dbe935e4ee30bb3a30a1a030c12817b6a693b01"
94
+ },
95
+ {
96
+ "file": "natural-reservation-a.wav",
97
+ "intent": "reservation",
98
+ "variant": "a",
99
+ "text": "こんばんは。あしたの夜、しちじごろに二人でお願いしたいんですけど、まだ空いてますか?",
100
+ "caption": "落ち着いた大人の話者。予約の電話で、相手に配慮しながら、自然な会話の速さでやわらかく話す。文の切れ目では短く息をつぎ、丁寧だが読み上げ調にならない。",
101
+ "synthetic_audio": true,
102
+ "reference_audio": null,
103
+ "reference_embedding": null,
104
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
105
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
106
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
107
+ "model_card_license": "MIT",
108
+ "model_card_license_verified": "2026-09-20",
109
+ "source_code_revision": "unversioned-worktree",
110
+ "seed": 1081,
111
+ "num_steps": 40,
112
+ "cfg_scale_text": 3.0,
113
+ "cfg_scale_caption": 2.5,
114
+ "cfg_guidance_mode": "independent",
115
+ "watermark_enabled": true,
116
+ "sample_rate": 48000,
117
+ "seconds": 8.44,
118
+ "peak_abs": 0.9765087366104126,
119
+ "rms": 0.1376929726771456,
120
+ "generation_seconds": 1.1542682349681854,
121
+ "sha256": "bf9ce6d83ae7fe8961f97f4cd95a7d6be1ca29d2c373cc77c96b7a41d7d719d2",
122
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
123
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
124
+ },
125
+ {
126
+ "file": "natural-change-a.wav",
127
+ "intent": "change",
128
+ "variant": "a",
129
+ "text": "すみません、予約のことなんですけど。土曜日の午後、さんじに変更できますか?",
130
+ "caption": "穏やかで親しみのある大人の話者。予約内容の変更を電話で相談している。急がず自然な間を取り、控えめにお願いする会話らしい口調。",
131
+ "synthetic_audio": true,
132
+ "reference_audio": null,
133
+ "reference_embedding": null,
134
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
135
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
136
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
137
+ "model_card_license": "MIT",
138
+ "model_card_license_verified": "2026-09-20",
139
+ "source_code_revision": "unversioned-worktree",
140
+ "seed": 2081,
141
+ "num_steps": 40,
142
+ "cfg_scale_text": 3.0,
143
+ "cfg_scale_caption": 2.5,
144
+ "cfg_guidance_mode": "independent",
145
+ "watermark_enabled": true,
146
+ "sample_rate": 48000,
147
+ "seconds": 6.64,
148
+ "peak_abs": 0.7287325859069824,
149
+ "rms": 0.1640570232803877,
150
+ "generation_seconds": 0.627793378662318,
151
+ "sha256": "a1a9828f1beada7c90182df61d30872a5edc056bef833219fd53fc48ee243a2d",
152
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
153
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
154
+ },
155
+ {
156
+ "file": "natural-cancel-b.wav",
157
+ "intent": "cancel",
158
+ "variant": "b",
159
+ "text": "すみません、急に予定が入ってしまって…。あしたの予約、キャンセルをお願いできますか?",
160
+ "caption": "落ち着いた大人の話者。予定変更を申し訳なく思いながら、予約のキャンセルを電話で伝える。小さなためらいと自然な息継ぎがあり、丁寧でやわらかい口調。",
161
+ "synthetic_audio": true,
162
+ "reference_audio": null,
163
+ "reference_embedding": null,
164
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
165
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
166
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
167
+ "model_card_license": "MIT",
168
+ "model_card_license_verified": "2026-09-20",
169
+ "source_code_revision": "unversioned-worktree",
170
+ "seed": 3082,
171
+ "num_steps": 40,
172
+ "cfg_scale_text": 3.0,
173
+ "cfg_scale_caption": 2.5,
174
+ "cfg_guidance_mode": "independent",
175
+ "watermark_enabled": true,
176
+ "sample_rate": 48000,
177
+ "seconds": 8.96,
178
+ "peak_abs": 0.8194587230682373,
179
+ "rms": 0.1417061149254557,
180
+ "generation_seconds": 0.7651458447799087,
181
+ "sha256": "52f0ed8dfd7ef2cbdd0ce67533f4f1acf2fe7ced93c9e34aa5d49957609f35dc",
182
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
183
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
184
+ },
185
+ {
186
+ "id": "order-full",
187
+ "name": "注文を最後まで伝える",
188
+ "speech_act": "request",
189
+ "intent": "order",
190
+ "turn_complete": true,
191
+ "context": "店員: ご注文が決まりましたら、お声がけください。",
192
+ "text": "きのこのパスタを一つ、持ち帰りでお願いします。",
193
+ "caption": "落ち着いた大人の話者。店員に注文を伝える短い会話。自然な速さで、最後まで言い切る。",
194
+ "seed": 4101,
195
+ "file": "turn-order-full.wav",
196
+ "expected": {
197
+ "speech_act": "request",
198
+ "intent": "order",
199
+ "turn_complete": true
200
+ },
201
+ "synthetic_audio": true,
202
+ "reference_audio": null,
203
+ "reference_embedding": null,
204
+ "training_excluded": true,
205
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
206
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
207
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
208
+ "model_card_license": "MIT",
209
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
210
+ "num_steps": 40,
211
+ "cfg_scale_text": 3.0,
212
+ "cfg_scale_caption": 2.5,
213
+ "cfg_guidance_mode": "independent",
214
+ "watermark_enabled": true,
215
+ "sample_rate": 48000,
216
+ "seconds": 4.08,
217
+ "peak_abs": 0.7851645946502686,
218
+ "rms": 0.17343387180324984,
219
+ "generation_seconds": 0.9514303421601653,
220
+ "sha256": "1cd199edb025dc5e93bb8ef22dc8cb98297ea879ee30e578bef43cd2c0260618",
221
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
222
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
223
+ },
224
+ {
225
+ "id": "backchannel-full",
226
+ "name": "相手の説明への相づち",
227
+ "speech_act": "backchannel",
228
+ "intent": "none",
229
+ "turn_complete": true,
230
+ "context": "案内係: 入口を出たら右へ進むと、受付が見えてきます。",
231
+ "text": "うん、分かりました。",
232
+ "caption": "親しみのある大人の話者。相手の説明を聞きながら短く相づちを打つ。急がず、自然に言い切る。",
233
+ "seed": 4102,
234
+ "file": "turn-backchannel-full.wav",
235
+ "expected": {
236
+ "speech_act": "backchannel",
237
+ "intent": "none",
238
+ "turn_complete": true
239
+ },
240
+ "synthetic_audio": true,
241
+ "reference_audio": null,
242
+ "reference_embedding": null,
243
+ "training_excluded": true,
244
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
245
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
246
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
247
+ "model_card_license": "MIT",
248
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
249
+ "num_steps": 40,
250
+ "cfg_scale_text": 3.0,
251
+ "cfg_scale_caption": 2.5,
252
+ "cfg_guidance_mode": "independent",
253
+ "watermark_enabled": true,
254
+ "sample_rate": 48000,
255
+ "seconds": 4.24,
256
+ "peak_abs": 0.7609981894493103,
257
+ "rms": 0.15303109302071377,
258
+ "generation_seconds": 0.544307358097285,
259
+ "sha256": "ab9c4c35fa15521b227540689743c15db1fae9a4701cd1c22069fe0789ac844d",
260
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
261
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
262
+ },
263
+ {
264
+ "id": "confirm-full",
265
+ "name": "内容を確認して承認する",
266
+ "speech_act": "confirm",
267
+ "intent": "reservation",
268
+ "turn_complete": true,
269
+ "context": "店員: 来週の火曜日、午後六時に二名様でお席をお取りしてよろしいですか。",
270
+ "text": "はい、その内容でお願いします。",
271
+ "caption": "穏やかな大人の話者。店員の確認に簡潔に同意する。会話らしい自然な間で、やわらかく言い切る。",
272
+ "seed": 4103,
273
+ "file": "turn-confirm-full.wav",
274
+ "expected": {
275
+ "speech_act": "confirm",
276
+ "intent": "reservation",
277
+ "turn_complete": true
278
+ },
279
+ "synthetic_audio": true,
280
+ "reference_audio": null,
281
+ "reference_embedding": null,
282
+ "training_excluded": true,
283
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
284
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
285
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
286
+ "model_card_license": "MIT",
287
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
288
+ "num_steps": 40,
289
+ "cfg_scale_text": 3.0,
290
+ "cfg_scale_caption": 2.5,
291
+ "cfg_guidance_mode": "independent",
292
+ "watermark_enabled": true,
293
+ "sample_rate": 48000,
294
+ "seconds": 3.16,
295
+ "peak_abs": 0.6248125433921814,
296
+ "rms": 0.15614677213260153,
297
+ "generation_seconds": 0.49432186922058463,
298
+ "sha256": "5c9569279a31be36d519b3e9e924e187d29e3eba967ed70850915108e4590e51",
299
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
300
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
301
+ },
302
+ {
303
+ "id": "correction-full",
304
+ "name": "日付を訂正して変更する",
305
+ "speech_act": "correct",
306
+ "intent": "change",
307
+ "turn_complete": true,
308
+ "context": "店員: ご予約は金曜日の午後三時で承っています。",
309
+ "text": "あ、すみません。金曜日ではなく、土曜日の午後に変更をお願いします。",
310
+ "caption": "丁寧な大人の話者。予約内容を思い出して訂正する。最初に短いためらいを置き、最後ははっきり言い切る。",
311
+ "seed": 4104,
312
+ "file": "turn-correction-full.wav",
313
+ "expected": {
314
+ "speech_act": "correct",
315
+ "intent": "change",
316
+ "turn_complete": true
317
+ },
318
+ "synthetic_audio": true,
319
+ "reference_audio": null,
320
+ "reference_embedding": null,
321
+ "training_excluded": true,
322
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
323
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
324
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
325
+ "model_card_license": "MIT",
326
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
327
+ "num_steps": 40,
328
+ "cfg_scale_text": 3.0,
329
+ "cfg_scale_caption": 2.5,
330
+ "cfg_guidance_mode": "independent",
331
+ "watermark_enabled": true,
332
+ "sample_rate": 48000,
333
+ "seconds": 6.4,
334
+ "peak_abs": 0.7035095691680908,
335
+ "rms": 0.1609569216640416,
336
+ "generation_seconds": 0.6292441417463124,
337
+ "sha256": "b73eb1847645cd473f71a8d8296639f6bc38ec17dc628ec843a680d005d44a1c",
338
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
339
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
340
+ },
341
+ {
342
+ "id": "cancel-full",
343
+ "name": "注文を取り消す",
344
+ "speech_act": "cancel",
345
+ "intent": "cancel",
346
+ "turn_complete": true,
347
+ "context": "店員: 先ほどのスープとコーヒーのご注文を確認します。",
348
+ "text": "すみません、スープのほうは取り消してください。",
349
+ "caption": "落ち着いた大人の話者。注文の一部を丁寧に取り消す。自然な会話の速さで、申し訳なさを少し含めて言い切る。",
350
+ "seed": 4105,
351
+ "file": "turn-cancel-full.wav",
352
+ "expected": {
353
+ "speech_act": "cancel",
354
+ "intent": "cancel",
355
+ "turn_complete": true
356
+ },
357
+ "synthetic_audio": true,
358
+ "reference_audio": null,
359
+ "reference_embedding": null,
360
+ "training_excluded": true,
361
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
362
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
363
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
364
+ "model_card_license": "MIT",
365
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
366
+ "num_steps": 40,
367
+ "cfg_scale_text": 3.0,
368
+ "cfg_scale_caption": 2.5,
369
+ "cfg_guidance_mode": "independent",
370
+ "watermark_enabled": true,
371
+ "sample_rate": 48000,
372
+ "seconds": 3.44,
373
+ "peak_abs": 0.781799852848053,
374
+ "rms": 0.16470869580552724,
375
+ "generation_seconds": 0.5071098008193076,
376
+ "sha256": "24ca56ecc4191620c37834cf5d2f28c51ed7192ee5b6235585fb2dcc0ed38045",
377
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
378
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
379
+ },
380
+ {
381
+ "id": "order-hesitation-unfinished",
382
+ "name": "迷って途中で止まる注文",
383
+ "speech_act": "request",
384
+ "intent": "order",
385
+ "turn_complete": false,
386
+ "context": "店員: ご注文が決まりましたら、お声がけください。",
387
+ "text": "きのこのパスタを一つ、ええと、持ち帰りにするか…",
388
+ "caption": "迷っている大人の話者。注文を考えながら言いよどみ、答えを決めずに途中で止める。読み上げ調にしない。",
389
+ "seed": 4106,
390
+ "file": "turn-order-hesitation-unfinished.wav",
391
+ "expected": {
392
+ "speech_act": "request",
393
+ "intent": "order",
394
+ "turn_complete": false
395
+ },
396
+ "synthetic_audio": true,
397
+ "reference_audio": null,
398
+ "reference_embedding": null,
399
+ "training_excluded": true,
400
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
401
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
402
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
403
+ "model_card_license": "MIT",
404
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
405
+ "num_steps": 40,
406
+ "cfg_scale_text": 3.0,
407
+ "cfg_scale_caption": 2.5,
408
+ "cfg_guidance_mode": "independent",
409
+ "watermark_enabled": true,
410
+ "sample_rate": 48000,
411
+ "seconds": 5.08,
412
+ "peak_abs": 0.9923233389854431,
413
+ "rms": 0.161138963203946,
414
+ "generation_seconds": 0.5771061358973384,
415
+ "sha256": "70c4bc0af49280d772c09ea9977f5a1d072f58c71705be9dc36bd1704010ea1e",
416
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
417
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
418
+ },
419
+ {
420
+ "id": "reservation-clause-unfinished",
421
+ "name": "意味のある途中節で止まる予約",
422
+ "speech_act": "request",
423
+ "intent": "reservation",
424
+ "turn_complete": false,
425
+ "context": "店員: ご希望の日時と人数をお知らせください。",
426
+ "text": "あしたの夕方に二人で、もし窓際が…",
427
+ "caption": "控えめな大人の話者。予約の条件を伝え始めるが、文を完結させずに意味のある途中で止まる。自然な短い間を含める。",
428
+ "seed": 4107,
429
+ "file": "turn-reservation-clause-unfinished.wav",
430
+ "expected": {
431
+ "speech_act": "request",
432
+ "intent": "reservation",
433
+ "turn_complete": false
434
+ },
435
+ "synthetic_audio": true,
436
+ "reference_audio": null,
437
+ "reference_embedding": null,
438
+ "training_excluded": true,
439
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
440
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
441
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
442
+ "model_card_license": "MIT",
443
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
444
+ "num_steps": 40,
445
+ "cfg_scale_text": 3.0,
446
+ "cfg_scale_caption": 2.5,
447
+ "cfg_guidance_mode": "independent",
448
+ "watermark_enabled": true,
449
+ "sample_rate": 48000,
450
+ "seconds": 5.28,
451
+ "peak_abs": 1.0007697343826294,
452
+ "rms": 0.13793335127204556,
453
+ "generation_seconds": 0.5772101040929556,
454
+ "sha256": "14de328d4e6a4271e671967333fc0c5392d637d0a9876c7b6d0d72a1eb4fa926",
455
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
456
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
457
+ },
458
+ {
459
+ "id": "reservation-full-contrast",
460
+ "name": "同じ予約条件を最後まで伝える",
461
+ "speech_act": "request",
462
+ "intent": "reservation",
463
+ "turn_complete": true,
464
+ "context": "店員: ご希望の日時と人数をお知らせください。",
465
+ "text": "あしたの夕方に二人で、窓際の席を予約したいです。",
466
+ "caption": "控えめな大人の話者。予約の条件を伝え、最後まで自然に言い切る。文の区切りに短い息継ぎを入れる。",
467
+ "seed": 4108,
468
+ "file": "turn-reservation-full-contrast.wav",
469
+ "expected": {
470
+ "speech_act": "request",
471
+ "intent": "reservation",
472
+ "turn_complete": true
473
+ },
474
+ "synthetic_audio": true,
475
+ "reference_audio": null,
476
+ "reference_embedding": null,
477
+ "training_excluded": true,
478
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
479
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
480
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
481
+ "model_card_license": "MIT",
482
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
483
+ "num_steps": 40,
484
+ "cfg_scale_text": 3.0,
485
+ "cfg_scale_caption": 2.5,
486
+ "cfg_guidance_mode": "independent",
487
+ "watermark_enabled": true,
488
+ "sample_rate": 48000,
489
+ "seconds": 5.68,
490
+ "peak_abs": 0.8254440426826477,
491
+ "rms": 0.15123665222928692,
492
+ "generation_seconds": 0.5876368628814816,
493
+ "sha256": "36a84d9c7061577b438529f4e0882d456f7f3ce773cc9f55248be5fcac1a43a3",
494
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
495
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
496
+ },
497
+ {
498
+ "file": "adult-reservation-v3.wav",
499
+ "kind": "reservation",
500
+ "text": "もしもし、あしたの夜七時に、二人で予約できますか。",
501
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
502
+ "seed": 5712,
503
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
504
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
505
+ "reference_audio": null,
506
+ "synthetic_audio": true,
507
+ "training_excluded": true,
508
+ "watermark_enabled": true,
509
+ "sample_rate": 48000,
510
+ "seconds": 4.56,
511
+ "max_seconds": 8.0,
512
+ "num_steps": 40,
513
+ "cfg_scale_text": 3.0,
514
+ "cfg_scale_caption": 2.5,
515
+ "cfg_guidance_mode": "independent",
516
+ "generation_seconds": 0.5680867279879749,
517
+ "peak": 0.9645974040031433,
518
+ "rms": 0.15562847256660461,
519
+ "sha256": "e494ae99d12c8fd23ba4741a5a8507942f0e54877b1c43493d5924e0a03c7585",
520
+ "license": "MIT",
521
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
522
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
523
+ "source_file": "reservation-5712.wav",
524
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
525
+ },
526
+ {
527
+ "file": "adult-backchannel-v3.wav",
528
+ "kind": "backchannel",
529
+ "text": "ああ、そうなんですね。",
530
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
531
+ "seed": 5701,
532
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
533
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
534
+ "reference_audio": null,
535
+ "synthetic_audio": true,
536
+ "training_excluded": true,
537
+ "watermark_enabled": true,
538
+ "sample_rate": 48000,
539
+ "seconds": 3.48,
540
+ "max_seconds": 3.5,
541
+ "num_steps": 40,
542
+ "cfg_scale_text": 3.0,
543
+ "cfg_scale_caption": 2.5,
544
+ "cfg_guidance_mode": "independent",
545
+ "generation_seconds": 0.9337333729490638,
546
+ "peak": 0.8861069679260254,
547
+ "rms": 0.12877875566482544,
548
+ "sha256": "424c3152da9a8b1444363ff71574cfe26c855b5fe65e22ab6a553530132bdbe5",
549
+ "license": "MIT",
550
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
551
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
552
+ "source_file": "backchannel-5701.wav",
553
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
554
+ },
555
+ {
556
+ "file": "adult-cancel-v3.wav",
557
+ "kind": "cancel",
558
+ "text": "すみません、あしたの予約をキャンセルしたいんですけど。",
559
+ "caption": "40代の成人男性の中低音の声。飾らない日常会話。抑揚は小さく、落ち着いた普通の話し方。語尾を伸ばさず、力を抜いて自然に話す。",
560
+ "seed": 5721,
561
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
562
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
563
+ "reference_audio": null,
564
+ "synthetic_audio": true,
565
+ "training_excluded": true,
566
+ "watermark_enabled": true,
567
+ "sample_rate": 48000,
568
+ "seconds": 3.92,
569
+ "max_seconds": 8.0,
570
+ "num_steps": 40,
571
+ "cfg_scale_text": 3.0,
572
+ "cfg_scale_caption": 2.5,
573
+ "cfg_guidance_mode": "independent",
574
+ "generation_seconds": 0.511951609980315,
575
+ "peak": 0.9111555218696594,
576
+ "rms": 0.14880435168743134,
577
+ "sha256": "27a758e3f6db7c2553db937a638f1ddf60e9ad79d3c5f49a8d8097480005dd99",
578
+ "license": "MIT",
579
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
580
+ "review_note": "Caption specifies voice style. No perceptual listening claim.",
581
+ "source_file": "cancel-5721.wav",
582
+ "creator": "mocomoco inc.; synthesized with Irodori VoiceDesign by Chihiro Arata"
583
+ },
584
+ {
585
+ "file": "music-acoustic-loop-848704.wav",
586
+ "creator": "EEE3333E",
587
+ "title": "Acoustic Guitar loop",
588
+ "source_url": "https://freesound.org/people/EEE3333E/sounds/848704/",
589
+ "preview_url": "https://cdn.freesound.org/previews/848/848704_17604172-hq.mp3",
590
+ "license": "CC0-1.0",
591
+ "license_url": "https://creativecommons.org/publicdomain/zero/1.0/",
592
+ "license_verified": "2026-09-20",
593
+ "changes": "Freesound high-quality preview decoded, downmixed to mono, and resampled to 16 kHz PCM WAV; full 16.045-second loop retained.",
594
+ "source_sha256": "93a4c8a5c06977e94b22a41a280aa3360bd7f1f61ecf68cb5cc66e76f0ffa390",
595
+ "sha256": "c851b6cad67ac9ef08f5c634efb90f001670f5ed454320c276310bfe9b7c020a",
596
+ "source_id_audit": "freesound:848704 was absent from local FSD50K and typed-audio manifests at selection time.",
597
+ "selection_note": "Selected from its acoustic-guitar-loop description and CC0 license before inference; no model output was used to choose it. Exclude this demo from future independent evaluation."
598
+ }
599
+ ]
examples/IRODORI_PROVENANCE.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file": "irodori-reservation.wav",
4
+ "text": "明日の夜七時に、二人で予約をお願いできますか。",
5
+ "expected_intent": "reservation",
6
+ "synthetic_audio": true,
7
+ "model": "Aratako/Irodori-TTS-500M-v3",
8
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
9
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
10
+ "seed": 913,
11
+ "num_steps": 40,
12
+ "reference_audio": null,
13
+ "watermark_enabled": true,
14
+ "sample_rate": 48000,
15
+ "seconds": 4.0,
16
+ "generation_seconds": 0.9263423918746412,
17
+ "license": "MIT",
18
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
19
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
20
+ "sha256": "8f8ee91977655e119b26d3d7d35e9b414e62f1ef9c6b2c46097f010442f61fd9"
21
+ },
22
+ {
23
+ "file": "irodori-change.wav",
24
+ "text": "すみません、予約を土曜日の午後三時に変更したいのですが。",
25
+ "expected_intent": "change",
26
+ "synthetic_audio": true,
27
+ "model": "Aratako/Irodori-TTS-500M-v3",
28
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
29
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
30
+ "seed": 271,
31
+ "num_steps": 40,
32
+ "reference_audio": null,
33
+ "watermark_enabled": true,
34
+ "sample_rate": 48000,
35
+ "seconds": 4.72,
36
+ "generation_seconds": 0.4987814510241151,
37
+ "license": "MIT",
38
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
39
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
40
+ "sha256": "5c3fe27ad38a581e1f545c6cc8b18f8dd7a75b24e7c2737952e3b0e88ae589c2"
41
+ },
42
+ {
43
+ "file": "irodori-cancel.wav",
44
+ "text": "急な予定が入ってしまったので、明日の予約をキャンセルしてください。",
45
+ "expected_intent": "cancel",
46
+ "synthetic_audio": true,
47
+ "model": "Aratako/Irodori-TTS-500M-v3",
48
+ "revision": "236c1e56591279fc24e3c1bf6609fc06e48dde28",
49
+ "source_code_revision": "eaf74d6a19138f743acb5b71a445fd25a57db987",
50
+ "seed": 614,
51
+ "num_steps": 40,
52
+ "reference_audio": null,
53
+ "watermark_enabled": true,
54
+ "sample_rate": 48000,
55
+ "seconds": 4.88,
56
+ "generation_seconds": 0.49401673721149564,
57
+ "license": "MIT",
58
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-500M-v3",
59
+ "creator": "MocoVoice; synthesized with Irodori-TTS by Chihiro Arata",
60
+ "sha256": "25945f9ea6923cb47a1b008e0dbe935e4ee30bb3a30a1a030c12817b6a693b01"
61
+ }
62
+ ]
examples/PHONE_PROVENANCE.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file": "natural-reservation-a-telephone.wav",
4
+ "source_file": "natural-reservation-a.wav",
5
+ "source_sha256": "bf9ce6d83ae7fe8961f97f4cd95a7d6be1ca29d2c373cc77c96b7a41d7d719d2",
6
+ "sha256": "9c30790ee4ef54eb4e12f7ea58ff1cd2d65d399560f174e61d5a2451b0aa7f77",
7
+ "transformation": "300–3400 Hz bandpass, 8 kHz mono, 8-bit mu-law companding approximation decoded to PCM16",
8
+ "synthetic_audio": true,
9
+ "training_excluded": true,
10
+ "watermark_note": "Original synthesis watermarked; retention after telephone processing has not been verified."
11
+ },
12
+ {
13
+ "file": "turn-reservation-clause-unfinished-telephone.wav",
14
+ "source_file": "turn-reservation-clause-unfinished.wav",
15
+ "source_sha256": "14de328d4e6a4271e671967333fc0c5392d637d0a9876c7b6d0d72a1eb4fa926",
16
+ "sha256": "ea3a9e6b5bb09ab2cbf6263a92d46bb91baabc18ff1094e3cc65de24af20a499",
17
+ "transformation": "300–3400 Hz bandpass, 8 kHz mono, 8-bit mu-law companding approximation decoded to PCM16",
18
+ "synthetic_audio": true,
19
+ "training_excluded": true,
20
+ "watermark_note": "Original synthesis watermarked; retention after telephone processing has not been verified."
21
+ },
22
+ {
23
+ "file": "adult-reservation-v3-telephone.wav",
24
+ "source_file": "adult-reservation-v3.wav",
25
+ "source_sha256": "e494ae99d12c8fd23ba4741a5a8507942f0e54877b1c43493d5924e0a03c7585",
26
+ "sha256": "a281dac7872dfca1b2ca0ea38de4c7ed46af51f32e33ef2091ee0cb0efa59c52",
27
+ "transformation": "300–3400 Hz bandpass, 8 kHz mono, 8-bit mu-law companding approximation decoded to PCM16",
28
+ "synthetic_audio": true,
29
+ "training_excluded": true,
30
+ "watermark_note": "Original synthesis watermarked; retention after telephone processing has not been verified."
31
+ },
32
+ {
33
+ "file": "adult-cancel-v3-telephone.wav",
34
+ "source_file": "adult-cancel-v3.wav",
35
+ "source_sha256": "27a758e3f6db7c2553db937a638f1ddf60e9ad79d3c5f49a8d8097480005dd99",
36
+ "sha256": "7657c60e23fce2e30998d072908d726163ae33c84cb8c6008248c0a27a4c7087",
37
+ "transformation": "300–3400 Hz bandpass, 8 kHz mono, 8-bit mu-law companding approximation decoded to PCM16",
38
+ "synthetic_audio": true,
39
+ "training_excluded": true,
40
+ "watermark_note": "Original synthesis watermarked; retention after telephone processing has not been verified."
41
+ }
42
+ ]
examples/VOICE_DESIGN_PROVENANCE.json ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "file": "natural-reservation-a.wav",
4
+ "intent": "reservation",
5
+ "variant": "a",
6
+ "text": "こんばんは。あしたの夜、しちじごろに二人でお願いしたいんですけど、まだ空いてますか?",
7
+ "caption": "落ち着いた大人の話者。予約の電話で、相手に配慮しながら、自然な会話の速さでやわらかく話す。文の切れ目では短く息をつぎ、丁寧だが読み上げ調にならない。",
8
+ "synthetic_audio": true,
9
+ "reference_audio": null,
10
+ "reference_embedding": null,
11
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
12
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
13
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
14
+ "model_card_license": "MIT",
15
+ "model_card_license_verified": "2026-09-20",
16
+ "source_code_revision": "unversioned-worktree",
17
+ "seed": 1081,
18
+ "num_steps": 40,
19
+ "cfg_scale_text": 3.0,
20
+ "cfg_scale_caption": 2.5,
21
+ "cfg_guidance_mode": "independent",
22
+ "watermark_enabled": true,
23
+ "sample_rate": 48000,
24
+ "seconds": 8.44,
25
+ "peak_abs": 0.9765087366104126,
26
+ "rms": 0.1376929726771456,
27
+ "generation_seconds": 1.1542682349681854,
28
+ "sha256": "bf9ce6d83ae7fe8961f97f4cd95a7d6be1ca29d2c373cc77c96b7a41d7d719d2",
29
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
30
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
31
+ },
32
+ {
33
+ "file": "natural-change-a.wav",
34
+ "intent": "change",
35
+ "variant": "a",
36
+ "text": "すみません、予約のことなんですけど。土曜日の午後、さんじに変更できますか?",
37
+ "caption": "穏やかで親しみのある大人の話者。予約内容の変更を電話で相談している。急がず自然な間を取り、控えめにお願いする会話らしい口調。",
38
+ "synthetic_audio": true,
39
+ "reference_audio": null,
40
+ "reference_embedding": null,
41
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
42
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
43
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
44
+ "model_card_license": "MIT",
45
+ "model_card_license_verified": "2026-09-20",
46
+ "source_code_revision": "unversioned-worktree",
47
+ "seed": 2081,
48
+ "num_steps": 40,
49
+ "cfg_scale_text": 3.0,
50
+ "cfg_scale_caption": 2.5,
51
+ "cfg_guidance_mode": "independent",
52
+ "watermark_enabled": true,
53
+ "sample_rate": 48000,
54
+ "seconds": 6.64,
55
+ "peak_abs": 0.7287325859069824,
56
+ "rms": 0.1640570232803877,
57
+ "generation_seconds": 0.627793378662318,
58
+ "sha256": "a1a9828f1beada7c90182df61d30872a5edc056bef833219fd53fc48ee243a2d",
59
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
60
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
61
+ },
62
+ {
63
+ "file": "natural-cancel-b.wav",
64
+ "intent": "cancel",
65
+ "variant": "b",
66
+ "text": "すみません、急に予定が入ってしまって…。あしたの予約、キャンセルをお願いできますか?",
67
+ "caption": "落ち着いた大人の話者。予定変更を申し訳なく思いながら、予約のキャンセルを電話で伝える。小さなためらいと自然な息継ぎがあり、丁寧でやわらかい口調。",
68
+ "synthetic_audio": true,
69
+ "reference_audio": null,
70
+ "reference_embedding": null,
71
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
72
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
73
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
74
+ "model_card_license": "MIT",
75
+ "model_card_license_verified": "2026-09-20",
76
+ "source_code_revision": "unversioned-worktree",
77
+ "seed": 3082,
78
+ "num_steps": 40,
79
+ "cfg_scale_text": 3.0,
80
+ "cfg_scale_caption": 2.5,
81
+ "cfg_guidance_mode": "independent",
82
+ "watermark_enabled": true,
83
+ "sample_rate": 48000,
84
+ "seconds": 8.96,
85
+ "peak_abs": 0.8194587230682373,
86
+ "rms": 0.1417061149254557,
87
+ "generation_seconds": 0.7651458447799087,
88
+ "sha256": "52f0ed8dfd7ef2cbdd0ce67533f4f1acf2fe7ced93c9e34aa5d49957609f35dc",
89
+ "integrity_note": "Duration, peak, RMS, and SHA-256 are file checks only; they do not measure naturalness.",
90
+ "provenance_note": "Text-plus-caption-only synthesis; no real-person reference audio or voice embedding supplied."
91
+ },
92
+ {
93
+ "id": "order-full",
94
+ "name": "注文を最後まで伝える",
95
+ "speech_act": "request",
96
+ "intent": "order",
97
+ "turn_complete": true,
98
+ "context": "店員: ご注文が決まりましたら、お声がけください。",
99
+ "text": "きのこのパスタを一つ、持ち帰りでお願いします。",
100
+ "caption": "落ち着いた大人の話者。店員に注文を伝える短い会話。自然な速さで、最後まで言い切る。",
101
+ "seed": 4101,
102
+ "file": "turn-order-full.wav",
103
+ "expected": {
104
+ "speech_act": "request",
105
+ "intent": "order",
106
+ "turn_complete": true
107
+ },
108
+ "synthetic_audio": true,
109
+ "reference_audio": null,
110
+ "reference_embedding": null,
111
+ "training_excluded": true,
112
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
113
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
114
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
115
+ "model_card_license": "MIT",
116
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
117
+ "num_steps": 40,
118
+ "cfg_scale_text": 3.0,
119
+ "cfg_scale_caption": 2.5,
120
+ "cfg_guidance_mode": "independent",
121
+ "watermark_enabled": true,
122
+ "sample_rate": 48000,
123
+ "seconds": 4.08,
124
+ "peak_abs": 0.7851645946502686,
125
+ "rms": 0.17343387180324984,
126
+ "generation_seconds": 0.9514303421601653,
127
+ "sha256": "1cd199edb025dc5e93bb8ef22dc8cb98297ea879ee30e578bef43cd2c0260618",
128
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
129
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
130
+ },
131
+ {
132
+ "id": "backchannel-full",
133
+ "name": "相手の説明への相づち",
134
+ "speech_act": "backchannel",
135
+ "intent": "none",
136
+ "turn_complete": true,
137
+ "context": "案内係: 入口を出たら右へ進むと、受付が見えてきます。",
138
+ "text": "うん、分かりました。",
139
+ "caption": "親しみのある大人の話者。相手の説明を聞きながら短く相づちを打つ。急がず、自然に言い切る。",
140
+ "seed": 4102,
141
+ "file": "turn-backchannel-full.wav",
142
+ "expected": {
143
+ "speech_act": "backchannel",
144
+ "intent": "none",
145
+ "turn_complete": true
146
+ },
147
+ "synthetic_audio": true,
148
+ "reference_audio": null,
149
+ "reference_embedding": null,
150
+ "training_excluded": true,
151
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
152
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
153
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
154
+ "model_card_license": "MIT",
155
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
156
+ "num_steps": 40,
157
+ "cfg_scale_text": 3.0,
158
+ "cfg_scale_caption": 2.5,
159
+ "cfg_guidance_mode": "independent",
160
+ "watermark_enabled": true,
161
+ "sample_rate": 48000,
162
+ "seconds": 4.24,
163
+ "peak_abs": 0.7609981894493103,
164
+ "rms": 0.15303109302071377,
165
+ "generation_seconds": 0.544307358097285,
166
+ "sha256": "ab9c4c35fa15521b227540689743c15db1fae9a4701cd1c22069fe0789ac844d",
167
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
168
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
169
+ },
170
+ {
171
+ "id": "confirm-full",
172
+ "name": "内容を確認して承認する",
173
+ "speech_act": "confirm",
174
+ "intent": "reservation",
175
+ "turn_complete": true,
176
+ "context": "店員: 来週の火曜日、午後六時に二名様でお席をお取りしてよろしいですか。",
177
+ "text": "はい、その内容でお願いします。",
178
+ "caption": "穏やかな大人の話者。店員の確認に簡潔に同意する。会話らしい自然な間で、やわらかく言い切る。",
179
+ "seed": 4103,
180
+ "file": "turn-confirm-full.wav",
181
+ "expected": {
182
+ "speech_act": "confirm",
183
+ "intent": "reservation",
184
+ "turn_complete": true
185
+ },
186
+ "synthetic_audio": true,
187
+ "reference_audio": null,
188
+ "reference_embedding": null,
189
+ "training_excluded": true,
190
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
191
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
192
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
193
+ "model_card_license": "MIT",
194
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
195
+ "num_steps": 40,
196
+ "cfg_scale_text": 3.0,
197
+ "cfg_scale_caption": 2.5,
198
+ "cfg_guidance_mode": "independent",
199
+ "watermark_enabled": true,
200
+ "sample_rate": 48000,
201
+ "seconds": 3.16,
202
+ "peak_abs": 0.6248125433921814,
203
+ "rms": 0.15614677213260153,
204
+ "generation_seconds": 0.49432186922058463,
205
+ "sha256": "5c9569279a31be36d519b3e9e924e187d29e3eba967ed70850915108e4590e51",
206
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
207
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
208
+ },
209
+ {
210
+ "id": "correction-full",
211
+ "name": "日付を訂正して変更する",
212
+ "speech_act": "correct",
213
+ "intent": "change",
214
+ "turn_complete": true,
215
+ "context": "店員: ご予約は金曜日の午後三時で承っています。",
216
+ "text": "あ、すみません。金曜日ではなく、土曜日の午後に変更をお願いします。",
217
+ "caption": "丁寧な大人の話者。予約内容を思い出して訂正する。最初に短いためらいを置き、最後ははっきり言い切る。",
218
+ "seed": 4104,
219
+ "file": "turn-correction-full.wav",
220
+ "expected": {
221
+ "speech_act": "correct",
222
+ "intent": "change",
223
+ "turn_complete": true
224
+ },
225
+ "synthetic_audio": true,
226
+ "reference_audio": null,
227
+ "reference_embedding": null,
228
+ "training_excluded": true,
229
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
230
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
231
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
232
+ "model_card_license": "MIT",
233
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
234
+ "num_steps": 40,
235
+ "cfg_scale_text": 3.0,
236
+ "cfg_scale_caption": 2.5,
237
+ "cfg_guidance_mode": "independent",
238
+ "watermark_enabled": true,
239
+ "sample_rate": 48000,
240
+ "seconds": 6.4,
241
+ "peak_abs": 0.7035095691680908,
242
+ "rms": 0.1609569216640416,
243
+ "generation_seconds": 0.6292441417463124,
244
+ "sha256": "b73eb1847645cd473f71a8d8296639f6bc38ec17dc628ec843a680d005d44a1c",
245
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
246
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
247
+ },
248
+ {
249
+ "id": "cancel-full",
250
+ "name": "注文を取り消す",
251
+ "speech_act": "cancel",
252
+ "intent": "cancel",
253
+ "turn_complete": true,
254
+ "context": "店員: 先ほどのスープとコーヒーのご注文を確認します。",
255
+ "text": "すみません、スープのほうは取り消してください。",
256
+ "caption": "落ち着いた大人の話者。注文の一部を丁寧に取り消す。自然な会話の速さで、申し訳なさを少し含めて言い切る。",
257
+ "seed": 4105,
258
+ "file": "turn-cancel-full.wav",
259
+ "expected": {
260
+ "speech_act": "cancel",
261
+ "intent": "cancel",
262
+ "turn_complete": true
263
+ },
264
+ "synthetic_audio": true,
265
+ "reference_audio": null,
266
+ "reference_embedding": null,
267
+ "training_excluded": true,
268
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
269
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
270
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
271
+ "model_card_license": "MIT",
272
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
273
+ "num_steps": 40,
274
+ "cfg_scale_text": 3.0,
275
+ "cfg_scale_caption": 2.5,
276
+ "cfg_guidance_mode": "independent",
277
+ "watermark_enabled": true,
278
+ "sample_rate": 48000,
279
+ "seconds": 3.44,
280
+ "peak_abs": 0.781799852848053,
281
+ "rms": 0.16470869580552724,
282
+ "generation_seconds": 0.5071098008193076,
283
+ "sha256": "24ca56ecc4191620c37834cf5d2f28c51ed7192ee5b6235585fb2dcc0ed38045",
284
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
285
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
286
+ },
287
+ {
288
+ "id": "order-hesitation-unfinished",
289
+ "name": "迷って途中で止まる注文",
290
+ "speech_act": "request",
291
+ "intent": "order",
292
+ "turn_complete": false,
293
+ "context": "店員: ご注文が決まりましたら、お声がけください。",
294
+ "text": "きのこのパスタを一つ、ええと、持ち帰りにするか…",
295
+ "caption": "迷っている大人の話者。注文を考えながら言いよどみ、答えを決めずに途中で止める。読み上げ調にしない。",
296
+ "seed": 4106,
297
+ "file": "turn-order-hesitation-unfinished.wav",
298
+ "expected": {
299
+ "speech_act": "request",
300
+ "intent": "order",
301
+ "turn_complete": false
302
+ },
303
+ "synthetic_audio": true,
304
+ "reference_audio": null,
305
+ "reference_embedding": null,
306
+ "training_excluded": true,
307
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
308
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
309
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
310
+ "model_card_license": "MIT",
311
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
312
+ "num_steps": 40,
313
+ "cfg_scale_text": 3.0,
314
+ "cfg_scale_caption": 2.5,
315
+ "cfg_guidance_mode": "independent",
316
+ "watermark_enabled": true,
317
+ "sample_rate": 48000,
318
+ "seconds": 5.08,
319
+ "peak_abs": 0.9923233389854431,
320
+ "rms": 0.161138963203946,
321
+ "generation_seconds": 0.5771061358973384,
322
+ "sha256": "70c4bc0af49280d772c09ea9977f5a1d072f58c71705be9dc36bd1704010ea1e",
323
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
324
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
325
+ },
326
+ {
327
+ "id": "reservation-clause-unfinished",
328
+ "name": "意味のある途中節で止まる予約",
329
+ "speech_act": "request",
330
+ "intent": "reservation",
331
+ "turn_complete": false,
332
+ "context": "店員: ご希望の日時と人数をお知らせください。",
333
+ "text": "あしたの夕方に二人で、もし窓際が…",
334
+ "caption": "控えめな大人の話者。予約の条件を伝え始めるが、文を完結させずに意味のある途中で止まる。自然な短い間を含める。",
335
+ "seed": 4107,
336
+ "file": "turn-reservation-clause-unfinished.wav",
337
+ "expected": {
338
+ "speech_act": "request",
339
+ "intent": "reservation",
340
+ "turn_complete": false
341
+ },
342
+ "synthetic_audio": true,
343
+ "reference_audio": null,
344
+ "reference_embedding": null,
345
+ "training_excluded": true,
346
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
347
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
348
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
349
+ "model_card_license": "MIT",
350
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
351
+ "num_steps": 40,
352
+ "cfg_scale_text": 3.0,
353
+ "cfg_scale_caption": 2.5,
354
+ "cfg_guidance_mode": "independent",
355
+ "watermark_enabled": true,
356
+ "sample_rate": 48000,
357
+ "seconds": 5.28,
358
+ "peak_abs": 1.0007697343826294,
359
+ "rms": 0.13793335127204556,
360
+ "generation_seconds": 0.5772101040929556,
361
+ "sha256": "14de328d4e6a4271e671967333fc0c5392d637d0a9876c7b6d0d72a1eb4fa926",
362
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
363
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
364
+ },
365
+ {
366
+ "id": "reservation-full-contrast",
367
+ "name": "同じ予約条件を最後まで伝える",
368
+ "speech_act": "request",
369
+ "intent": "reservation",
370
+ "turn_complete": true,
371
+ "context": "店員: ご希望の日時と人数をお知らせください。",
372
+ "text": "あしたの夕方に二人で、窓際の席を予約したいです。",
373
+ "caption": "控えめな大人の話者。予約の条件を伝え、最後まで自然に言い切る。文の区切りに短い息継ぎを入れる。",
374
+ "seed": 4108,
375
+ "file": "turn-reservation-full-contrast.wav",
376
+ "expected": {
377
+ "speech_act": "request",
378
+ "intent": "reservation",
379
+ "turn_complete": true
380
+ },
381
+ "synthetic_audio": true,
382
+ "reference_audio": null,
383
+ "reference_embedding": null,
384
+ "training_excluded": true,
385
+ "model": "Aratako/Irodori-TTS-600M-v3-VoiceDesign",
386
+ "model_revision": "e863a3a93e652e09afeff3e84823a206a0a60314",
387
+ "model_card": "https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign",
388
+ "model_card_license": "MIT",
389
+ "license_evidence": "spaces/mocovoice-audio-jev/licenses/irodori-model-card.md",
390
+ "num_steps": 40,
391
+ "cfg_scale_text": 3.0,
392
+ "cfg_scale_caption": 2.5,
393
+ "cfg_guidance_mode": "independent",
394
+ "watermark_enabled": true,
395
+ "sample_rate": 48000,
396
+ "seconds": 5.68,
397
+ "peak_abs": 0.8254440426826477,
398
+ "rms": 0.15123665222928692,
399
+ "generation_seconds": 0.5876368628814816,
400
+ "sha256": "36a84d9c7061577b438529f4e0882d456f7f3ce773cc9f55248be5fcac1a43a3",
401
+ "provenance_note": "Original authored text and caption-only VoiceDesign synthesis; no reference audio, embedding, or speaker identity supplied.",
402
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation. It does not prove a model can make arbitrary floor-taking or turn-taking predictions."
403
+ }
404
+ ]
examples/adult-backchannel-v3.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:424c3152da9a8b1444363ff71574cfe26c855b5fe65e22ab6a553530132bdbe5
3
+ size 334124
examples/adult-cancel-v3-telephone.wav ADDED
Binary file (62.8 kB). View file
 
examples/adult-cancel-v3.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27a758e3f6db7c2553db937a638f1ddf60e9ad79d3c5f49a8d8097480005dd99
3
+ size 376364
examples/adult-reservation-v3-telephone.wav ADDED
Binary file (73 kB). View file
 
examples/adult-reservation-v3.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e494ae99d12c8fd23ba4741a5a8507942f0e54877b1c43493d5924e0a03c7585
3
+ size 437804
examples/animal-dog-birds-238688.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb229bbe56c08902fb2e1e1d7bad639b49908148e384bdf3a1aa8d9687b19c24
3
+ size 712036
examples/catalog.json ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "予約",
4
+ "audio": "examples/adult-reservation-v3-telephone.wav",
5
+ "context": "店員: ご用件をお聞かせください。",
6
+ "questions": {
7
+ "intent": {
8
+ "type": "choice",
9
+ "instructions": "文脈を踏まえると、この発話の目的は何ですか。",
10
+ "criteria": {
11
+ "reservation": "予約を新しく申し込む",
12
+ "change": "既存の予約や注文の内容を変更する",
13
+ "cancel": "既存の予約や注文を取り消す",
14
+ "order": "品物や飲食物を注文する",
15
+ "none": "予約・注文・変更・取り消しのいずれでもない"
16
+ }
17
+ }
18
+ },
19
+ "synthetic_audio": true,
20
+ "synthesis": "Irodori VoiceDesign",
21
+ "text": "もしもし、あしたの夜七時に、二人で予約できますか。",
22
+ "expected": {
23
+ "intent": "reservation"
24
+ },
25
+ "telephone_audio": true,
26
+ "training_excluded": true,
27
+ "id": "reservation-adult-v3"
28
+ },
29
+ {
30
+ "id": "backchannel-adult-v3",
31
+ "name": "相づち",
32
+ "audio": "examples/adult-backchannel-v3.wav",
33
+ "context": "担当者: こちらの窓口は、土曜日も夕方六時まで開いています。",
34
+ "text": "ああ、そうなんですね。",
35
+ "questions": {
36
+ "speech_act": {
37
+ "type": "choice",
38
+ "instructions": "この発話の会話上の働きは何ですか。",
39
+ "criteria": {
40
+ "backchannel": "相手の話を聞いていることを示す相づち",
41
+ "confirm": "確認への同意または承認",
42
+ "request": "新しい依頼や要求",
43
+ "correct": "前の内容の訂正や変更",
44
+ "cancel": "依頼や予定の取り消し",
45
+ "other": "これらに該当しない発話"
46
+ }
47
+ },
48
+ "intent": {
49
+ "type": "choice",
50
+ "instructions": "文脈を踏まえると、この発話の目的は何ですか。",
51
+ "criteria": {
52
+ "none": "予約・注文・変更・取り消しのいずれでもない",
53
+ "reservation": "予約を新しく申し込む",
54
+ "order": "品物や飲食物を注文する",
55
+ "change": "既存の予約や注文の内容を変更する",
56
+ "cancel": "既存の予約や注文を取り消す"
57
+ }
58
+ },
59
+ "turn_complete": {
60
+ "type": "noul",
61
+ "instructions": "この発話は意味的に言い終えられていますか。",
62
+ "criteria": {
63
+ "false": "発話は意味のある途中で止まっており、話者が言い終えたとは扱わない。",
64
+ "true": "発話はこの単独の発話として意味的に言い終えられている。"
65
+ }
66
+ }
67
+ },
68
+ "expected": {
69
+ "speech_act": "backchannel",
70
+ "intent": "none",
71
+ "turn_complete": true
72
+ },
73
+ "synthetic_audio": true,
74
+ "reference_audio": null,
75
+ "training_excluded": true,
76
+ "annotation_caveat": "turn_complete is an authored semantic-endpoint annotation, not evidence of a true conversational floor-taking decision.",
77
+ "synthesis": "Irodori VoiceDesign",
78
+ "telephone_audio": false
79
+ },
80
+ {
81
+ "id": "cancel-adult-v3",
82
+ "name": "予約キャンセル",
83
+ "audio": "examples/adult-cancel-v3-telephone.wav",
84
+ "context": "店員: ご予約についてのご用件をお聞かせください。",
85
+ "text": "すみません、あしたの予約をキャンセルしたいんですけど。",
86
+ "questions": {
87
+ "intent": {
88
+ "type": "choice",
89
+ "instructions": "文脈を踏まえると、この発話の目的は何ですか。",
90
+ "criteria": {
91
+ "reservation": "予約を新しく申し込む",
92
+ "change": "既存の予約や注文の内容を変更する",
93
+ "cancel": "既存の予約や注文を取り消す",
94
+ "order": "品物や飲食物を注文する",
95
+ "none": "予約・注文・変更・取り消しのいずれでもない"
96
+ }
97
+ }
98
+ },
99
+ "expected": {
100
+ "intent": "cancel"
101
+ },
102
+ "synthetic_audio": true,
103
+ "reference_audio": null,
104
+ "training_excluded": true,
105
+ "telephone_audio": true,
106
+ "synthesis": "Irodori VoiceDesign"
107
+ },
108
+ {
109
+ "id": "music-acoustic-loop-848704",
110
+ "name": "音楽",
111
+ "audio": "examples/music-acoustic-loop-848704.wav",
112
+ "context": "",
113
+ "questions": {
114
+ "music_present": {
115
+ "type": "noul",
116
+ "instructions": "音声に歌や楽器を含む音楽が含まれますか。",
117
+ "criteria": {
118
+ "false": "歌や楽器を含む音楽は含まれない。",
119
+ "true": "歌や楽器を含む音楽が含まれる。"
120
+ }
121
+ }
122
+ },
123
+ "expected": {
124
+ "music_present": true
125
+ },
126
+ "synthetic_audio": false,
127
+ "execution": ["server", "edge"],
128
+ "source_record_id": "freesound:848704",
129
+ "training_excluded": true
130
+ },
131
+ {
132
+ "id": "animal-dog-birds-238688",
133
+ "name": "動物音",
134
+ "audio": "examples/animal-dog-birds-238688.wav",
135
+ "context": "",
136
+ "questions": {
137
+ "animal_present": {
138
+ "type": "noul",
139
+ "instructions": "音声に動物の鳴き声が含まれますか。",
140
+ "criteria": {
141
+ "false": "動物音は含まれない。",
142
+ "true": "動物音が含まれる。"
143
+ }
144
+ },
145
+ "animal_type": {
146
+ "type": "choice",
147
+ "instructions": "この録音で聞こえる主な動物の音を選んでください。",
148
+ "criteria": {
149
+ "bird": "鳥の音",
150
+ "cat": "猫の音",
151
+ "dog": "犬の音",
152
+ "insect": "昆虫の音",
153
+ "chicken_and_rooster": "ニワトリ・雄鶏の音",
154
+ "crow": "カラスの音",
155
+ "frog": "カエルの音",
156
+ "cricket": "コオロギの音"
157
+ }
158
+ }
159
+ },
160
+ "expected": {
161
+ "animal_present": true,
162
+ "animal_type": "dog"
163
+ },
164
+ "synthetic_audio": false,
165
+ "execution": ["server", "edge"],
166
+ "source_record_id": "freesound:238688",
167
+ "training_excluded": true
168
+ }
169
+ ]
examples/irodori-cancel.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25945f9ea6923cb47a1b008e0dbe935e4ee30bb3a30a1a030c12817b6a693b01
3
+ size 468524
examples/irodori-change.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c3fe27ad38a581e1f545c6cc8b18f8dd7a75b24e7c2737952e3b0e88ae589c2
3
+ size 453164
examples/irodori-reservation.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f8ee91977655e119b26d3d7d35e9b414e62f1ef9c6b2c46097f010442f61fd9
3
+ size 384044
examples/music-639.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2637513ffafbae9b74da216e10b4b4dd99d966165db89284ce9da38593727cfa
3
+ size 172562
examples/music-acoustic-loop-848704.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c851b6cad67ac9ef08f5c634efb90f001670f5ed454320c276310bfe9b7c020a
3
+ size 513518
examples/natural-cancel-b.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52f0ed8dfd7ef2cbdd0ce67533f4f1acf2fe7ced93c9e34aa5d49957609f35dc
3
+ size 860204
examples/natural-change-a.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1a9828f1beada7c90182df61d30872a5edc056bef833219fd53fc48ee243a2d
3
+ size 637484
examples/natural-reservation-a-telephone.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c30790ee4ef54eb4e12f7ea58ff1cd2d65d399560f174e61d5a2451b0aa7f77
3
+ size 135084
examples/natural-reservation-a.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf9ce6d83ae7fe8961f97f4cd95a7d6be1ca29d2c373cc77c96b7a41d7d719d2
3
+ size 810284
examples/reservation.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1b4a56e9a2068f092515b564a06bde60a329b60389fe09f5101a6f77aab9fde
3
+ size 137324
examples/turn-backchannel-full.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab9c4c35fa15521b227540689743c15db1fae9a4701cd1c22069fe0789ac844d
3
+ size 407084
examples/turn-cancel-full.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24ca56ecc4191620c37834cf5d2f28c51ed7192ee5b6235585fb2dcc0ed38045
3
+ size 330284
examples/turn-confirm-full.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c9569279a31be36d519b3e9e924e187d29e3eba967ed70850915108e4590e51
3
+ size 303404
examples/turn-correction-full.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b73eb1847645cd473f71a8d8296639f6bc38ec17dc628ec843a680d005d44a1c
3
+ size 614444
examples/turn-order-full.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cd199edb025dc5e93bb8ef22dc8cb98297ea879ee30e578bef43cd2c0260618
3
+ size 391724
examples/turn-order-hesitation-unfinished.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70c4bc0af49280d772c09ea9977f5a1d072f58c71705be9dc36bd1704010ea1e
3
+ size 487724
examples/turn-reservation-clause-unfinished-telephone.wav ADDED
Binary file (84.5 kB). View file
 
examples/turn-reservation-clause-unfinished.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14de328d4e6a4271e671967333fc0c5392d637d0a9876c7b6d0d72a1eb4fa926
3
+ size 506924
examples/turn-reservation-full-contrast.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36a84d9c7061577b438529f4e0882d456f7f3ce773cc9f55248be5fcac1a43a3
3
+ size 545324
favicon.svg ADDED
fonts/LINESeedJP_OTF_Bd.woff2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:512c1b416bb24e281e182c5a70f3909a8ebd0b5494082f9b7a7c157452c7026f
3
+ size 2156508
fonts/LINESeedJP_OTF_Rg.woff2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75a41f51f4b2d3172fde7a45daf544a58df58f5791d996c3cb3fbf855f67c7a8
3
+ size 2104408
index.html ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="ja">
3
+ <head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Audio Decision Model by mocomoco inc.</title><link rel="icon" href="./favicon.svg" type="image/svg+xml"><link rel="preload" href="./mocomoco-inc-logo.svg" as="image" type="image/svg+xml"><link rel="preload" href="./fonts/LINESeedJP_OTF_Rg.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./fonts/LINESeedJP_OTF_Bd.woff2" as="font" type="font/woff2" crossorigin><link rel="stylesheet" href="./styles.css?v=20260921-title-width-v1"></head>
4
+ <body>
5
+ <div id="startup-screen" class="startup-screen" role="status" aria-label="Audio Decision Modelを読み込んでいます"><div class="startup-stage"><span class="startup-spinner" aria-hidden="true"></span><div class="startup-brand"><strong>Audio Decision Model</strong><span>by <img src="./mocomoco-inc-logo.svg" alt="mocomoco inc." width="217" height="33"></span></div></div></div>
6
+ <div id="mode-color-edge" aria-hidden="true"></div>
7
+ <header class="topbar"><div class="product-brand"><h1 class="product-title"><a href="./"><span id="product-name">Audio Decision Model</span> <span id="edge-mode-label" class="edge-mode-label" hidden>Edge AI</span> <span class="product-byline">by <img src="./mocomoco-inc-logo.svg" alt="mocomoco inc." width="217" height="33"></span></a></h1><p class="product-inspiration">Inspired by <a href="https://typesafe.ai/blog/introducing-system-one-models-and-jev" target="_blank" rel="noopener noreferrer">TypeSafe AI’s Jev</a></p><p class="product-description">音声入力に対する判断を高速に返すAIです。言語情報・非言語情報の判断形式を指定できます。</p></div><a class="hf-link hf-link-top" href="https://huggingface.co/mocomoco-inc/mocomoco-AudioJev-AudioDecisionModel" target="_blank" rel="noopener noreferrer"><span aria-hidden="true">🤗</span>Available on Hugging Face<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M8 5h11v11M19 5 5 19"/></svg></a></header>
8
+ <main class="page">
9
+ <div class="toolbar"><div class="execution-picker"><span class="execution-label" aria-hidden="true">AIの処理場所</span><fieldset id="execution-toggle" class="execution-toggle"><legend class="sr-only">AIの処理場所</legend><label class="execution-option"><input type="radio" name="execution" value="server" checked><span><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><path d="M7 19a5 5 0 0 1-.7-9.95A6 6 0 0 1 18 8a5.5 5.5 0 0 1 .5 11H7Z"/></svg>クラウド</span></label><label class="execution-option"><input type="radio" name="execution" value="edge"><span><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="3" y="4" width="18" height="13" rx="2"/><path d="M8 21h8m-4-4v4M3 8h18"/></svg>Edge AI</span></label></fieldset></div><select id="execution-mode" hidden aria-hidden="true"><option value="server">クラウド · CPU</option><option value="edge">Edge AI · CPU</option></select><div id="mode-announcement" class="mode-description" role="status" aria-live="polite"><p id="mode-announcement-text"></p></div><span id="backend-wrap" hidden>WASM / INT8</span><span id="execution-kicker" hidden></span><span id="model-title" hidden></span></div>
10
+ <div class="workspace">
11
+ <div class="inputs">
12
+ <section class="section audio-section"><div class="section-heading"><h2>音声</h2><span class="hint">最大 30 秒</span></div>
13
+ <div class="recorder" id="recorder" aria-label="録音、ファイル選択、または音声ファイルのドラッグ&ドロップ">
14
+ <div class="recorder-meta"><span id="record-state"><span class="ready-dot"></span>マイクで録音</span><span id="record-timer">0:00 <span>/ 0:30</span></span></div>
15
+ <div class="waveform"><canvas id="record-waveform" aria-hidden="true"></canvas></div>
16
+ <div class="audio-controls"><button id="record" class="record-button"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8"/></svg>録音をはじめる</button><span class="upload-divider">または</span><label class="file-button" for="audio-file">ファイルを選ぶ<input id="audio-file" type="file" accept="audio/*"></label></div>
17
+ </div><div id="examples-section" hidden><span class="hint">サンプル</span><div id="examples" class="examples"></div></div><audio id="audio-preview" hidden preload="metadata"></audio><div id="audio-player" class="audio-player" hidden><div class="player-heading"><span>音声プレビュー</span><span id="player-time">0:00 / 0:00</span></div><div class="player-controls"><button id="player-play" class="player-play" type="button" aria-label="再生"></button><div class="player-track"><canvas id="player-waveform" aria-hidden="true"></canvas><input id="player-seek" type="range" min="0" max="1" step="0.01" value="0" aria-label="再生位置"></div><select id="player-speed" aria-label="再生速度"><option value="1">1×</option><option value="1.25">1.25×</option><option value="1.5">1.5×</option><option value="2">2×</option></select></div></div><p id="sample-transcript" class="sample-transcript" hidden></p><p id="audio-status" class="hint"></p>
18
+ <details class="context-details"><summary>文脈・補足 <span class="hint">任意</span></summary><textarea id="context" maxlength="2000" rows="3" placeholder="直前の会話など"></textarea><span class="hint"><span id="context-count">0</span> / 2000</span></details>
19
+ </section>
20
+ <section class="section questions-section"><div class="section-heading"><h2>質問</h2><select id="preset" aria-label="プリセット"><option value="identity">予約・注文の意図</option><option value="language">話されている言語</option><option value="service">音のカテゴリ</option><option value="classification">音カテゴリ数</option><option value="turntaking">発話の役割</option><option value="animals">動物の種類</option></select></div>
21
+ <label class="question-selector">編集する質問<select id="existing-question"></select></label>
22
+ <form id="question-builder" class="builder">
23
+ <label>質問文<textarea id="question-instructions" rows="3" required></textarea></label>
24
+ <label>回答形式<select id="question-type"><option value="noul">Yes / No</option><option value="choice">選択</option><option value="score">数値</option></select></label>
25
+ <div id="criteria-panel" class="criteria-fields" hidden>
26
+ <div class="criteria-fields-heading"><span id="criteria-title">選択肢</span><span id="criteria-limit" class="hint"></span></div>
27
+ <div id="criteria-items" class="criteria-items"></div>
28
+ <button id="add-criterion" class="add-criterion" type="button">+ 選択肢を追加</button>
29
+ </div>
30
+ </form>
31
+ <details class="question-advanced"><summary>詳細設定</summary><div class="advanced-fields"><label>質問ID <span class="hint">結果JSONのキー</span><input id="question-name" required></label><label>質問セット JSON<textarea id="questions-json" rows="16" spellcheck="false"></textarea></label></div></details><p id="question-error" class="error" role="alert"></p>
32
+ </section>
33
+
34
+ </div>
35
+ <aside class="output"><div class="section-heading"><h2>結果</h2></div><div class="run-bar"><button id="analyze" class="primary">実行する</button><span id="analysis-status" role="status">音声を選んでください。</span></div><div id="summary" class="summary is-empty">音声を選んで解析すると、ここに結果が表示されます。</div><details class="result-details" open><summary>結果 JSON</summary><pre id="result-json">{}</pre></details>
36
+ </aside>
37
+ </div></main><footer class="site-footer"><div class="operator-block"><div class="operator"><span>企業情報</span><a class="operator-logo" href="https://mocomoco.ai" target="_blank" rel="noopener noreferrer"><img src="./mocomoco-inc-logo.svg" alt="mocomoco inc." width="217" height="33" loading="lazy"></a></div><p class="references">参考にしているAI:<a href="https://docs.typesafe.ai/introduction" target="_blank" rel="noopener noreferrer">Jev / TypeSafe AI</a> · <a href="https://github.com/TheoLeeCJ/SemIf" target="_blank" rel="noopener noreferrer">OpenJev / SemIf</a><br>Audio Decision Modelは、これらを参考にmocomoco inc.が研究開発する音声向けの独立した実装です。</p></div><a class="hf-link" href="https://huggingface.co/mocomoco-inc/mocomoco-AudioJev-AudioDecisionModel" target="_blank" rel="noopener noreferrer"><span aria-hidden="true">🤗</span>Available on Hugging Face<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M8 5h11v11M19 5 5 19"/></svg></a></footer><dialog id="edge-intro" class="edge-intro" aria-labelledby="edge-intro-title" aria-describedby="edge-intro-description"><button id="edge-intro-close" class="dialog-close" type="button" aria-label="説明を閉じる" autofocus><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg></button><svg class="edge-intro-illustration" viewBox="0 0 280 110" fill="none" role="img" aria-label="音声を端末の中で処理し、外へ送信しないイメージ"><rect x="65" y="12" width="150" height="78" rx="9" fill="#162d40" stroke="#7293aa" stroke-width="2"/><rect x="74" y="21" width="132" height="60" rx="4" fill="#101b2a"/><path d="M53 91h174l-8 9H61l-8-9Z" fill="#203c51" stroke="#7293aa" stroke-width="2" stroke-linejoin="round"/><path d="M128 94h24" stroke="#7293aa" stroke-width="2" stroke-linecap="round"/><g stroke="#69d2ff" stroke-width="3" stroke-linecap="round"><path d="M91 47v10m7-18v26m7-31v36m7-27v18m7-13v8"/></g><path d="M132 52h20m-5-5 5 5-5 5" stroke="#7293aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><rect x="163" y="45" width="27" height="22" rx="5" fill="#25485e" stroke="#69d2ff" stroke-width="2"/><path d="M170 45v-6a6.5 6.5 0 0 1 13 0v6" stroke="#69d2ff" stroke-width="2"/><path d="m171 56 4 4 7-8" stroke="#a0e4ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg><h2 id="edge-intro-title">Edge AI</h2><div id="edge-intro-description"><p>データをクラウドに送らず、この端末内でJevを実行します。外部送信不要で、オフラインでも利用できます。初回のみ「モデルを読み込む」からモデルをダウンロードします。</p></div></dialog><script type="module" src="./ui.js?v=20260921-preload-all-v2"></script></body></html>
inference-worker.js ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as ort from './vendor/ort.webgpu.bundle.min.mjs';
2
+ import {Tokenizer} from './vendor/tokenizers.mjs';
3
+ import {WhisperFeatureExtractor, ClapFeatureExtractor} from './vendor/transformers.web.min.js';
4
+
5
+ ort.env.wasm.wasmPaths = new URL('./vendor/', import.meta.url).href;
6
+ ort.env.wasm.numThreads = 1;
7
+ ort.env.wasm.proxy = false;
8
+
9
+ let model = null;
10
+ let loading = null;
11
+ let languageLoading = null;
12
+ let soundLoading = null;
13
+ let currentId = null;
14
+ const textCache = new Map();
15
+ const truncatedTexts = new Set();
16
+ const progress = message => postMessage({id: currentId, progress: message});
17
+
18
+ const BROAD = ['animal', 'nature', 'music', 'environment'];
19
+ const ANIMAL8 = ['dog', 'cat', 'bird', 'insect', 'chicken_and_rooster', 'crow', 'frog', 'cricket'];
20
+ const ALIASES = {
21
+ animal: ['animal sound', 'animal', '動物音', '動物の音', '動物の鳴き声'],
22
+ nature: ['nature sound', 'nature', '自然音', '自然の音'],
23
+ music: ['music', 'musical', '音楽'],
24
+ environment: ['environmental sound', 'environment sound', 'environment', '環境音', '環境の音'],
25
+ dog: ['dog', '犬', 'いぬ', '犬の鳴き声'], cat: ['cat', '猫', 'ねこ', '猫の鳴き声'],
26
+ bird: ['bird', '鳥', 'とり', '鳥の鳴き声'], insect: ['insect', '虫', '昆虫', '虫の音'],
27
+ chicken_and_rooster: ['chicken', 'rooster', 'hen', '鶏', 'にわとり', 'ニワトリ', '雄鶏'],
28
+ crow: ['crow', 'カラス', 'からす'], frog: ['frog', 'カエル', 'かえる'],
29
+ cricket: ['cricket', 'コオロギ', 'こおろぎ'],
30
+ };
31
+ const OR_CUES = ['または', 'もしくは', 'あるいは', 'いずれか', 'or', 'either'];
32
+ const NEGATIVE_CUES = ['含まれない', '聞こえない', '存在しない', '該当しない', '満たさない', 'ではない', 'なし', 'ない', 'without', 'absent', 'not', 'no '];
33
+
34
+ async function asset(path) {
35
+ const response = await fetch(new URL(path, import.meta.url));
36
+ if (!response.ok) throw new Error(`モデルファイルの取得に失敗しました (${response.status})。Spaceへのアクセス権を確認してください。`);
37
+ return response;
38
+ }
39
+
40
+ async function modelBytes(path, label) {
41
+ progress(`${label}を端末に読み込み中…`);
42
+ const response = await asset(path);
43
+ const total = Number(response.headers.get('Content-Length') || 0);
44
+ if (!response.body) return new Uint8Array(await response.arrayBuffer());
45
+ const reader = response.body.getReader();
46
+ const chunks = []; let received = 0; let last = performance.now();
47
+ while (true) {
48
+ const {done, value} = await reader.read(); if (done) break;
49
+ chunks.push(value); received += value.length;
50
+ if (performance.now() - last > 400) {
51
+ progress(`${label}: ${(received / 1e6).toFixed(0)} MB${total ? ' / ' + (total / 1e6).toFixed(0) + ' MB' : ''}`);
52
+ last = performance.now();
53
+ }
54
+ }
55
+ const result = new Uint8Array(received); let offset = 0;
56
+ for (const chunk of chunks) {result.set(chunk, offset); offset += chunk.length;}
57
+ return result;
58
+ }
59
+
60
+ async function createSession(path, label) {
61
+ return ort.InferenceSession.create(await modelBytes(path, label), {
62
+ executionProviders: ['wasm'], graphOptimizationLevel: 'all',
63
+ });
64
+ }
65
+
66
+ async function load() {
67
+ if (model?.audio && model?.head && model?.sound) return status();
68
+ if (loading) return loading;
69
+ loading = (async () => {
70
+ if (!model) {
71
+ const manifest = await (await asset('./models/manifest.json')).json();
72
+ progress('Edge AIモデルを端末に読み込みます。');
73
+ const text = await createSession('./models/text_q8.onnx', '質問モデル');
74
+ const routerCore = await createSession('./models/modality_router_core_fp32.onnx?v=20260921-router-ensemble-web-v1', 'ルーティングモデル 1/2');
75
+ const routerNatural = await createSession('./models/modality_router_natural_fp32.onnx?v=20260921-router-ensemble-web-v1', 'ルーティングモデル 2/2');
76
+ const [tokenizerJson, tokenizerConfig, qwenConfig, clapConfig] = await Promise.all([
77
+ 'tokenizer.json', 'tokenizer_config.json',
78
+ ].map(async name => (await asset('./models/tokenizer/' + name)).json()).concat([
79
+ asset('./models/qwen_preprocessor_config.json').then(response => response.json()),
80
+ asset('./models/clap_preprocessor_config.json').then(response => response.json()),
81
+ ]));
82
+ model = {
83
+ audio: null, text, head: null, routers: [routerCore, routerNatural], sound: null,
84
+ tokenizer: new Tokenizer(tokenizerJson, tokenizerConfig),
85
+ qwenExtractor: new WhisperFeatureExtractor(qwenConfig),
86
+ clapExtractor: new ClapFeatureExtractor(clapConfig),
87
+ manifest, backend: 'wasm', precision: 'int8',
88
+ };
89
+ }
90
+ await loadLanguage();
91
+ await loadSound();
92
+ progress('モデルの準備ができました。データはこの端末内だけで処理されます。');
93
+ return status();
94
+ })();
95
+ try {return await loading;} finally {loading = null;}
96
+ }
97
+
98
+ async function loadLanguage() {
99
+ if (model.audio && model.head) return {audio: model.audio, head: model.head};
100
+ if (languageLoading) return languageLoading;
101
+ languageLoading = (async () => {
102
+ progress('発話モデルを端末に読み込み中…');
103
+ const audio = await createSession('./models/qwen_audio_q8.onnx', '発話モデル');
104
+ const head = await createSession('./models/qwen_typed_head_q8.onnx?v=20260921-noulmatch-v4', '発話の判断モデル');
105
+ model.audio = audio; model.head = head;
106
+ return {audio, head};
107
+ })();
108
+ try {return await languageLoading;} finally {languageLoading = null;}
109
+ }
110
+
111
+ async function loadSound() {
112
+ if (model.sound) return model.sound;
113
+ if (soundLoading) return soundLoading;
114
+ soundLoading = (async () => {
115
+ progress('非言語モデルを端末に読み込み中…');
116
+ const audio = await createSession('./models/clap_audio_q8.onnx', '非言語モデル');
117
+ const heads = await createSession('./models/clap_heads_q8.onnx', '非言語の判断モデル');
118
+ model.sound = {audio, heads};
119
+ return model.sound;
120
+ })();
121
+ try {return await soundLoading;} finally {soundLoading = null;}
122
+ }
123
+
124
+ function status() {
125
+ return {ready: true, backend: model.backend, precision: model.precision,
126
+ model: model.manifest.model, on_device: true, language_ready: Boolean(model.audio), sound_ready: Boolean(model.sound)};
127
+ }
128
+
129
+ function optionsFor(q) {
130
+ if (!q || typeof q !== 'object' || typeof q.instructions !== 'string' || !q.instructions.trim()) throw new Error('各質問にinstructions(質問文)を指定してください。');
131
+ if (q.instructions.length > 2000) throw new Error('質問文は2000文字以内にしてください。');
132
+ let pairs;
133
+ if (q.type === 'noul') {
134
+ const c = q.criteria ?? {false: 'いいえ。その条件を満たさない。', true: 'はい。その条件を満たす。'};
135
+ if (!c || Array.isArray(c) || Object.keys(c).sort().join(',') !== 'false,true') throw new Error('Noulのcriteriaにはfalseとtrueを指定してください。');
136
+ pairs = [['false', c.false], ['true', c.true]];
137
+ } else if (q.type === 'choice') {
138
+ if (!q.criteria || typeof q.criteria !== 'object' || Array.isArray(q.criteria)) throw new Error('Choiceのcriteriaは候補IDと説明のオブジェクトです。');
139
+ pairs = Object.entries(q.criteria);
140
+ if (pairs.length < 2 || pairs.length > 32) throw new Error('Choiceの候補数は2〜32個です。');
141
+ } else if (q.type === 'score') {
142
+ if (!Array.isArray(q.criteria) || q.criteria.length < 2 || q.criteria.length > 10) throw new Error('Scoreのcriteriaは2〜10段階の説明を順に並べた配列です。');
143
+ pairs = q.criteria.map((value, index) => [String(index), value]);
144
+ } else throw new Error('typeはnoul・choice・scoreのいずれかです。');
145
+ if (pairs.some(([key, value]) => !key || typeof value !== 'string' || !value.trim() || value.length > 1000)) throw new Error('各候補には空でない説明を1000文字以内で指定してください。');
146
+ return pairs;
147
+ }
148
+
149
+ function contains(text, alias) {
150
+ const value = text.toLocaleLowerCase().replace(/\s+/g, ' ').trim();
151
+ const target = alias.toLocaleLowerCase().replace(/\s+/g, ' ').trim();
152
+ if (/^[\x00-\x7F]+$/.test(target) && /[a-z]/.test(target)) {
153
+ const escaped = target.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
154
+ return new RegExp(`(^|[^a-z])${escaped}([^a-z]|$)`).test(value);
155
+ }
156
+ return value.includes(target);
157
+ }
158
+
159
+ function labelsIn(text, allowed) {
160
+ return allowed.filter(label => ALIASES[label].some(alias => contains(text, alias)));
161
+ }
162
+
163
+ function hasAny(text, cues) { return cues.some(cue => contains(text, cue)); }
164
+ function operatorFor(text) { return hasAny(text, OR_CUES) ? 'or' : 'and'; }
165
+ function isNegative(text) { return hasAny(text, NEGATIVE_CUES); }
166
+
167
+ function softmax(values) {
168
+ const maximum = Math.max(...values);
169
+ const exponentials = values.map(value => Math.exp(value - maximum));
170
+ const total = exponentials.reduce((sum, value) => sum + value, 0);
171
+ return exponentials.map(value => value / total);
172
+ }
173
+
174
+ async function learnedRoute(contextVector, questionVector, optionVectors, count) {
175
+ const inputs = {
176
+ context: new ort.Tensor('float32', contextVector, [1, 256]),
177
+ question: new ort.Tensor('float32', questionVector, [1, 256]),
178
+ options: new ort.Tensor('float32', optionVectors, [1, count, 256]),
179
+ };
180
+ const core = await model.routers[0].run(inputs);
181
+ const natural = await model.routers[1].run(inputs);
182
+ const mix = (left, right) => Array.from(left, (value, index) => 0.4 * value + 0.6 * right[index]);
183
+ const questionLogits = mix(core.question_logits.data, natural.question_logits.data);
184
+ const optionLogits = mix(core.option_logits.data, natural.option_logits.data);
185
+ const weights = softmax(questionLogits);
186
+ const optionWeights = Array.from({length: count}, (_, index) =>
187
+ softmax(optionLogits.slice(index * 3, index * 3 + 3)));
188
+ const entropy = -weights.reduce((sum, value) => sum + value * Math.log(Math.max(value, 1e-12)), 0) / Math.log(3);
189
+ const both = weights[2] >= 0.10 || entropy >= 0.40;
190
+ const mode = both ? 'joint' : (weights[0] >= weights[1] ? 'language' : 'sound');
191
+ return {mode, weights, optionWeights, entropy};
192
+ }
193
+
194
+ function publicRoute(route) {
195
+ const experts = route.mode === 'language' ? ['speech'] : route.mode === 'sound' ? ['nonverbal'] : ['speech', 'nonverbal'];
196
+ const value = {mode: route.mode, experts, method: 'learned_sparse_router_ensemble_v1', entropy: Number(route.entropy.toFixed(4)),
197
+ weights: Object.fromEntries(['speech', 'nonverbal', 'joint'].map((name, index) => [name, Number(route.weights[index].toFixed(4))]))};
198
+ if (route.mode === 'joint') value.fusion = 'learned_option_weighted_logit_fusion_v1';
199
+ return value;
200
+ }
201
+
202
+ function typedAnswer(question, pairs, probabilities) {
203
+ const total = probabilities.reduce((sum, value) => sum + value, 0);
204
+ const ps = probabilities.map(value => value / total);
205
+ const entropy = -ps.reduce((sum, value) => sum + (value ? value * Math.log(value) : 0), 0) / Math.log(ps.length);
206
+ const answer = {type: question.type, probabilities: Object.fromEntries(pairs.map(([key], index) => [key, ps[index]])),
207
+ confidence: Math.max(0, Math.min(1, 1 - entropy)), confidence_kind: 'normalized_entropy_not_calibrated'};
208
+ if (question.type === 'noul') answer.noul = ps[1];
209
+ else if (question.type === 'choice') answer.choice = pairs[ps.indexOf(Math.max(...ps))][0];
210
+ else {answer.score = ps.reduce((sum, value, index) => sum + index * value, 0); answer.legend = Object.fromEntries(pairs);}
211
+ return answer;
212
+ }
213
+
214
+ async function textVector(value, warnings) {
215
+ if (textCache.has(value)) {
216
+ if (truncatedTexts.has(value)) warnings.add('長い文はモデルの上限128トークンに切り詰めました。');
217
+ return textCache.get(value);
218
+ }
219
+ const tokenized = model.tokenizer.encode(value, {add_special_tokens: true});
220
+ let tokens = Array.from(tokenized.ids);
221
+ if (tokens.length > 128) {truncatedTexts.add(value); tokens = [...tokens.slice(0, 127), 2]; warnings.add('長い文はモデルの上限128トークンに切り詰めました。');}
222
+ const ids = new BigInt64Array(128); ids.fill(3n);
223
+ const mask = new BigInt64Array(128);
224
+ tokens.forEach((token, index) => {ids[index] = BigInt(token); mask[index] = 1n;});
225
+ const output = await model.text.run({input_ids: new ort.Tensor('int64', ids, [1, 128]), attention_mask: new ort.Tensor('int64', mask, [1, 128])});
226
+ const vector = Float32Array.from(output.features.data); textCache.set(value, vector);
227
+ if (textCache.size > 512) {const key = textCache.keys().next().value; textCache.delete(key); truncatedTexts.delete(key);}
228
+ return vector;
229
+ }
230
+
231
+ function qwenWindows(samples) {
232
+ const width = 80000, hop = 40000;
233
+ const last = Math.max(0, samples.length - width); const starts = [];
234
+ for (let index = 0; index <= last; index += hop) starts.push(index);
235
+ if (!starts.length || starts.at(-1) !== last) starts.push(last);
236
+ return starts.map(start => samples.slice(start, Math.min(start + width, samples.length)));
237
+ }
238
+
239
+ async function qwenFeatures(samples) {
240
+ const language = await loadLanguage();
241
+ const windows = qwenWindows(samples); const features = new Float32Array(windows.length * 2048);
242
+ for (let index = 0; index < windows.length; index += 1) {
243
+ progress(`端末内で発話を分析中 ${index + 1}/${windows.length}`);
244
+ const extracted = await model.qwenExtractor(windows[index], {max_length: 80000});
245
+ const mel = Float32Array.from(extracted.input_features.data);
246
+ const output = await language.audio.run({input_features: new ort.Tensor('float32', mel, [128, 500])});
247
+ features.set(output.pooled_features.data, index * 2048);
248
+ }
249
+ return {features, count: windows.length};
250
+ }
251
+
252
+ function clapStarts(length) {
253
+ const count = Math.min(3, Math.max(1, Math.ceil(length / 480000)));
254
+ const last = Math.max(0, length - 480000);
255
+ if (count === 1) return [0];
256
+ return Array.from({length: count}, (_, index) => Math.trunc(index * last / (count - 1)));
257
+ }
258
+
259
+ async function clapScores(samples48k) {
260
+ const sound = await loadSound();
261
+ const starts = clapStarts(samples48k.length); const embeddings = [];
262
+ for (let index = 0; index < starts.length; index += 1) {
263
+ progress(`端末内で音を分析中 ${index + 1}/${starts.length}`);
264
+ const wave = samples48k.slice(starts[index], Math.min(starts[index] + 480000, samples48k.length));
265
+ const extracted = await model.clapExtractor(wave);
266
+ const mel = Float32Array.from(extracted.input_features.data);
267
+ const output = await sound.audio.run({input_features: new ort.Tensor('float32', mel, [1, 1, 1001, 64])});
268
+ embeddings.push(Float32Array.from(output.audio_embeds.data));
269
+ }
270
+ const feature = new Float32Array(1024);
271
+ for (let dimension = 0; dimension < 512; dimension += 1) {
272
+ let sum = 0, maximum = -Infinity;
273
+ for (const embedding of embeddings) {sum += embedding[dimension]; maximum = Math.max(maximum, embedding[dimension]);}
274
+ feature[dimension] = sum / embeddings.length; feature[512 + dimension] = maximum;
275
+ }
276
+ const output = await sound.heads.run({features: new ort.Tensor('float32', feature, [1, 1024])});
277
+ const sigmoid = values => Array.from(values, value => 1 / (1 + Math.exp(-value)));
278
+ const broadValues = sigmoid(output.broad_logits.data);
279
+ const animalValues = sigmoid(output.animal_logits.data);
280
+ return {broad: Object.fromEntries(['animal', 'nature', 'music', 'environment', 'dog', 'cat', 'bird', 'insect']
281
+ .map((label, index) => [label, broadValues[index]])),
282
+ animal8: Object.fromEntries(ANIMAL8.map((label, index) => [label, animalValues[index]])),
283
+ windows: starts.length};
284
+ }
285
+
286
+ function allSoundLabels(text) { return [...labelsIn(text, BROAD), ...labelsIn(text, ANIMAL8)]; }
287
+ function labelScore(label, scores) {
288
+ const value = Number(scores[ANIMAL8.includes(label) ? 'animal8' : 'broad'][label]);
289
+ if (!Number.isFinite(value)) throw new Error('音の判定値が不正です。');
290
+ return Math.max(0, Math.min(1, value));
291
+ }
292
+ function combineProbabilities(values, operator) {
293
+ if (!values.length) throw new Error('対応する音の種類を質問に指定してください。');
294
+ return operator === 'or' ? 1 - values.reduce((product, value) => product * (1 - value), 1)
295
+ : values.reduce((product, value) => product * value, 1);
296
+ }
297
+ function soundProbability(text, labels, scores, operator) {
298
+ const value = combineProbabilities(labels.map(label => labelScore(label, scores)), operator);
299
+ return isNegative(text) ? 1 - value : value;
300
+ }
301
+ function poissonBinomial(values) {
302
+ let distribution = [1];
303
+ for (const value of values) {
304
+ const next = new Array(distribution.length + 1).fill(0);
305
+ distribution.forEach((probability, count) => {
306
+ next[count] += probability * (1 - value); next[count + 1] += probability * value;
307
+ });
308
+ distribution = next;
309
+ }
310
+ return distribution;
311
+ }
312
+ function soundLikelihoods(question, pairs, scores) {
313
+ const instructionLabels = allSoundLabels(question.instructions);
314
+ const optionLabels = pairs.map(([, description]) => allSoundLabels(description));
315
+ if (question.type === 'score' && instructionLabels.length && pairs.length === instructionLabels.length + 1) {
316
+ return poissonBinomial(instructionLabels.map(label => labelScore(label, scores)));
317
+ }
318
+ const values = pairs.map(([, description], index) => optionLabels[index].length
319
+ ? soundProbability(description, optionLabels[index], scores, operatorFor(description)) : null);
320
+ if (values.some(value => value !== null)) return values.map(value => value === null ? 1 : value);
321
+ const labels = instructionLabels.length ? instructionLabels
322
+ : allSoundLabels([question.instructions, ...pairs.map(([, value]) => value)].join('\n'));
323
+ if (!labels.length) throw new Error('質問に対応する音の種類を指定してください。');
324
+ const probability = soundProbability(question.instructions, labels, scores, operatorFor(question.instructions));
325
+ if (pairs.length === 2) return [1 - probability, probability];
326
+ if (question.type === 'score') {
327
+ const maximum = pairs.length - 1;
328
+ return pairs.map((_, index) => (1 - probability) * (1 - index / maximum) + probability * (index / maximum));
329
+ }
330
+ throw new Error('音のChoiceでは、各選択肢が表す音を説明してください。');
331
+ }
332
+ function soundAnswer(question, pairs, scores) {
333
+ if (question.type === 'noul') {
334
+ const labels = allSoundLabels(question.instructions);
335
+ const fallback = labels.length ? labels : allSoundLabels([question.instructions, ...pairs.map(([, value]) => value)].join('\n'));
336
+ const value = soundProbability(question.instructions, fallback, scores, operatorFor(question.instructions));
337
+ return typedAnswer(question, pairs, [1 - value, value]);
338
+ }
339
+ return typedAnswer(question, pairs, soundLikelihoods(question, pairs, scores));
340
+ }
341
+ function fuseAnswer(question, pairs, languageAnswer, scores, route) {
342
+ const language = pairs.map(([key]) => Number(languageAnswer.probabilities[key]));
343
+ const acoustic = soundLikelihoods(question, pairs, scores);
344
+ const combined = pairs.map((_, index) => {
345
+ const [speechWeight, nonverbalWeight, jointWeight] = route.optionWeights[index];
346
+ const languageWeight = speechWeight + 0.5 * jointWeight;
347
+ const soundWeight = nonverbalWeight + 0.5 * jointWeight;
348
+ return languageWeight * Math.log(Math.max(language[index], 1e-8))
349
+ + soundWeight * Math.log(Math.max(acoustic[index], 1e-8));
350
+ });
351
+ const answer = typedAnswer(question, pairs, softmax(combined));
352
+ answer.fusion = {method: 'learned_option_weighted_logit_fusion_v1'};
353
+ return answer;
354
+ }
355
+
356
+ async function analyze(samples, samples48k, context, questions) {
357
+ if (!(samples instanceof Float32Array)) samples = new Float32Array(samples);
358
+ if (!(samples48k instanceof Float32Array)) samples48k = new Float32Array(samples48k || []);
359
+ if (samples.length < 4000 || samples.length > 480000 || samples.some(value => !Number.isFinite(value))) throw new Error('音声は0.25秒〜30秒の範囲で入力してください。');
360
+ if (samples48k.length < 12000 || samples48k.length > 1440000 || samples48k.some(value => !Number.isFinite(value))) throw new Error('音声の端��内変換に失敗しました。音声を選び直してください。');
361
+ if (typeof context !== 'string' || context.length > 2000) throw new Error('文脈は2000文字以内にしてください。');
362
+ if (!questions || typeof questions !== 'object' || Array.isArray(questions)) throw new Error('質問セットにはJSONオブジェクトを指定してください。');
363
+ const entries = Object.entries(questions);
364
+ if (!entries.length || entries.length > 16) throw new Error('質問数は1〜16個にしてください。');
365
+ const pairs = entries.map(([, question]) => optionsFor(question));
366
+ await load();
367
+ const started = performance.now(); const warnings = new Set(); const answers = Object.create(null);
368
+ const contextVector = await textVector(context, warnings);
369
+ const questionVectors = []; const optionVectorsByQuestion = []; const routes = [];
370
+ for (let index = 0; index < entries.length; index += 1) {
371
+ const [, question] = entries[index]; const choices = pairs[index];
372
+ const questionVector = await textVector(question.instructions, warnings);
373
+ const optionVectors = new Float32Array(choices.length * 256);
374
+ for (let option = 0; option < choices.length; option += 1) {
375
+ optionVectors.set(await textVector(choices[option][1], warnings), option * 256);
376
+ }
377
+ questionVectors.push(questionVector); optionVectorsByQuestion.push(optionVectors);
378
+ routes.push(await learnedRoute(contextVector, questionVector, optionVectors, choices.length));
379
+ }
380
+
381
+ let qwenCount = 0, qwenMs = 0;
382
+ if (routes.some(route => route.mode === 'language' || route.mode === 'joint')) {
383
+ const qwenStarted = performance.now();
384
+ const audio = await qwenFeatures(samples); qwenCount = audio.count;
385
+ for (let index = 0; index < entries.length; index += 1) {
386
+ if (routes[index].mode === 'sound') continue;
387
+ const [name, question] = entries[index]; const choices = pairs[index];
388
+ progress(`質問を判定中 ${index + 1}/${entries.length}`);
389
+ const output = await model.head.run({
390
+ audio: new ort.Tensor('float32', audio.features, [1, audio.count, 2048]),
391
+ audio_mask: new ort.Tensor('bool', new Uint8Array(audio.count).fill(1), [1, audio.count]),
392
+ context: new ort.Tensor('float32', contextVector, [1, 256]),
393
+ question: new ort.Tensor('float32', questionVectors[index], [1, 256]),
394
+ options: new ort.Tensor('float32', optionVectorsByQuestion[index], [1, choices.length, 256]),
395
+ option_mask: new ort.Tensor('bool', new Uint8Array(choices.length).fill(1), [1, choices.length]),
396
+ is_noul: new ort.Tensor('bool', new Uint8Array([question.type === 'noul' ? 1 : 0]), [1]),
397
+ });
398
+ const logits = Array.from(output.logits.data); const maximum = Math.max(...logits);
399
+ const exponentials = logits.map(value => Math.exp(value - maximum)); const total = exponentials.reduce((sum, value) => sum + value, 0);
400
+ answers[name] = typedAnswer(question, choices, exponentials.map(value => value / total));
401
+ }
402
+ qwenMs = performance.now() - qwenStarted;
403
+ }
404
+
405
+ let clapWindows = 0, clapMs = 0;
406
+ if (routes.some(route => route.mode === 'sound' || route.mode === 'joint')) {
407
+ const clapStarted = performance.now(); const scores = await clapScores(samples48k); clapWindows = scores.windows;
408
+ for (let index = 0; index < entries.length; index += 1) {
409
+ const route = routes[index]; if (route.mode === 'language') continue;
410
+ const [name, question] = entries[index];
411
+ answers[name] = route.mode === 'joint'
412
+ ? fuseAnswer(question, pairs[index], answers[name], scores, route)
413
+ : soundAnswer(question, pairs[index], scores);
414
+ }
415
+ clapMs = performance.now() - clapStarted;
416
+ }
417
+
418
+ return {model: 'mocovoice-audio-jev-edge-qwen-noulmatch-clap-learned-router-v6', execution: {...status(), audio_sent_to_server: false}, answers,
419
+ evidence: {audio_duration_ms: samples.length / 16, qwen_windows: qwenCount, clap_windows: clapWindows,
420
+ shared_audio_encoders: ['Qwen/Qwen3-ASR-0.6B', 'laion/clap-htsat-unfused'], audio_reused_across_questions: true,
421
+ question_routing: Object.fromEntries(entries.map(([name], index) => [name, publicRoute(routes[index])]))},
422
+ latency_ms: {qwen: qwenMs, clap: clapMs, total: performance.now() - started}, warnings: [...warnings],
423
+ scope: '研究用試作。未知タスクへの正確さと確率校正は未検証。'};
424
+ }
425
+
426
+ let queue = Promise.resolve();
427
+ onmessage = ({data}) => {
428
+ queue = queue.then(async () => {
429
+ currentId = data.id;
430
+ try {
431
+ const result = data.type === 'load' ? await load(data.backend) : await analyze(data.samples, data.samples48k, data.context, data.questions);
432
+ postMessage({id: data.id, result});
433
+ } catch (error) {postMessage({id: data.id, error: error.message || String(error)});}
434
+ });
435
+ };
inference.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Only model assets leave/enter the network. User inputs go to a local Worker.
2
+ let worker;
3
+ let serial = 0;
4
+ const pending = new Map();
5
+ function client() {
6
+ if (!worker) {
7
+ worker = new Worker(new URL('./inference-worker.js?v=20260921-preload-all-v1', import.meta.url), {type: 'module'});
8
+ worker.onmessage = ({data}) => {
9
+ const call = pending.get(data.id);
10
+ if (!call) return;
11
+ if (data.progress) { call.onProgress?.(data.progress); return; }
12
+ pending.delete(data.id);
13
+ data.error ? call.reject(new Error(data.error)) : call.resolve(data.result);
14
+ };
15
+ worker.onerror = event => {
16
+ for (const call of pending.values()) call.reject(new Error(event.message || 'ブラウザ内の推論処理に失敗しました。'));
17
+ pending.clear(); worker.terminate(); worker = null;
18
+ };
19
+ }
20
+ return worker;
21
+ }
22
+ function request(type, payload, onProgress) {
23
+ const id = ++serial;
24
+ return new Promise((resolve, reject) => {
25
+ pending.set(id, {resolve, reject, onProgress});
26
+ client().postMessage({id, type, ...payload});
27
+ });
28
+ }
29
+ export function loadModel({onProgress, backend = 'auto'} = {}) {
30
+ return request('load', {backend}, onProgress);
31
+ }
32
+ export function analyze(samples16k, samples48k, context, questions, {onProgress} = {}) {
33
+ return request('analyze', {samples: samples16k, samples48k, context, questions}, onProgress);
34
+ }
licenses/LINE-Seed-OFL.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2020-2022 LY Corporation
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
licenses/clap-Apache-2.0.txt ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
licenses/clap-NOTICE.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CLAP runtime notice
2
+
3
+ The Cloud non-verbal branch uses laion/clap-htsat-unfused at revision
4
+ 8fa0f1c6d0433df6e97c127f64b2a1d6c0dcda8a. Its model distribution is
5
+ Apache-2.0 according to the pinned model card.
6
+
7
+ Source: https://huggingface.co/laion/clap-htsat-unfused/tree/8fa0f1c6d0433df6e97c127f64b2a1d6c0dcda8a
8
+ License: https://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ The bundled supervised heads are project artifacts:
11
+ - clap_sound_v1.pt: broad labels animal, nature, music, environment
12
+ - clap_animal8_oof_v1.pt: dog, cat, bird, insect, chicken_and_rooster, crow,
13
+ frog, cricket
licenses/hubert-Apache-2.0.txt ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
licenses/irodori-MIT.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aratako
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
licenses/irodori-model-card.md ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ja
5
+ pipeline_tag: text-to-speech
6
+ tags:
7
+ - speech
8
+ - voice
9
+ - tts
10
+ base_model:
11
+ - Aratako/Irodori-TTS-500M-v2
12
+ ---
13
+
14
+ # Irodori-TTS-500M-v3
15
+
16
+ [![Code](https://img.shields.io/badge/Code-GitHub-black)](https://github.com/Aratako/Irodori-TTS) [![WandB](https://img.shields.io/badge/Training%20Log-WandB-orange)](https://api.wandb.ai/links/aratako-lm/2ctrvcim) [![Demo Space](https://img.shields.io/badge/Demo-HuggingFace%20Space-blue)](https://huggingface.co/spaces/Aratako/Irodori-TTS-500M-v3-Demo)
17
+
18
+ **Irodori-TTS-500M-v3** is a Japanese Text-to-Speech model based on a Rectified Flow Diffusion Transformer (RF-DiT) architecture. The architecture and training design largely follow [Echo-TTS](https://jordandarefsky.com/blog/2025/echo/), using continuous latents as the generation target. It supports zero-shot voice cloning from reference audio.
19
+
20
+ A unique feature of this model is **emoji-based style and sound effect control** — by inserting specific emojis into the input text, you can control speaking styles, emotions, and even sound effects in the generated audio.
21
+
22
+ ## 🌟 Key Features
23
+
24
+ * **Flow Matching TTS:** Rectified Flow Diffusion Transformer over continuous DACVAE latents for high-quality Japanese speech synthesis.
25
+ * **Voice Cloning:** Zero-shot voice cloning from a short reference audio clip.
26
+ * **Emoji-based Style Control:** Control speaking styles, emotions, and sound effects by embedding emojis directly in the input text. See [`EMOJI_ANNOTATIONS.md`](EMOJI_ANNOTATIONS.md) for the full list of supported emojis and their effects.
27
+
28
+ ## ✨ What's New in v3
29
+
30
+ This version brings several major improvements over the previous v2 model:
31
+
32
+ * **Variable-length Training & Duration Predictor:** Transitioned from fixed-length to variable-length training and introduced a Duration Predictor. This improves training efficiency and enhances the Real-Time Factor (RTF) during inference.
33
+ * **Expanded Training Data:** The model was trained on a larger dataset, resulting in more natural speech synthesis and improved robustness across various speaking styles.
34
+ * **Integrated Watermarking:** Integrated [SilentCipher](https://github.com/sony/silentcipher) to apply robust, invisible audio watermarks directly to the generated outputs, promoting responsible AI usage.
35
+
36
+ ## 🏗️ Architecture
37
+
38
+ The model (approximately 500M parameters) consists of four main components:
39
+
40
+ 1. **Text Encoder:** Token embeddings initialized from [llm-jp/llm-jp-3-150m](https://huggingface.co/llm-jp/llm-jp-3-150m), followed by self-attention + SwiGLU transformer layers with RoPE.
41
+ 2. **Reference Latent Encoder:** Encodes patched reference audio latents for speaker/style conditioning via self-attention + SwiGLU layers.
42
+ 3. **Diffusion Transformer:** Joint-attention DiT blocks with Low-Rank AdaLN (timestep-conditioned adaptive layer normalization), half-RoPE, and SwiGLU MLPs.
43
+ 4. **Duration Predictor:** Predicts audio duration from encoded text and speaker conditioning using stacked SwiGLU MLP blocks.
44
+
45
+ Audio is represented as continuous latent sequences via the [Aratako/Semantic-DACVAE-Japanese-32dim](https://huggingface.co/Aratako/Semantic-DACVAE-Japanese-32dim) codec (32-dim), enabling high-quality 48kHz waveform reconstruction.
46
+
47
+ ## 🎧 Audio Samples
48
+
49
+ ### 1\. Standard TTS
50
+
51
+ Basic Japanese text-to-speech generation (without reference audio).
52
+
53
+ | Case | Text | Generated Audio |
54
+ | :--- | :--- | :--- |
55
+ | **Sample 1** | "お電話ありがとうございます。ただいま電話が大変混み合っております。恐れ入りますが、発信音のあとに、ご用件をお話しください。" | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/standard_sample1.wav"></audio> |
56
+ | **Sample 2** | "その森には、古い言い伝えがありました。月が最も高く昇る夜、静かに耳を澄ませば、風の歌声が聞こえるというのです。私は半信半疑でしたが、その夜、確かに誰かが私を呼ぶ声を聞いたのです。" | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/standard_sample2.wav"></audio> |
57
+
58
+ ### 2\. Emoji Annotation Control
59
+
60
+ Examples of controlling speaking style and effects with emojis. For the full list of supported emojis, see [`EMOJI_ANNOTATIONS.md`](EMOJI_ANNOTATIONS.md).
61
+
62
+ | Case | Text (with Emoji) | Generated Audio |
63
+ | :--- | :--- | :--- |
64
+ | **Sample 1** | なーに、どうしたの?…え?もっと近づいてほしい?…👂😮‍💨👂😮‍💨こういうのが好きなんだ? | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/emoji_sample1.wav"></audio> |
65
+ | **Sample 2** | うぅ…😭そんなに酷いこと、言わないで…😭 | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/emoji_sample2.wav"></audio> |
66
+ | **Sample 3** | 🤧🤧ごめんね、風邪引いちゃってて🤧…大丈夫、ただの風邪だ��らすぐ治るよ🥺 | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/emoji_sample3.wav"></audio> |
67
+
68
+ ### 3\. Voice Cloning (Zero-shot)
69
+
70
+ Examples of cloning a voice from a reference audio clip.
71
+
72
+ | Case | Reference Audio | Generated Audio |
73
+ | :--- | :--- | :--- |
74
+ | **Example 1** | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/clone_ref1.wav"></audio> | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/clone_gen1.wav"></audio> |
75
+ | **Example 2** | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/clone_ref2.wav"></audio> | <audio controls src="https://huggingface.co/Aratako/Irodori-TTS-500M-v3/resolve/main/samples/clone_gen2.wav"></audio> |
76
+
77
+ ## 🚀 Usage
78
+
79
+ For inference code, installation instructions, and training scripts, please refer to the GitHub repository:
80
+
81
+ 👉 **[GitHub: Aratako/Irodori-TTS](https://github.com/Aratako/Irodori-TTS)**
82
+
83
+ ## 📊 Training Data & Annotation
84
+
85
+ The model was trained on an expanded, high-quality Japanese speech dataset. To enable the emoji-based style control, the training texts were enriched with emoji annotations. These annotations were automatically generated and labeled using a fine-tuned model based on [Qwen/Qwen3-Omni-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Omni-30B-A3B-Instruct).
86
+
87
+ ## ⚠️ Limitations
88
+
89
+ - **Japanese Only:** This model currently supports Japanese text input only.
90
+ - **Emoji Control:** While emoji-based style control adds expressiveness, the effect may vary depending on context and is not always perfectly consistent.
91
+ - **Audio Quality:** Quality depends on training data characteristics. Performance may vary for voices or speaking styles underrepresented in the training data.
92
+ - **Kanji Reading Accuracy:** The model's ability to accurately read Kanji is relatively weak compared to other TTS models of a similar size. You may need to convert complex Kanji into Hiragana or Katakana beforehand.
93
+
94
+ ## 📜 License & Ethical Restrictions
95
+
96
+ ### License
97
+
98
+ This model is released under **[MIT](https://choosealicense.com/licenses/mit/)**.
99
+
100
+ ### Ethical Restrictions
101
+
102
+ In addition to the license terms, the following ethical restrictions apply:
103
+
104
+ 1. **No Impersonation:** Do not use this model to clone or impersonate the voice of any individual (e.g., voice actors, celebrities, public figures) without their explicit consent.
105
+ 2. **No Misinformation:** Do not use this model to generate deepfakes or synthetic speech intended to mislead others or spread misinformation.
106
+ 3. **Voice Generation Disclaimer:** When generating speech purely from text without using a reference audio, it is possible that the generated voice may coincidentally resemble that of a real person. This is strictly a probabilistic artifact within the latent space. The model was not trained with the intent of reproducing specific individuals.
107
+ 4. **Liability Disclaimer:** The developers assume no liability for any misuse of this model. Users are solely responsible for ensuring their use of the generated content complies with applicable laws and regulations in their jurisdiction.
108
+
109
+ ## 🙏 Acknowledgments
110
+
111
+ This project builds upon the following works:
112
+
113
+ - [Echo-TTS](https://jordandarefsky.com/blog/2025/echo/) — Architecture and training design reference
114
+ - [DACVAE](https://github.com/facebookresearch/dacvae) — Audio VAE
115
+ - [llm-jp/llm-jp-3-150m](https://huggingface.co/llm-jp/llm-jp-3-150m) — Tokenizer and embedding weight initialization
116
+ - [SilentCipher](https://github.com/sony/silentcipher) — Audio watermarking integration
117
+
118
+ We would also like to extend our special thanks to **[Respair](https://huggingface.co/Respair)** for the inspiration behind the emoji annotation feature, and to [gabrielclark3330](https://huggingface.co/gabrielclark3330) for supporting this project.
119
+
120
+ ## 🖊️ Citation
121
+
122
+ If you use Irodori-TTS-v3 in your research or project, please cite it as follows:
123
+
124
+ ```bibtex
125
+ @misc{irodori-tts-v3,
126
+ author = {Chihiro Arata},
127
+ title = {Irodori-TTS: A Flow Matching-based Text-to-Speech Model with Emoji-driven Style Control},
128
+ year = {2026},
129
+ publisher = {Hugging Face},
130
+ journal = {Hugging Face repository},
131
+ howpublished = {\url{https://huggingface.co/Aratako/Irodori-TTS-500M-v3}}
132
+ }
licenses/jszip.txt ADDED
@@ -0,0 +1,651 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3
2
+ license.
3
+
4
+ The MIT License
5
+ ===============
6
+
7
+ Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+
27
+
28
+ GPL version 3
29
+ =============
30
+
31
+ GNU GENERAL PUBLIC LICENSE
32
+ Version 3, 29 June 2007
33
+
34
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
35
+ Everyone is permitted to copy and distribute verbatim copies
36
+ of this license document, but changing it is not allowed.
37
+
38
+ Preamble
39
+
40
+ The GNU General Public License is a free, copyleft license for
41
+ software and other kinds of works.
42
+
43
+ The licenses for most software and other practical works are designed
44
+ to take away your freedom to share and change the works. By contrast,
45
+ the GNU General Public License is intended to guarantee your freedom to
46
+ share and change all versions of a program--to make sure it remains free
47
+ software for all its users. We, the Free Software Foundation, use the
48
+ GNU General Public License for most of our software; it applies also to
49
+ any other work released this way by its authors. You can apply it to
50
+ your programs, too.
51
+
52
+ When we speak of free software, we are referring to freedom, not
53
+ price. Our General Public Licenses are designed to make sure that you
54
+ have the freedom to distribute copies of free software (and charge for
55
+ them if you wish), that you receive source code or can get it if you
56
+ want it, that you can change the software or use pieces of it in new
57
+ free programs, and that you know you can do these things.
58
+
59
+ To protect your rights, we need to prevent others from denying you
60
+ these rights or asking you to surrender the rights. Therefore, you have
61
+ certain responsibilities if you distribute copies of the software, or if
62
+ you modify it: responsibilities to respect the freedom of others.
63
+
64
+ For example, if you distribute copies of such a program, whether
65
+ gratis or for a fee, you must pass on to the recipients the same
66
+ freedoms that you received. You must make sure that they, too, receive
67
+ or can get the source code. And you must show them these terms so they
68
+ know their rights.
69
+
70
+ Developers that use the GNU GPL protect your rights with two steps:
71
+ (1) assert copyright on the software, and (2) offer you this License
72
+ giving you legal permission to copy, distribute and/or modify it.
73
+
74
+ For the developers' and authors' protection, the GPL clearly explains
75
+ that there is no warranty for this free software. For both users' and
76
+ authors' sake, the GPL requires that modified versions be marked as
77
+ changed, so that their problems will not be attributed erroneously to
78
+ authors of previous versions.
79
+
80
+ Some devices are designed to deny users access to install or run
81
+ modified versions of the software inside them, although the manufacturer
82
+ can do so. This is fundamentally incompatible with the aim of
83
+ protecting users' freedom to change the software. The systematic
84
+ pattern of such abuse occurs in the area of products for individuals to
85
+ use, which is precisely where it is most unacceptable. Therefore, we
86
+ have designed this version of the GPL to prohibit the practice for those
87
+ products. If such problems arise substantially in other domains, we
88
+ stand ready to extend this provision to those domains in future versions
89
+ of the GPL, as needed to protect the freedom of users.
90
+
91
+ Finally, every program is threatened constantly by software patents.
92
+ States should not allow patents to restrict development and use of
93
+ software on general-purpose computers, but in those that do, we wish to
94
+ avoid the special danger that patents applied to a free program could
95
+ make it effectively proprietary. To prevent this, the GPL assures that
96
+ patents cannot be used to render the program non-free.
97
+
98
+ The precise terms and conditions for copying, distribution and
99
+ modification follow.
100
+
101
+ TERMS AND CONDITIONS
102
+
103
+ 0. Definitions.
104
+
105
+ "This License" refers to version 3 of the GNU General Public License.
106
+
107
+ "Copyright" also means copyright-like laws that apply to other kinds of
108
+ works, such as semiconductor masks.
109
+
110
+ "The Program" refers to any copyrightable work licensed under this
111
+ License. Each licensee is addressed as "you". "Licensees" and
112
+ "recipients" may be individuals or organizations.
113
+
114
+ To "modify" a work means to copy from or adapt all or part of the work
115
+ in a fashion requiring copyright permission, other than the making of an
116
+ exact copy. The resulting work is called a "modified version" of the
117
+ earlier work or a work "based on" the earlier work.
118
+
119
+ A "covered work" means either the unmodified Program or a work based
120
+ on the Program.
121
+
122
+ To "propagate" a work means to do anything with it that, without
123
+ permission, would make you directly or secondarily liable for
124
+ infringement under applicable copyright law, except executing it on a
125
+ computer or modifying a private copy. Propagation includes copying,
126
+ distribution (with or without modification), making available to the
127
+ public, and in some countries other activities as well.
128
+
129
+ To "convey" a work means any kind of propagation that enables other
130
+ parties to make or receive copies. Mere interaction with a user through
131
+ a computer network, with no transfer of a copy, is not conveying.
132
+
133
+ An interactive user interface displays "Appropriate Legal Notices"
134
+ to the extent that it includes a convenient and prominently visible
135
+ feature that (1) displays an appropriate copyright notice, and (2)
136
+ tells the user that there is no warranty for the work (except to the
137
+ extent that warranties are provided), that licensees may convey the
138
+ work under this License, and how to view a copy of this License. If
139
+ the interface presents a list of user commands or options, such as a
140
+ menu, a prominent item in the list meets this criterion.
141
+
142
+ 1. Source Code.
143
+
144
+ The "source code" for a work means the preferred form of the work
145
+ for making modifications to it. "Object code" means any non-source
146
+ form of a work.
147
+
148
+ A "Standard Interface" means an interface that either is an official
149
+ standard defined by a recognized standards body, or, in the case of
150
+ interfaces specified for a particular programming language, one that
151
+ is widely used among developers working in that language.
152
+
153
+ The "System Libraries" of an executable work include anything, other
154
+ than the work as a whole, that (a) is included in the normal form of
155
+ packaging a Major Component, but which is not part of that Major
156
+ Component, and (b) serves only to enable use of the work with that
157
+ Major Component, or to implement a Standard Interface for which an
158
+ implementation is available to the public in source code form. A
159
+ "Major Component", in this context, means a major essential component
160
+ (kernel, window system, and so on) of the specific operating system
161
+ (if any) on which the executable work runs, or a compiler used to
162
+ produce the work, or an object code interpreter used to run it.
163
+
164
+ The "Corresponding Source" for a work in object code form means all
165
+ the source code needed to generate, install, and (for an executable
166
+ work) run the object code and to modify the work, including scripts to
167
+ control those activities. However, it does not include the work's
168
+ System Libraries, or general-purpose tools or generally available free
169
+ programs which are used unmodified in performing those activities but
170
+ which are not part of the work. For example, Corresponding Source
171
+ includes interface definition files associated with source files for
172
+ the work, and the source code for shared libraries and dynamically
173
+ linked subprograms that the work is specifically designed to require,
174
+ such as by intimate data communication or control flow between those
175
+ subprograms and other parts of the work.
176
+
177
+ The Corresponding Source need not include anything that users
178
+ can regenerate automatically from other parts of the Corresponding
179
+ Source.
180
+
181
+ The Corresponding Source for a work in source code form is that
182
+ same work.
183
+
184
+ 2. Basic Permissions.
185
+
186
+ All rights granted under this License are granted for the term of
187
+ copyright on the Program, and are irrevocable provided the stated
188
+ conditions are met. This License explicitly affirms your unlimited
189
+ permission to run the unmodified Program. The output from running a
190
+ covered work is covered by this License only if the output, given its
191
+ content, constitutes a covered work. This License acknowledges your
192
+ rights of fair use or other equivalent, as provided by copyright law.
193
+
194
+ You may make, run and propagate covered works that you do not
195
+ convey, without conditions so long as your license otherwise remains
196
+ in force. You may convey covered works to others for the sole purpose
197
+ of having them make modifications exclusively for you, or provide you
198
+ with facilities for running those works, provided that you comply with
199
+ the terms of this License in conveying all material for which you do
200
+ not control copyright. Those thus making or running the covered works
201
+ for you must do so exclusively on your behalf, under your direction
202
+ and control, on terms that prohibit them from making any copies of
203
+ your copyrighted material outside their relationship with you.
204
+
205
+ Conveying under any other circumstances is permitted solely under
206
+ the conditions stated below. Sublicensing is not allowed; section 10
207
+ makes it unnecessary.
208
+
209
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
210
+
211
+ No covered work shall be deemed part of an effective technological
212
+ measure under any applicable law fulfilling obligations under article
213
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
214
+ similar laws prohibiting or restricting circumvention of such
215
+ measures.
216
+
217
+ When you convey a covered work, you waive any legal power to forbid
218
+ circumvention of technological measures to the extent such circumvention
219
+ is effected by exercising rights under this License with respect to
220
+ the covered work, and you disclaim any intention to limit operation or
221
+ modification of the work as a means of enforcing, against the work's
222
+ users, your or third parties' legal rights to forbid circumvention of
223
+ technological measures.
224
+
225
+ 4. Conveying Verbatim Copies.
226
+
227
+ You may convey verbatim copies of the Program's source code as you
228
+ receive it, in any medium, provided that you conspicuously and
229
+ appropriately publish on each copy an appropriate copyright notice;
230
+ keep intact all notices stating that this License and any
231
+ non-permissive terms added in accord with section 7 apply to the code;
232
+ keep intact all notices of the absence of any warranty; and give all
233
+ recipients a copy of this License along with the Program.
234
+
235
+ You may charge any price or no price for each copy that you convey,
236
+ and you may offer support or warranty protection for a fee.
237
+
238
+ 5. Conveying Modified Source Versions.
239
+
240
+ You may convey a work based on the Program, or the modifications to
241
+ produce it from the Program, in the form of source code under the
242
+ terms of section 4, provided that you also meet all of these conditions:
243
+
244
+ a) The work must carry prominent notices stating that you modified
245
+ it, and giving a relevant date.
246
+
247
+ b) The work must carry prominent notices stating that it is
248
+ released under this License and any conditions added under section
249
+ 7. This requirement modifies the requirement in section 4 to
250
+ "keep intact all notices".
251
+
252
+ c) You must license the entire work, as a whole, under this
253
+ License to anyone who comes into possession of a copy. This
254
+ License will therefore apply, along with any applicable section 7
255
+ additional terms, to the whole of the work, and all its parts,
256
+ regardless of how they are packaged. This License gives no
257
+ permission to license the work in any other way, but it does not
258
+ invalidate such permission if you have separately received it.
259
+
260
+ d) If the work has interactive user interfaces, each must display
261
+ Appropriate Legal Notices; however, if the Program has interactive
262
+ interfaces that do not display Appropriate Legal Notices, your
263
+ work need not make them do so.
264
+
265
+ A compilation of a covered work with other separate and independent
266
+ works, which are not by their nature extensions of the covered work,
267
+ and which are not combined with it such as to form a larger program,
268
+ in or on a volume of a storage or distribution medium, is called an
269
+ "aggregate" if the compilation and its resulting copyright are not
270
+ used to limit the access or legal rights of the compilation's users
271
+ beyond what the individual works permit. Inclusion of a covered work
272
+ in an aggregate does not cause this License to apply to the other
273
+ parts of the aggregate.
274
+
275
+ 6. Conveying Non-Source Forms.
276
+
277
+ You may convey a covered work in object code form under the terms
278
+ of sections 4 and 5, provided that you also convey the
279
+ machine-readable Corresponding Source under the terms of this License,
280
+ in one of these ways:
281
+
282
+ a) Convey the object code in, or embodied in, a physical product
283
+ (including a physical distribution medium), accompanied by the
284
+ Corresponding Source fixed on a durable physical medium
285
+ customarily used for software interchange.
286
+
287
+ b) Convey the object code in, or embodied in, a physical product
288
+ (including a physical distribution medium), accompanied by a
289
+ written offer, valid for at least three years and valid for as
290
+ long as you offer spare parts or customer support for that product
291
+ model, to give anyone who possesses the object code either (1) a
292
+ copy of the Corresponding Source for all the software in the
293
+ product that is covered by this License, on a durable physical
294
+ medium customarily used for software interchange, for a price no
295
+ more than your reasonable cost of physically performing this
296
+ conveying of source, or (2) access to copy the
297
+ Corresponding Source from a network server at no charge.
298
+
299
+ c) Convey individual copies of the object code with a copy of the
300
+ written offer to provide the Corresponding Source. This
301
+ alternative is allowed only occasionally and noncommercially, and
302
+ only if you received the object code with such an offer, in accord
303
+ with subsection 6b.
304
+
305
+ d) Convey the object code by offering access from a designated
306
+ place (gratis or for a charge), and offer equivalent access to the
307
+ Corresponding Source in the same way through the same place at no
308
+ further charge. You need not require recipients to copy the
309
+ Corresponding Source along with the object code. If the place to
310
+ copy the object code is a network server, the Corresponding Source
311
+ may be on a different server (operated by you or a third party)
312
+ that supports equivalent copying facilities, provided you maintain
313
+ clear directions next to the object code saying where to find the
314
+ Corresponding Source. Regardless of what server hosts the
315
+ Corresponding Source, you remain obligated to ensure that it is
316
+ available for as long as needed to satisfy these requirements.
317
+
318
+ e) Convey the object code using peer-to-peer transmission, provided
319
+ you inform other peers where the object code and Corresponding
320
+ Source of the work are being offered to the general public at no
321
+ charge under subsection 6d.
322
+
323
+ A separable portion of the object code, whose source code is excluded
324
+ from the Corresponding Source as a System Library, need not be
325
+ included in conveying the object code work.
326
+
327
+ A "User Product" is either (1) a "consumer product", which means any
328
+ tangible personal property which is normally used for personal, family,
329
+ or household purposes, or (2) anything designed or sold for incorporation
330
+ into a dwelling. In determining whether a product is a consumer product,
331
+ doubtful cases shall be resolved in favor of coverage. For a particular
332
+ product received by a particular user, "normally used" refers to a
333
+ typical or common use of that class of product, regardless of the status
334
+ of the particular user or of the way in which the particular user
335
+ actually uses, or expects or is expected to use, the product. A product
336
+ is a consumer product regardless of whether the product has substantial
337
+ commercial, industrial or non-consumer uses, unless such uses represent
338
+ the only significant mode of use of the product.
339
+
340
+ "Installation Information" for a User Product means any methods,
341
+ procedures, authorization keys, or other information required to install
342
+ and execute modified versions of a covered work in that User Product from
343
+ a modified version of its Corresponding Source. The information must
344
+ suffice to ensure that the continued functioning of the modified object
345
+ code is in no case prevented or interfered with solely because
346
+ modification has been made.
347
+
348
+ If you convey an object code work under this section in, or with, or
349
+ specifically for use in, a User Product, and the conveying occurs as
350
+ part of a transaction in which the right of possession and use of the
351
+ User Product is transferred to the recipient in perpetuity or for a
352
+ fixed term (regardless of how the transaction is characterized), the
353
+ Corresponding Source conveyed under this section must be accompanied
354
+ by the Installation Information. But this requirement does not apply
355
+ if neither you nor any third party retains the ability to install
356
+ modified object code on the User Product (for example, the work has
357
+ been installed in ROM).
358
+
359
+ The requirement to provide Installation Information does not include a
360
+ requirement to continue to provide support service, warranty, or updates
361
+ for a work that has been modified or installed by the recipient, or for
362
+ the User Product in which it has been modified or installed. Access to a
363
+ network may be denied when the modification itself materially and
364
+ adversely affects the operation of the network or violates the rules and
365
+ protocols for communication across the network.
366
+
367
+ Corresponding Source conveyed, and Installation Information provided,
368
+ in accord with this section must be in a format that is publicly
369
+ documented (and with an implementation available to the public in
370
+ source code form), and must require no special password or key for
371
+ unpacking, reading or copying.
372
+
373
+ 7. Additional Terms.
374
+
375
+ "Additional permissions" are terms that supplement the terms of this
376
+ License by making exceptions from one or more of its conditions.
377
+ Additional permissions that are applicable to the entire Program shall
378
+ be treated as though they were included in this License, to the extent
379
+ that they are valid under applicable law. If additional permissions
380
+ apply only to part of the Program, that part may be used separately
381
+ under those permissions, but the entire Program remains governed by
382
+ this License without regard to the additional permissions.
383
+
384
+ When you convey a copy of a covered work, you may at your option
385
+ remove any additional permissions from that copy, or from any part of
386
+ it. (Additional permissions may be written to require their own
387
+ removal in certain cases when you modify the work.) You may place
388
+ additional permissions on material, added by you to a covered work,
389
+ for which you have or can give appropriate copyright permission.
390
+
391
+ Notwithstanding any other provision of this License, for material you
392
+ add to a covered work, you may (if authorized by the copyright holders of
393
+ that material) supplement the terms of this License with terms:
394
+
395
+ a) Disclaiming warranty or limiting liability differently from the
396
+ terms of sections 15 and 16 of this License; or
397
+
398
+ b) Requiring preservation of specified reasonable legal notices or
399
+ author attributions in that material or in the Appropriate Legal
400
+ Notices displayed by works containing it; or
401
+
402
+ c) Prohibiting misrepresentation of the origin of that material, or
403
+ requiring that modified versions of such material be marked in
404
+ reasonable ways as different from the original version; or
405
+
406
+ d) Limiting the use for publicity purposes of names of licensors or
407
+ authors of the material; or
408
+
409
+ e) Declining to grant rights under trademark law for use of some
410
+ trade names, trademarks, or service marks; or
411
+
412
+ f) Requiring indemnification of licensors and authors of that
413
+ material by anyone who conveys the material (or modified versions of
414
+ it) with contractual assumptions of liability to the recipient, for
415
+ any liability that these contractual assumptions directly impose on
416
+ those licensors and authors.
417
+
418
+ All other non-permissive additional terms are considered "further
419
+ restrictions" within the meaning of section 10. If the Program as you
420
+ received it, or any part of it, contains a notice stating that it is
421
+ governed by this License along with a term that is a further
422
+ restriction, you may remove that term. If a license document contains
423
+ a further restriction but permits relicensing or conveying under this
424
+ License, you may add to a covered work material governed by the terms
425
+ of that license document, provided that the further restriction does
426
+ not survive such relicensing or conveying.
427
+
428
+ If you add terms to a covered work in accord with this section, you
429
+ must place, in the relevant source files, a statement of the
430
+ additional terms that apply to those files, or a notice indicating
431
+ where to find the applicable terms.
432
+
433
+ Additional terms, permissive or non-permissive, may be stated in the
434
+ form of a separately written license, or stated as exceptions;
435
+ the above requirements apply either way.
436
+
437
+ 8. Termination.
438
+
439
+ You may not propagate or modify a covered work except as expressly
440
+ provided under this License. Any attempt otherwise to propagate or
441
+ modify it is void, and will automatically terminate your rights under
442
+ this License (including any patent licenses granted under the third
443
+ paragraph of section 11).
444
+
445
+ However, if you cease all violation of this License, then your
446
+ license from a particular copyright holder is reinstated (a)
447
+ provisionally, unless and until the copyright holder explicitly and
448
+ finally terminates your license, and (b) permanently, if the copyright
449
+ holder fails to notify you of the violation by some reasonable means
450
+ prior to 60 days after the cessation.
451
+
452
+ Moreover, your license from a particular copyright holder is
453
+ reinstated permanently if the copyright holder notifies you of the
454
+ violation by some reasonable means, this is the first time you have
455
+ received notice of violation of this License (for any work) from that
456
+ copyright holder, and you cure the violation prior to 30 days after
457
+ your receipt of the notice.
458
+
459
+ Termination of your rights under this section does not terminate the
460
+ licenses of parties who have received copies or rights from you under
461
+ this License. If your rights have been terminated and not permanently
462
+ reinstated, you do not qualify to receive new licenses for the same
463
+ material under section 10.
464
+
465
+ 9. Acceptance Not Required for Having Copies.
466
+
467
+ You are not required to accept this License in order to receive or
468
+ run a copy of the Program. Ancillary propagation of a covered work
469
+ occurring solely as a consequence of using peer-to-peer transmission
470
+ to receive a copy likewise does not require acceptance. However,
471
+ nothing other than this License grants you permission to propagate or
472
+ modify any covered work. These actions infringe copyright if you do
473
+ not accept this License. Therefore, by modifying or propagating a
474
+ covered work, you indicate your acceptance of this License to do so.
475
+
476
+ 10. Automatic Licensing of Downstream Recipients.
477
+
478
+ Each time you convey a covered work, the recipient automatically
479
+ receives a license from the original licensors, to run, modify and
480
+ propagate that work, subject to this License. You are not responsible
481
+ for enforcing compliance by third parties with this License.
482
+
483
+ An "entity transaction" is a transaction transferring control of an
484
+ organization, or substantially all assets of one, or subdividing an
485
+ organization, or merging organizations. If propagation of a covered
486
+ work results from an entity transaction, each party to that
487
+ transaction who receives a copy of the work also receives whatever
488
+ licenses to the work the party's predecessor in interest had or could
489
+ give under the previous paragraph, plus a right to possession of the
490
+ Corresponding Source of the work from the predecessor in interest, if
491
+ the predecessor has it or can get it with reasonable efforts.
492
+
493
+ You may not impose any further restrictions on the exercise of the
494
+ rights granted or affirmed under this License. For example, you may
495
+ not impose a license fee, royalty, or other charge for exercise of
496
+ rights granted under this License, and you may not initiate litigation
497
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
498
+ any patent claim is infringed by making, using, selling, offering for
499
+ sale, or importing the Program or any portion of it.
500
+
501
+ 11. Patents.
502
+
503
+ A "contributor" is a copyright holder who authorizes use under this
504
+ License of the Program or a work on which the Program is based. The
505
+ work thus licensed is called the contributor's "contributor version".
506
+
507
+ A contributor's "essential patent claims" are all patent claims
508
+ owned or controlled by the contributor, whether already acquired or
509
+ hereafter acquired, that would be infringed by some manner, permitted
510
+ by this License, of making, using, or selling its contributor version,
511
+ but do not include claims that would be infringed only as a
512
+ consequence of further modification of the contributor version. For
513
+ purposes of this definition, "control" includes the right to grant
514
+ patent sublicenses in a manner consistent with the requirements of
515
+ this License.
516
+
517
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
518
+ patent license under the contributor's essential patent claims, to
519
+ make, use, sell, offer for sale, import and otherwise run, modify and
520
+ propagate the contents of its contributor version.
521
+
522
+ In the following three paragraphs, a "patent license" is any express
523
+ agreement or commitment, however denominated, not to enforce a patent
524
+ (such as an express permission to practice a patent or covenant not to
525
+ sue for patent infringement). To "grant" such a patent license to a
526
+ party means to make such an agreement or commitment not to enforce a
527
+ patent against the party.
528
+
529
+ If you convey a covered work, knowingly relying on a patent license,
530
+ and the Corresponding Source of the work is not available for anyone
531
+ to copy, free of charge and under the terms of this License, through a
532
+ publicly available network server or other readily accessible means,
533
+ then you must either (1) cause the Corresponding Source to be so
534
+ available, or (2) arrange to deprive yourself of the benefit of the
535
+ patent license for this particular work, or (3) arrange, in a manner
536
+ consistent with the requirements of this License, to extend the patent
537
+ license to downstream recipients. "Knowingly relying" means you have
538
+ actual knowledge that, but for the patent license, your conveying the
539
+ covered work in a country, or your recipient's use of the covered work
540
+ in a country, would infringe one or more identifiable patents in that
541
+ country that you have reason to believe are valid.
542
+
543
+ If, pursuant to or in connection with a single transaction or
544
+ arrangement, you convey, or propagate by procuring conveyance of, a
545
+ covered work, and grant a patent license to some of the parties
546
+ receiving the covered work authorizing them to use, propagate, modify
547
+ or convey a specific copy of the covered work, then the patent license
548
+ you grant is automatically extended to all recipients of the covered
549
+ work and works based on it.
550
+
551
+ A patent license is "discriminatory" if it does not include within
552
+ the scope of its coverage, prohibits the exercise of, or is
553
+ conditioned on the non-exercise of one or more of the rights that are
554
+ specifically granted under this License. You may not convey a covered
555
+ work if you are a party to an arrangement with a third party that is
556
+ in the business of distributing software, under which you make payment
557
+ to the third party based on the extent of your activity of conveying
558
+ the work, and under which the third party grants, to any of the
559
+ parties who would receive the covered work from you, a discriminatory
560
+ patent license (a) in connection with copies of the covered work
561
+ conveyed by you (or copies made from those copies), or (b) primarily
562
+ for and in connection with specific products or compilations that
563
+ contain the covered work, unless you entered into that arrangement,
564
+ or that patent license was granted, prior to 28 March 2007.
565
+
566
+ Nothing in this License shall be construed as excluding or limiting
567
+ any implied license or other defenses to infringement that may
568
+ otherwise be available to you under applicable patent law.
569
+
570
+ 12. No Surrender of Others' Freedom.
571
+
572
+ If conditions are imposed on you (whether by court order, agreement or
573
+ otherwise) that contradict the conditions of this License, they do not
574
+ excuse you from the conditions of this License. If you cannot convey a
575
+ covered work so as to satisfy simultaneously your obligations under this
576
+ License and any other pertinent obligations, then as a consequence you may
577
+ not convey it at all. For example, if you agree to terms that obligate you
578
+ to collect a royalty for further conveying from those to whom you convey
579
+ the Program, the only way you could satisfy both those terms and this
580
+ License would be to refrain entirely from conveying the Program.
581
+
582
+ 13. Use with the GNU Affero General Public License.
583
+
584
+ Notwithstanding any other provision of this License, you have
585
+ permission to link or combine any covered work with a work licensed
586
+ under version 3 of the GNU Affero General Public License into a single
587
+ combined work, and to convey the resulting work. The terms of this
588
+ License will continue to apply to the part which is the covered work,
589
+ but the special requirements of the GNU Affero General Public License,
590
+ section 13, concerning interaction through a network will apply to the
591
+ combination as such.
592
+
593
+ 14. Revised Versions of this License.
594
+
595
+ The Free Software Foundation may publish revised and/or new versions of
596
+ the GNU General Public License from time to time. Such new versions will
597
+ be similar in spirit to the present version, but may differ in detail to
598
+ address new problems or concerns.
599
+
600
+ Each version is given a distinguishing version number. If the
601
+ Program specifies that a certain numbered version of the GNU General
602
+ Public License "or any later version" applies to it, you have the
603
+ option of following the terms and conditions either of that numbered
604
+ version or of any later version published by the Free Software
605
+ Foundation. If the Program does not specify a version number of the
606
+ GNU General Public License, you may choose any version ever published
607
+ by the Free Software Foundation.
608
+
609
+ If the Program specifies that a proxy can decide which future
610
+ versions of the GNU General Public License can be used, that proxy's
611
+ public statement of acceptance of a version permanently authorizes you
612
+ to choose that version for the Program.
613
+
614
+ Later license versions may give you additional or different
615
+ permissions. However, no additional obligations are imposed on any
616
+ author or copyright holder as a result of your choosing to follow a
617
+ later version.
618
+
619
+ 15. Disclaimer of Warranty.
620
+
621
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
622
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
623
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
624
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
625
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
626
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
627
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
628
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
629
+
630
+ 16. Limitation of Liability.
631
+
632
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
633
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
634
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
635
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
636
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
637
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
638
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
639
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
640
+ SUCH DAMAGES.
641
+
642
+ 17. Interpretation of Sections 15 and 16.
643
+
644
+ If the disclaimer of warranty and limitation of liability provided
645
+ above cannot be given local legal effect according to their terms,
646
+ reviewing courts shall apply local law that most closely approximates
647
+ an absolute waiver of all civil liability in connection with the
648
+ Program, unless a warranty or assumption of liability accompanies a
649
+ copy of the Program in return for a fee.
650
+
651
+ END OF TERMS AND CONDITIONS