Skip to main content

Crate wavekat_turn

Crate wavekat_turn 

Source
Expand description

§wavekat-turn

Unified turn detection with multiple backends.

Provides a clean abstraction over turn-detection models that predict whether a user has finished speaking. Two trait families cover the two fundamental input modalities:

§Feature flags

FeatureBackendInput
pipecatPipecat Smart Turn v3 (ONNX)Audio (16 kHz)
livekitLiveKit Turn Detector (ONNX)Text

Re-exports§

pub use error::TurnError;

Modules§

audio
Audio-based turn detection backends.
error
text
Text-based turn detection backends.

Structs§

AudioFrame
A frame of audio samples with associated sample rate.
ConversationTurn
A single turn in the conversation, for context-aware text detectors.
StageTiming
Per-stage timing entry.
TurnPrediction
A turn detection prediction with confidence and timing metadata.

Enums§

Role
Speaker role in a conversation turn.
TurnState
The predicted turn state.

Traits§

AudioTurnDetector
Turn detector that operates on raw audio.
TextTurnDetector
Turn detector that operates on ASR transcript text.