From 10289c1f1c5f408ce413fef45cca8cb026ba834e Mon Sep 17 00:00:00 2001 From: James Hush Date: Fri, 2 May 2025 11:18:44 +0800 Subject: [PATCH] Remove extra code --- examples/simple-chatbot/server/bot-openai.py | 21 +++++--------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/examples/simple-chatbot/server/bot-openai.py b/examples/simple-chatbot/server/bot-openai.py index 894b843f9..94f6d1470 100644 --- a/examples/simple-chatbot/server/bot-openai.py +++ b/examples/simple-chatbot/server/bot-openai.py @@ -216,20 +216,14 @@ async def main(): # # RTVI events for Pipecat client UI # - # options = RTVIServiceOptionConfig(name="say", value=) - # tts_interrupt = RTVIServiceConfig(service="tts", options=[options]) - default_config = RTVIConfig( - config=[ - RTVIServiceConfig( - service="tts", - options=[], - ), - ] + rtvi = RTVIProcessor() + + rtvi_tts = RTVIService( + name="tts", + options=[], ) - rtvi = RTVIProcessor(config=default_config) - async def action_tts_say_handler( rtvi: RTVIProcessor, service: str, arguments: Dict[str, Any] ) -> ActionResult: @@ -269,11 +263,6 @@ async def main(): service="tts", action="interrupt", result="bool", handler=action_tts_interrupt_handler ) - rtvi_tts = RTVIService( - name="tts", - options=[], - ) - rtvi.register_service(rtvi_tts) rtvi.register_action(action_tts_say) rtvi.register_action(action_tts_interrupt)