Append full transcription in websocket processing
This commit is contained in:
parent
0d833eaea2
commit
122368bff3
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
||||||
pcm_buffer = bytearray()
|
pcm_buffer = bytearray()
|
||||||
online.insert_audio_chunk(pcm_array)
|
online.insert_audio_chunk(pcm_array)
|
||||||
transcription = online.process_iter()[2]
|
transcription = online.process_iter()[2]
|
||||||
|
full_transcription += transcription
|
||||||
if args.vac:
|
if args.vac:
|
||||||
buffer = online.online.to_flush(online.online.transcript_buffer.buffer)[2] # We need to access the underlying online object to get the buffer
|
buffer = online.online.to_flush(online.online.transcript_buffer.buffer)[2] # We need to access the underlying online object to get the buffer
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue