

Append full transcription in websocket processing
@b971ca3840544b8574e38c3a594fd960218492da
--- whisper_fastapi_online_server.py
+++ whisper_fastapi_online_server.py
... | ... | @@ -90,6 +90,7 @@ |
90 | 90 |
pcm_buffer = bytearray() |
91 | 91 |
online.insert_audio_chunk(pcm_array) |
92 | 92 |
transcription = online.process_iter()[2] |
93 |
+ full_transcription += transcription |
|
93 | 94 |
if args.vac: |
94 | 95 |
buffer = online.online.to_flush(online.online.transcript_buffer.buffer)[2] # We need to access the underlying online object to get the buffer |
95 | 96 |
else: |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?