feat: include draft progress in ingestion payload when streaming is enabled
This commit is contained in:
@@ -263,6 +263,11 @@ def main():
|
|||||||
if draft_text:
|
if draft_text:
|
||||||
sys.stdout.write(f"\r\033[K[DRAFT]: {draft_text}")
|
sys.stdout.write(f"\r\033[K[DRAFT]: {draft_text}")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
# Send draft to ingest if enabled
|
||||||
|
if args.ingest:
|
||||||
|
ingest_queue.put({"draft": draft_text})
|
||||||
|
|
||||||
last_stream_time = time.time()
|
last_stream_time = time.time()
|
||||||
|
|
||||||
elif not speech_started and len(current_audio) > SAMPLERATE * 2:
|
elif not speech_started and len(current_audio) > SAMPLERATE * 2:
|
||||||
|
|||||||
Reference in New Issue
Block a user