BaseInput

class pipecat.transports.base_input.BaseInputTransport(params, **kwargs)[source]

Bases: FrameProcessor

Parameters:

params (TransportParams)

enable_audio_in_stream_on_start(enabled)[source]
Parameters:

enabled (bool)

Return type:

None

async start_audio_in_streaming()[source]
property sample_rate: int
property vad_analyzer: VADAnalyzer | None
property turn_analyzer: BaseTurnAnalyzer | None
async start(frame)[source]
Parameters:

frame (StartFrame)

async stop(frame)[source]
Parameters:

frame (EndFrame)

async pause(frame)[source]
Parameters:

frame (StopFrame)

async cancel(frame)[source]
Parameters:

frame (CancelFrame)

async set_transport_ready(frame)[source]

To be called when the transport is ready to stream.

Parameters:

frame (StartFrame)

async push_video_frame(frame)[source]
Parameters:

frame (InputImageRawFrame)

async push_audio_frame(frame)[source]
Parameters:

frame (InputAudioRawFrame)

async process_frame(frame, direction)[source]
Parameters:
  • frame (Frame)

  • direction (FrameDirection)