[实时字幕端点]:完成无新文字快速结束录音,包含1.5秒停滞配置、Capture端点和回归测试

This commit is contained in:
mkbk
2026-06-18 11:23:20 +08:00
parent 39da9dd09f
commit 1e956f5eb6
13 changed files with 151 additions and 5 deletions
@@ -56,6 +56,11 @@ The live runtime SHALL display recognized user utterance text in the terminal bo
- **WHEN** a partial transcript is emitted
- **THEN** it SHALL be treated as user-visible feedback only and SHALL NOT be appended to the conversation context or sent to the LLM
#### Scenario: Realtime transcript stops advancing
- **WHEN** the user utterance has started, at least one partial transcript has been displayed, and no new partial transcript text is emitted for `OWNER_REALTIME_TRANSCRIPT_IDLE_TIMEOUT_MS`
- **THEN** capture SHALL end the current utterance with end reason `partial_transcript_idle`
- **AND** the runtime SHALL proceed to final STT for the captured audio instead of waiting for VAD maximum recording duration
#### Scenario: User utterance is transcribed
- **WHEN** a live turn captures a user utterance and STT returns non-empty text
- **THEN** the terminal output SHALL include a transcript message containing the recognized text before the thinking/LLM status is emitted