From 88992c1d9b3190a56901cc915ac4b5f361330aa8 Mon Sep 17 00:00:00 2001 From: Jon Taylor Date: Thu, 16 May 2024 19:36:00 +0100 Subject: [PATCH] added open mic config var --- examples/simple-chatbot/bot_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple-chatbot/bot_runner.py b/examples/simple-chatbot/bot_runner.py index e4fce47b8..bd19bd04d 100644 --- a/examples/simple-chatbot/bot_runner.py +++ b/examples/simple-chatbot/bot_runner.py @@ -35,7 +35,7 @@ SERVE_STATIC = True STATIC_DIR = "../web-ui/dist" STATIC_ROUTE = "/static" STATIC_INDEX = "index.html" - +USE_OPEN_MIC = False # Can the user freely talk, or do they need to wait their turn? # ----------------- API ----------------- # @@ -132,7 +132,7 @@ async def start_bot(request: Request) -> JSONResponse: "bot_id": proc.pid, "room_url": room_url, "token": user_token, - "config": {"open_mic": True}}) + "config": {"open_mic": USE_OPEN_MIC}}) # ----------------- Main ----------------- #