Module soft_turn

Module soft_turn 

Source
Expand description

Soft turn detection for proactive silence awareness.

When proactiveAudio is enabled, the model may choose not to respond. No TurnComplete fires, so the 17-step pipeline never runs. This module detects when the user finished speaking (VAD end) but the model stayed silent, and triggers a lightweight “soft turn” to keep state updated.

Structs§

SoftTurnDetector
Detects proactive silence — user stopped speaking but model didn’t respond.

Constants§

DEFAULT_SOFT_TURN_TIMEOUT
Default timeout before a soft turn fires after VAD end.