From 7c13ec10d9ff48497144a267b7fb348873d992ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 6 Feb 2025 09:21:45 -0800 Subject: [PATCH] examples: cleanup ElevenLabsTTSService constructor arguments --- examples/canonical-metrics/bot.py | 1 - examples/chatbot-audio-recording/bot.py | 1 - examples/foundational/04-utterance-and-speech.py | 1 - examples/foundational/08-bots-arguing.py | 1 - examples/phone-chatbot/bot_daily.py | 6 +++--- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/canonical-metrics/bot.py b/examples/canonical-metrics/bot.py index e2673bb3e..7e6b62a44 100644 --- a/examples/canonical-metrics/bot.py +++ b/examples/canonical-metrics/bot.py @@ -65,7 +65,6 @@ async def main(): # English # voice_id="cgSgspJ2msm6clMCkdW9", - aiohttp_session=session, # # Spanish # diff --git a/examples/chatbot-audio-recording/bot.py b/examples/chatbot-audio-recording/bot.py index 62b7b29c8..47f0917dc 100644 --- a/examples/chatbot-audio-recording/bot.py +++ b/examples/chatbot-audio-recording/bot.py @@ -82,7 +82,6 @@ async def main(): # English # voice_id="cgSgspJ2msm6clMCkdW9", - aiohttp_session=session, # # Spanish # diff --git a/examples/foundational/04-utterance-and-speech.py b/examples/foundational/04-utterance-and-speech.py index 145eacfa7..f2184b58f 100644 --- a/examples/foundational/04-utterance-and-speech.py +++ b/examples/foundational/04-utterance-and-speech.py @@ -51,7 +51,6 @@ async def main(): ) elevenlabs_tts = ElevenLabsTTSService( - aiohttp_session=session, api_key=os.getenv("ELEVENLABS_API_KEY"), voice_id=os.getenv("ELEVENLABS_VOICE_ID"), ) diff --git a/examples/foundational/08-bots-arguing.py b/examples/foundational/08-bots-arguing.py index e455b321b..a0472546e 100644 --- a/examples/foundational/08-bots-arguing.py +++ b/examples/foundational/08-bots-arguing.py @@ -48,7 +48,6 @@ async def main(): region=os.getenv("AZURE_SPEECH_REGION"), ) tts2 = ElevenLabsTTSService( - aiohttp_session=session, api_key=os.getenv("ELEVENLABS_API_KEY"), voice_id="jBpfuIE2acCO8z3wKNLl", ) diff --git a/examples/phone-chatbot/bot_daily.py b/examples/phone-chatbot/bot_daily.py index fac3b37b2..019784843 100644 --- a/examples/phone-chatbot/bot_daily.py +++ b/examples/phone-chatbot/bot_daily.py @@ -8,7 +8,7 @@ from loguru import logger from openai.types.chat import ChatCompletionToolParam from pipecat.audio.vad.silero import SileroVADAnalyzer -from pipecat.frames.frames import EndFrame, EndTaskFrame +from pipecat.frames.frames import EndTaskFrame from pipecat.pipeline.pipeline import Pipeline from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.task import PipelineParams, PipelineTask @@ -99,14 +99,14 @@ async def main( - **ASSUME IT IS A VOICEMAIL. DO NOT WAIT FOR MORE CONFIRMATION.** #### **Step 2: Leave a Voicemail Message** - - Immediately say: + - Immediately say: *"Hello, this is a message for Pipecat example user. This is Chatbot. Please call back on 123-456-7891. Thank you."* - **IMMEDIATELY AFTER LEAVING THE MESSAGE, CALL `terminate_call`.** - **DO NOT SPEAK AFTER CALLING `terminate_call`.** - **FAILURE TO CALL `terminate_call` IMMEDIATELY IS A MISTAKE.** #### **Step 3: If Speaking to a Human** - - If the call is answered by a human, say: + - If the call is answered by a human, say: *"Oh, hello! I'm a friendly chatbot. Is there anything I can help you with?"* - Keep responses **brief and helpful**. - If the user no longer needs assistance, **call `terminate_call` immediately.**