From 9e8a63647bfac077729d1ea38bb2bab926d4198c Mon Sep 17 00:00:00 2001 From: Noah Tye Date: Tue, 7 Jan 2025 15:22:59 -0800 Subject: [PATCH 1/2] update Cartesia plugin default model and voice id --- .../livekit-plugins-cartesia/livekit/plugins/cartesia/models.py | 2 +- .../livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/models.py b/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/models.py index 309448bdd..f6603353c 100644 --- a/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/models.py +++ b/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/models.py @@ -10,7 +10,7 @@ TTSModels = Literal["sonic-english", "sonic-multilingual"] TTSLanguages = Literal["en", "es", "fr", "de", "pt", "zh", "ja"] -TTSDefaultVoiceId = "c2ac25f9-ecc4-4f56-9095-651354df60c0" +TTSDefaultVoiceId = "794f9389-aac1-45b6-b726-9d9369183238" TTSVoiceSpeed = Literal["fastest", "fast", "normal", "slow", "slowest"] TTSVoiceEmotion = Literal[ "anger:lowest", diff --git a/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py b/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py index eae3a0679..65b19b3b9 100644 --- a/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py +++ b/livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/tts.py @@ -67,7 +67,7 @@ class TTS(tts.TTS): def __init__( self, *, - model: TTSModels | str = "sonic-english", + model: TTSModels | str = "sonic", language: str = "en", encoding: TTSEncoding = "pcm_s16le", voice: str | list[float] = TTSDefaultVoiceId, From 5af06a3adc760cb0b2b0a1ae3f943cb29758dc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Wed, 8 Jan 2025 01:26:02 +0100 Subject: [PATCH 2/2] Create cool-clouds-hang.md --- .changeset/cool-clouds-hang.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cool-clouds-hang.md diff --git a/.changeset/cool-clouds-hang.md b/.changeset/cool-clouds-hang.md new file mode 100644 index 000000000..55fe1c4cf --- /dev/null +++ b/.changeset/cool-clouds-hang.md @@ -0,0 +1,5 @@ +--- +"livekit-plugins-cartesia": patch +--- + +update Cartesia plugin default model and voice id