added open mic config var
This commit is contained in:
@@ -35,7 +35,7 @@ SERVE_STATIC = True
|
|||||||
STATIC_DIR = "../web-ui/dist"
|
STATIC_DIR = "../web-ui/dist"
|
||||||
STATIC_ROUTE = "/static"
|
STATIC_ROUTE = "/static"
|
||||||
STATIC_INDEX = "index.html"
|
STATIC_INDEX = "index.html"
|
||||||
|
USE_OPEN_MIC = False # Can the user freely talk, or do they need to wait their turn?
|
||||||
|
|
||||||
# ----------------- API ----------------- #
|
# ----------------- API ----------------- #
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ async def start_bot(request: Request) -> JSONResponse:
|
|||||||
"bot_id": proc.pid,
|
"bot_id": proc.pid,
|
||||||
"room_url": room_url,
|
"room_url": room_url,
|
||||||
"token": user_token,
|
"token": user_token,
|
||||||
"config": {"open_mic": True}})
|
"config": {"open_mic": USE_OPEN_MIC}})
|
||||||
|
|
||||||
|
|
||||||
# ----------------- Main ----------------- #
|
# ----------------- Main ----------------- #
|
||||||
|
|||||||
Reference in New Issue
Block a user