From 62db47f68e6b49bfb0e42fadcc7e5c54662a16a6 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Sun, 2 Oct 2022 22:15:45 +0900 Subject: [PATCH] Fix --- whispering/websocket_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whispering/websocket_client.py b/whispering/websocket_client.py index f3d5018..99798c2 100644 --- a/whispering/websocket_client.py +++ b/whispering/websocket_client.py @@ -41,7 +41,8 @@ async def transcribe_from_mic_and_send( ): async with websockets.connect(uri, max_size=999999999) as ws: # type:ignore logger.debug("Sent context") - await ws.send(ctx.json()) + v: str = ctx.json() + await ws.send("""{"context": """ + v + """}""") idx: int = 0 while True: