From 5ce46df599adcc3fe47f74dbcab84e6ea9a96743 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 1 Apr 2026 22:18:41 -0400 Subject: [PATCH] Use self.create_context_id() instead of raw uuid in CartesiaTTSService --- src/pipecat/services/cartesia/tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/cartesia/tts.py b/src/pipecat/services/cartesia/tts.py index 4d47dfa44..e8e033ee9 100644 --- a/src/pipecat/services/cartesia/tts.py +++ b/src/pipecat/services/cartesia/tts.py @@ -8,7 +8,6 @@ import base64 import json -import uuid from dataclasses import dataclass, field from enum import Enum from typing import Any, AsyncGenerator, List, Optional @@ -614,7 +613,8 @@ class CartesiaTTSService(WebsocketTTSService): # Assign a new turn context ID so subsequent sentences in this # turn open a new Cartesia context with the updated settings. if self._turn_context_id: - self._turn_context_id = str(uuid.uuid4()) + self._turn_context_id = None + self._turn_context_id = self.create_context_id() return changed