Merge pull request #1265 from pipecat-ai/aleix/transport-remove-audio-out-is-live

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-21 06:51:09 -08:00
committed by GitHub
3 changed files with 5 additions and 4 deletions

View File

@@ -30,6 +30,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
stt = DeepgramSTTService(..., live_options=LiveOptions(model="nova-2-general"))
```
### Removed
- Remove `TransportParams.audio_out_is_live` since it was not being used at all.
### Fixed
- Fixed an issue where `EndTaskFrame` was not triggering `on_client_disconnected` or closing the WebSocket in FastAPI.
@@ -53,7 +57,7 @@ stt = DeepgramSTTService(..., live_options=LiveOptions(model="nova-2-general"))
transcriptions to be generated by the STT service.
- Fixes an issue in `DeepgramSTTService` where `sample_rate` passed to the
`LiveOptions` was not being used, causing the service to use the default
`LiveOptions` was not being used, causing the service to use the default
sample rate of pipeline.
### Other

View File

@@ -38,7 +38,6 @@ async def main():
"GStreamer",
DailyParams(
audio_out_enabled=True,
audio_out_is_live=True,
camera_out_enabled=True,
camera_out_width=1280,
camera_out_height=720,

View File

@@ -4,7 +4,6 @@
# SPDX-License-Identifier: BSD 2-Clause License
#
import asyncio
import inspect
from abc import ABC, abstractmethod
from typing import Optional
@@ -30,7 +29,6 @@ class TransportParams(BaseModel):
camera_out_framerate: int = 30
camera_out_color_format: str = "RGB"
audio_out_enabled: bool = False
audio_out_is_live: bool = False
audio_out_sample_rate: Optional[int] = None
audio_out_channels: int = 1
audio_out_bitrate: int = 96000