Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Events

VoiceStreamEventmodule-attribute

An event from theVoicePipeline, streamed viaStreamedAudioResult.stream().

VoiceStreamEventAudiodataclass

Streaming event from the VoicePipeline

Source code insrc/agents/voice/events.py
@dataclassclassVoiceStreamEventAudio:"""Streaming event from the VoicePipeline"""data:npt.NDArray[np.int16|np.float32]|None"""The audio data."""type:Literal["voice_stream_event_audio"]="voice_stream_event_audio""""The type of event."""

datainstance-attribute

data:NDArray[int16|float32]|None

The audio data.

typeclass-attributeinstance-attribute

type:Literal["voice_stream_event_audio"]=("voice_stream_event_audio")

The type of event.

VoiceStreamEventLifecycledataclass

Streaming event from the VoicePipeline

Source code insrc/agents/voice/events.py
@dataclassclassVoiceStreamEventLifecycle:"""Streaming event from the VoicePipeline"""event:Literal["turn_started","turn_ended","session_ended"]"""The event that occurred."""type:Literal["voice_stream_event_lifecycle"]="voice_stream_event_lifecycle""""The type of event."""

eventinstance-attribute

event:Literal["turn_started","turn_ended","session_ended"]

The event that occurred.

typeclass-attributeinstance-attribute

type:Literal["voice_stream_event_lifecycle"]=("voice_stream_event_lifecycle")

The type of event.

VoiceStreamEventErrordataclass

Streaming event from the VoicePipeline

Source code insrc/agents/voice/events.py
@dataclassclassVoiceStreamEventError:"""Streaming event from the VoicePipeline"""error:Exception"""The error that occurred."""type:Literal["voice_stream_event_error"]="voice_stream_event_error""""The type of event."""

errorinstance-attribute

error:Exception

The error that occurred.

typeclass-attributeinstance-attribute

type:Literal["voice_stream_event_error"]=("voice_stream_event_error")

The type of event.


[8]ページ先頭

©2009-2025 Movatter.jp