Configure pipeline execution with PipelineParams
PipelineParams
class provides a structured way to configure various aspects of pipeline execution. These parameters control behaviors like audio settings, metrics collection, heartbeat monitoring, and interruption handling.
audio_in_sample_rate
as a PipelineParam
sets the input sample
rate for all corresponding services in the pipeline.audio_out_sample_rate
as a PipelineParam
sets the output
sample rate for all corresponding services in the pipeline.PipelineParams
to set the sample rate for all input and output services in the pipeline. This acts as a convenience to avoid setting the sample rate for each service individually. Note, if services are set individually, they will supersede the values set in PipelineParams
.
PipelineParams
are passed to various components of the pipeline:
start_metadata
dictionary can contain any serializable dataenable_metrics
must be set to True