pub enum FrameKind {
Show 49 variants
Start,
Cancel,
Error,
Interruption,
InputAudio,
UserAudio,
InputText,
InputDtmf,
UserStartedSpeaking,
UserStoppedSpeaking,
UserSpeaking,
BotStartedSpeaking,
BotStoppedSpeaking,
BotSpeaking,
VadUserStartedSpeaking,
VadUserStoppedSpeaking,
SttMute,
Metrics,
TransportMessage,
ClientConnected,
BotConnected,
FunctionCallsStarted,
FunctionCallInProgress,
FunctionCallCancel,
OutputAudio,
TtsAudio,
Text,
LlmText,
Transcription,
InterimTranscription,
TtsSpeak,
TtsText,
FunctionCallResult,
LlmRun,
LlmContext,
OutputDtmf,
End,
Stop,
LlmResponseStart,
LlmResponseEnd,
TtsStarted,
TtsStopped,
UpdateSettings,
SpeechControlParams,
Heartbeat,
OutputTransportReady,
FilterEnable,
MixerEnable,
Custom,
}Expand description
A payload-free discriminant for Frame, used by event hooks
(on_frame_reached_*), idle-frame detection, and observers that filter by
type. Mirrors using isinstance on a pipecat frame class.
Variants§
Start
Cancel
Error
Interruption
InputAudio
UserAudio
InputText
InputDtmf
UserStartedSpeaking
UserStoppedSpeaking
UserSpeaking
BotStartedSpeaking
BotStoppedSpeaking
BotSpeaking
VadUserStartedSpeaking
VadUserStoppedSpeaking
SttMute
Metrics
TransportMessage
ClientConnected
BotConnected
FunctionCallsStarted
FunctionCallInProgress
FunctionCallCancel
OutputAudio
TtsAudio
Text
LlmText
Transcription
InterimTranscription
TtsSpeak
TtsText
FunctionCallResult
LlmRun
LlmContext
OutputDtmf
End
Stop
LlmResponseStart
LlmResponseEnd
TtsStarted
TtsStopped
UpdateSettings
SpeechControlParams
Heartbeat
OutputTransportReady
FilterEnable
MixerEnable
Custom
Trait Implementations§
impl Copy for FrameKind
impl Eq for FrameKind
impl StructuralPartialEq for FrameKind
Auto Trait Implementations§
impl Freeze for FrameKind
impl RefUnwindSafe for FrameKind
impl Send for FrameKind
impl Sync for FrameKind
impl Unpin for FrameKind
impl UnsafeUnpin for FrameKind
impl UnwindSafe for FrameKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.