Update foundational examples with script dependencies

This commit is contained in:
Mark Backman
2025-08-03 15:30:56 -04:00
parent 2b1a7b840d
commit a550be329c
149 changed files with 834 additions and 75 deletions

View File

@@ -4,6 +4,12 @@
# SPDX-License-Identifier: BSD 2-Clause License
#
# /// script
# dependencies = [
# "pipecat-ai[daily,webrtc,websocket,runner,silero,deepgram,openai,cartesia]>=0.0.77",
# ]
# ///
import glob
import json
import os
@@ -192,6 +198,8 @@ async def run_bot(transport: BaseTransport):
global tts
stt = DeepgramSTTService(api_key=os.getenv("DEEPGRAM_API_KEY"))
tts = CartesiaTTSService(
api_key=os.getenv("CARTESIA_API_KEY"),
voice_id="71a7ad14-091c-4e8e-a314-022ece01c121", # British Reading Lady