From 4c271b19a71008a644e74aeb621ae38e161a076c Mon Sep 17 00:00:00 2001 From: Ben Xu Date: Mon, 30 Dec 2024 15:26:15 -0500 Subject: [PATCH] remove separate transcriptions --- software/source/server/livekit/transcriptions.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 software/source/server/livekit/transcriptions.py diff --git a/software/source/server/livekit/transcriptions.py b/software/source/server/livekit/transcriptions.py deleted file mode 100644 index 7a572c2..0000000 --- a/software/source/server/livekit/transcriptions.py +++ /dev/null @@ -1,14 +0,0 @@ -from livekit.agents import stt, transcription - -async def _forward_transcription( - stt_stream: stt.SpeechStream, - stt_forwarder: transcription.STTSegmentsForwarder, -): - """Forward the transcription to the client and log the transcript in the console""" - async for ev in stt_stream: - stt_forwarder.update(ev) - if ev.type == stt.SpeechEventType.INTERIM_TRANSCRIPT: - print(ev.alternatives[0].text, end="") - elif ev.type == stt.SpeechEventType.FINAL_TRANSCRIPT: - print("\n") - print(" -> ", ev.alternatives[0].text) \ No newline at end of file