examples: cleanup ElevenLabsTTSService constructor arguments

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-06 09:21:45 -08:00
parent 29b9dccc53
commit 7c13ec10d9
5 changed files with 3 additions and 7 deletions

View File

@@ -65,7 +65,6 @@ async def main():
# English # English
# #
voice_id="cgSgspJ2msm6clMCkdW9", voice_id="cgSgspJ2msm6clMCkdW9",
aiohttp_session=session,
# #
# Spanish # Spanish
# #

View File

@@ -82,7 +82,6 @@ async def main():
# English # English
# #
voice_id="cgSgspJ2msm6clMCkdW9", voice_id="cgSgspJ2msm6clMCkdW9",
aiohttp_session=session,
# #
# Spanish # Spanish
# #

View File

@@ -51,7 +51,6 @@ async def main():
) )
elevenlabs_tts = ElevenLabsTTSService( elevenlabs_tts = ElevenLabsTTSService(
aiohttp_session=session,
api_key=os.getenv("ELEVENLABS_API_KEY"), api_key=os.getenv("ELEVENLABS_API_KEY"),
voice_id=os.getenv("ELEVENLABS_VOICE_ID"), voice_id=os.getenv("ELEVENLABS_VOICE_ID"),
) )

View File

@@ -48,7 +48,6 @@ async def main():
region=os.getenv("AZURE_SPEECH_REGION"), region=os.getenv("AZURE_SPEECH_REGION"),
) )
tts2 = ElevenLabsTTSService( tts2 = ElevenLabsTTSService(
aiohttp_session=session,
api_key=os.getenv("ELEVENLABS_API_KEY"), api_key=os.getenv("ELEVENLABS_API_KEY"),
voice_id="jBpfuIE2acCO8z3wKNLl", voice_id="jBpfuIE2acCO8z3wKNLl",
) )

View File

@@ -8,7 +8,7 @@ from loguru import logger
from openai.types.chat import ChatCompletionToolParam from openai.types.chat import ChatCompletionToolParam
from pipecat.audio.vad.silero import SileroVADAnalyzer 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.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.pipeline.task import PipelineParams, PipelineTask