mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 18:31:00 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b19bd4f683
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ async def serve_with_websocket_main(websocket):
|
|||
|
||||
logger.debug(f"Message size: {len(message)}")
|
||||
segment = np.frombuffer(message, dtype=np.float32)
|
||||
chunks = [chunk.dict() for chunk in g_wsp.transcribe(segment=segment)]
|
||||
await websocket.send(json.dumps(chunks))
|
||||
for chunk in g_wsp.transcribe(segment=segment):
|
||||
await websocket.send(chunk.json())
|
||||
idx += 1
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue