Skip to content

Commit 12a653e

Browse files
committed
In the warm transfer example, switch from CartesiaHttpTTSService to CartesiaHttpTTSService for now, to avoid an issue where interrupting the bot would cause post_actions to run before the bot stopped speaking (see #119)
1 parent 1c2fe6d commit 12a653e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/dynamic/warm_transfer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from pipecat.pipeline.runner import PipelineRunner
5050
from pipecat.pipeline.task import PipelineParams, PipelineTask
5151
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
52-
from pipecat.services.cartesia import CartesiaTTSService
52+
from pipecat.services.cartesia import CartesiaHttpTTSService
5353
from pipecat.services.deepgram import DeepgramSTTService
5454
from pipecat.services.openai import OpenAILLMService
5555
from pipecat.transports.services.daily import DailyParams, DailyTransport
@@ -566,7 +566,7 @@ async def main():
566566
),
567567
)
568568
stt = DeepgramSTTService(api_key=os.getenv("DEEPGRAM_API_KEY"))
569-
tts = CartesiaTTSService(
569+
tts = CartesiaHttpTTSService(
570570
api_key=os.getenv("CARTESIA_API_KEY"),
571571
voice_id="d46abd1d-2d02-43e8-819f-51fb652c1c61", # Newsman
572572
)

0 commit comments

Comments
 (0)