diff --git a/docs/integrations-and-sdks/pipecat/assets/main.py b/docs/integrations-and-sdks/pipecat/assets/main.py index 3d837e90..8b614496 100644 --- a/docs/integrations-and-sdks/pipecat/assets/main.py +++ b/docs/integrations-and-sdks/pipecat/assets/main.py @@ -36,19 +36,19 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): async with aiohttp.ClientSession() as session: stt = SpeechmaticsSTTService( api_key=os.getenv("SPEECHMATICS_API_KEY"), - params=SpeechmaticsSTTService.InputParams( + settings=SpeechmaticsSTTService.Settings( turn_detection_mode=SpeechmaticsSTTService.TurnDetectionMode.EXTERNAL, ), ) llm = OpenAILLMService( api_key=os.getenv("OPENAI_API_KEY"), - model="gpt-4o-mini", + settings=OpenAILLMService.Settings(model="gpt-4o-mini"), ) tts = SpeechmaticsTTSService( api_key=os.getenv("SPEECHMATICS_API_KEY"), - voice_id="sarah", + settings=SpeechmaticsTTSService.Settings(voice="sarah"), aiohttp_session=session, ) diff --git a/docs/integrations-and-sdks/pipecat/index.mdx b/docs/integrations-and-sdks/pipecat/index.mdx index 3d658074..33b0b6c9 100644 --- a/docs/integrations-and-sdks/pipecat/index.mdx +++ b/docs/integrations-and-sdks/pipecat/index.mdx @@ -37,7 +37,7 @@ mkdir voice-agent && cd voice-agent Create a `requirements.txt` file: ```text title="requirements.txt" -pipecat-ai[local-smart-turn-v3,silero,speechmatics,webrtc,openai,runner] +pipecat-ai[local-smart-turn,silero,speechmatics,webrtc,openai,runner] pipecat-ai-small-webrtc-prebuilt python-dotenv loguru