Update xfyun asr streaming boundary

This commit is contained in:
Xin Wang
2026-05-22 00:06:15 +08:00
parent 2ecb3ef506
commit c0fb0c51a2
2 changed files with 61 additions and 53 deletions

View File

@@ -170,9 +170,12 @@ default Smart Turn v3 analyzer, so the engine no longer loads the
### Xfyun ASR
The STT provider can be switched to iFlytek/Xfyun's streaming voice dictation
WebSocket API. The engine sends PCM chunks as `encoding: "raw"` and emits
`input.transcript.interim` events with the current full interim transcript as
Xfyun results arrive, followed by the existing `input.transcript.final` event.
WebSocket API. The engine opens the xfyun websocket when Pipecat VAD detects
the user has started speaking, keeps it open across brief pauses, and closes it
only when Pipecat's user-turn strategy declares the logical turn complete. It
sends PCM chunks as `encoding: "raw"` and emits `input.transcript.interim`
events with the current full interim transcript as Xfyun results arrive,
followed by the existing `input.transcript.final` event.
```json
"stt": {