From 2c81dc1f069ef00681cda1c8239094bb0bf01015 Mon Sep 17 00:00:00 2001 From: Eric Deng Date: Thu, 23 Jan 2025 15:47:07 -0800 Subject: [PATCH] Update cartesia.py to use the new model pointer `sonic` instead of `sonic-english` We are now using `sonic` as a pointer to the latest stable release (https://docs.cartesia.ai/build-with-sonic/models#continuous-updates). sonic-english will forever point to `sonic-2024-10-19`, which is already out of date. --- src/pipecat/services/cartesia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/cartesia.py b/src/pipecat/services/cartesia.py index a91c06176..35856ea52 100644 --- a/src/pipecat/services/cartesia.py +++ b/src/pipecat/services/cartesia.py @@ -88,7 +88,7 @@ def __init__( voice_id: str, cartesia_version: str = "2024-06-10", url: str = "wss://api.cartesia.ai/tts/websocket", - model: str = "sonic-english", + model: str = "sonic", sample_rate: int = 24000, encoding: str = "pcm_s16le", container: str = "raw", @@ -329,7 +329,7 @@ def __init__( *, api_key: str, voice_id: str, - model: str = "sonic-english", + model: str = "sonic", base_url: str = "https://api.cartesia.ai", sample_rate: int = 24000, encoding: str = "pcm_s16le",