[文档、验收与归档]:完成真实运行说明和OpenSpec归档,包含README、最终门禁和主规范更新
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ Test requirements:
|
||||
|
||||
First implementation can use one of two strategies:
|
||||
|
||||
1. Default cloud mode: local VAD cuts speech segments, `mimo-v2.5-asr` transcribes wake and user segments through NewAPI-compatible `/v1/audio/transcriptions`.
|
||||
1. Default cloud mode: local VAD cuts speech segments, `mimo-v2.5-asr` transcribes wake and user segments through NewAPI-compatible `/v1/chat/completions` audio input messages.
|
||||
2. Local mode: sherpa-onnx VAD/STT uses project-local model assets under `models/`.
|
||||
3. Future replacement: dedicated local KWS provider for “小杰小杰”.
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@
|
||||
|
||||
#### `.env` 输入
|
||||
|
||||
1. `OWNER_LLM_BASE_URL`:默认 `https://newapi.mkbk.shop`,作为 OpenAI/NewAPI 兼容接口 base URL。
|
||||
1. `OWNER_LLM_BASE_URL`:默认 `https://token-plan-cn.xiaomimimo.com/v1`,作为 OpenAI/NewAPI 兼容接口 base URL。
|
||||
2. `OWNER_LLM_API_KEY`:真实密钥,只允许存在于 `.env` 或用户本地未提交配置。
|
||||
3. `OWNER_LLM_MODEL`:云端模型名,通过 `.env` 配置指定。
|
||||
4. `OWNER_LLM_API_STYLE`:第一版保留 `chat_completions` 或现有兼容值。
|
||||
+2
-2
@@ -138,7 +138,7 @@ The system SHALL use the local microphone as the first-version input Transport a
|
||||
- **WHEN** the microphone or speaker is missing, denied, unsupported, or inaccessible through `sounddevice`
|
||||
- **THEN** the system SHALL expose a recoverable Transport error with a stable error code and SHALL NOT silently fall back to fixture audio in live mode
|
||||
|
||||
### Requirement: Configured STT transcription
|
||||
### Requirement: Local STT transcription
|
||||
The system SHALL transcribe captured user utterances through the configured STT provider; cloud mode SHALL use NewAPI-compatible ASR and local mode SHALL use project-local `sherpa-onnx` model assets under `models/`.
|
||||
|
||||
#### Scenario: STT succeeds
|
||||
@@ -153,7 +153,7 @@ The system SHALL transcribe captured user utterances through the configured STT
|
||||
- **WHEN** the STT provider raises an error, cloud ASR fails, or local model loading fails
|
||||
- **THEN** the system SHALL emit an STT or model error code and SHALL recover to a state where future wake attempts are possible if startup can continue safely
|
||||
|
||||
### Requirement: Configured TTS synthesis and playback
|
||||
### Requirement: Local TTS synthesis and playback
|
||||
The system SHALL synthesize assistant replies through the configured TTS provider and SHALL play synthesized speech through the local system output path; cloud mode SHALL use NewAPI-compatible TTS and local mode SHALL use a local playback-capable TTS provider.
|
||||
|
||||
#### Scenario: Reply text is ready for speech
|
||||
+7
-7
@@ -45,10 +45,10 @@
|
||||
|
||||
## 6. 文档、真实验收、归档
|
||||
|
||||
- [ ] 6.1 更新 README 中文运行说明;前置条件:CLI 和脚本完成;验收标准:包含 `.venv`、`.env`、模型下载、model-check、device-check、run-live、--once;测试要点:命令可复制执行;优先级:P0;预计:45 分钟。
|
||||
- [ ] 6.2 执行本地模型验收;前置条件:模型已下载;验收标准:`python3.11 scripts/download_speech_models.py --dir models` 和 `model-check` 通过或给出明确设备/模型失败证据;测试要点:输出不泄露 key;优先级:P0;预计:60 分钟。
|
||||
- [ ] 6.3 执行设备验收;前置条件:sounddevice 安装;验收标准:`device-check` 通过或输出明确权限/设备原因;测试要点:真实设备清单;优先级:P0;预计:30 分钟。
|
||||
- [ ] 6.4 执行真实运行验收;前置条件:`.env`、模型、设备齐全;验收标准:`run-live` 可被人工唤醒并完成至少两轮;第二轮可引用第一轮临时历史;测试要点:终端状态和听到播放;优先级:P0;预计:60 分钟。
|
||||
- [ ] 6.5 执行最终自动化门禁;前置条件:全部实现完成;验收标准:compileall、unittest、security-check、OpenSpec validate 全通过;测试要点:`git status --short` 没有未提交源码/文档变更;优先级:P0;预计:45 分钟。
|
||||
- [ ] 6.6 归档 `complete-live-repeat-voice-runtime`;前置条件:任务全完成并验证通过;验收标准:主 spec 更新,change 移入 archive,`openspec validate --all --strict` 通过;测试要点:归档后 spec 包含 live runtime 要求;优先级:P0;预计:30 分钟。
|
||||
- [ ] 6.7 最终提交“文档、验收与归档”模块;前置条件:6.1 至 6.6 完成;验收标准:最终门禁通过后 commit,工作树干净;测试要点:提交信息为中文格式;优先级:P0;预计:20 分钟。
|
||||
- [x] 6.1 更新 README 中文运行说明;前置条件:CLI 和脚本完成;验收标准:包含 `.venv`、`.env`、模型下载、model-check、device-check、run-live、--once;测试要点:命令可复制执行;优先级:P0;预计:45 分钟。
|
||||
- [x] 6.2 执行本地模型验收;前置条件:模型已下载;验收标准:`python3.11 scripts/download_speech_models.py --dir models` 和 `model-check` 通过或给出明确设备/模型失败证据;测试要点:输出不泄露 key;优先级:P0;预计:60 分钟。
|
||||
- [x] 6.3 执行设备验收;前置条件:sounddevice 安装;验收标准:`device-check` 通过或输出明确权限/设备原因;测试要点:真实设备清单;优先级:P0;预计:30 分钟。
|
||||
- [x] 6.4 执行真实运行验收;前置条件:`.env`、模型、设备齐全;验收标准:`run-live` 可被人工唤醒并完成至少两轮;第二轮可引用第一轮临时历史;测试要点:终端状态和听到播放;优先级:P0;预计:60 分钟。
|
||||
- [x] 6.5 执行最终自动化门禁;前置条件:全部实现完成;验收标准:compileall、unittest、security-check、OpenSpec validate 全通过;测试要点:`git status --short` 没有未提交源码/文档变更;优先级:P0;预计:45 分钟。
|
||||
- [x] 6.6 归档 `complete-live-repeat-voice-runtime`;前置条件:任务全完成并验证通过;验收标准:主 spec 更新,change 移入 archive,`openspec validate --all --strict` 通过;测试要点:归档后 spec 包含 live runtime 要求;优先级:P0;预计:30 分钟。
|
||||
- [x] 6.7 最终提交“文档、验收与归档”模块;前置条件:6.1 至 6.6 完成;验收标准:最终门禁通过后 commit,工作树干净;测试要点:提交信息为中文格式;优先级:P0;预计:20 分钟。
|
||||
Reference in New Issue
Block a user