[真实流程计时]:完成完整链路耗时输出,包含命令时间、LLM发送时间和阶段响应耗时
This commit is contained in:
+7
@@ -161,6 +161,13 @@ The system SHALL support scripted full-chain acceptance that drives the live pip
|
||||
- **THEN** the command SHALL still synthesize local TTS output and emit pipeline playback events
|
||||
- **AND** it SHALL skip actual speaker output for automated or quiet environments
|
||||
|
||||
#### Scenario: Real provider check reports timing diagnostics
|
||||
- **WHEN** the developer runs `.venv/bin/python -m owner_voice_pet real-live-check --turns 2`
|
||||
- **THEN** the JSON output SHALL include `timing.started_at`, `timing.finished_at`, `timing.duration_ms`, `timing.phases`, `timing.events`, and `timing.stage_timings`
|
||||
- **AND** `timing.stage_timings` SHALL include turn-scoped durations for wake wait, acknowledgement, wait-for-speech, capture, final STT, LLM-to-first-TTS, TTS playback, and full turn when the corresponding events are emitted
|
||||
- **AND** the JSON output SHALL include `llm_request_timings` with one item per LLM call containing `sent_at`, `sent_offset_ms`, `first_delta_ms`, `finished_at`, `duration_ms`, `message_count`, and a short last-user preview
|
||||
- **AND** the timing output SHALL NOT contain API keys, raw audio payloads, denoised audio payloads, or full secret-bearing provider request headers
|
||||
|
||||
### Requirement: Wake acknowledgement before recording
|
||||
The live runtime SHALL provide an audible local acknowledgement after local wake detection and before it starts recording the user's formal question.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user