From ee5aa4dc71c521c9b95fbe434d243a9de558964b Mon Sep 17 00:00:00 2001 From: asilvestre Date: Fri, 15 May 2026 11:29:30 +0200 Subject: [PATCH] SubscribeSettings to be pydantic and comment fixes --- src/pipecat/runner/utils.py | 3 +-- src/pipecat/transports/vonage/client.py | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pipecat/runner/utils.py b/src/pipecat/runner/utils.py index 2ba5ec31f..34b66f63a 100644 --- a/src/pipecat/runner/utils.py +++ b/src/pipecat/runner/utils.py @@ -563,8 +563,7 @@ async def create_transport( ), "vonage": lambda: VonageVideoConnectorTransportParams( audio_in_enabled=True, - audio_out_enabled=True, - vad_analyzer=SileroVADAnalyzer(), + audio_out_enabled=True ), } diff --git a/src/pipecat/transports/vonage/client.py b/src/pipecat/transports/vonage/client.py index b3991d7f5..daa53050c 100644 --- a/src/pipecat/transports/vonage/client.py +++ b/src/pipecat/transports/vonage/client.py @@ -17,6 +17,7 @@ from typing import Any, Optional, TypeVar import numpy as np from loguru import logger +from pydantic import BaseModel from pipecat.audio.utils import create_stream_resampler from pipecat.frames.frames import ( @@ -70,7 +71,7 @@ try: except ModuleNotFoundError as e: logger.error(f"Exception: {e}") logger.error( - f"In order to use Vonage Video Connector, you need to have the Vonage Video Connector python library installed." + "In order to use Vonage Video Connector, you need to `pip install pipecat-ai[vonage-video-connector]`." ) raise Exception(f"Missing module: {e}") @@ -101,13 +102,12 @@ class VonageVideoConnectorTransportParams(TransportParams): clear_buffers_on_interruption: bool = True -@dataclass -class SubscribeSettings: +class SubscribeSettings(BaseModel): """Parameters for stream input subscription. Parameters: - capture_audio: Whether to subscribe to audio. - capture_video: Whether to subscribe to video. + subscribe_to_audio: Whether to subscribe to audio. + subscribe_to_video: Whether to subscribe to video. preferred_resolution: Preferred resolution for video subscription. preferred_framerate: Preferred framerate for video subscription. """