Learn how to configure speech recognition to convert user audio into text in your Pipecat pipeline
transport.input()
: STT needs InputAudioRawFrame
s from the transportLiveOptions
class:
audio_passthrough=True
: Allows audio frames to continue downstream to other processors (like audio recording)sample_rate
: Audio sampling rate - best practice is to set the audio_in_sample_rate
in PipelineParams
for consistencyaudio_passthrough=False
will stop audio frames from being passed
downstream, which may break audio recording or other audio-dependent
processors.PipelineParams
to avoid mismatches between
different audio processors. This simplifies configuration and ensures
consistent audio quality across your pipeline.