STTService: passthrough audio frames by default
This commit is contained in:
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- STT services now passthrough audio frames by default. This allows you to add
|
||||||
|
audio recording without worrying about what's wrong in your pipeline when it
|
||||||
|
doesn't work the first time.
|
||||||
|
|
||||||
- Input transports now always push audio downstream unless disabled with
|
- Input transports now always push audio downstream unless disabled with
|
||||||
`TransportParams.audio_in_passthrough`. After many Pipecat releases, we
|
`TransportParams.audio_in_passthrough`. After many Pipecat releases, we
|
||||||
realized this is the common use case. There are use cases where the input
|
realized this is the common use case. There are use cases where the input
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class STTService(AIService):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
audio_passthrough=False,
|
audio_passthrough=True,
|
||||||
# STT input sample rate
|
# STT input sample rate
|
||||||
sample_rate: Optional[int] = None,
|
sample_rate: Optional[int] = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
|
|||||||
Reference in New Issue
Block a user