Merge pull request #168 from pipecat-ai/transcription-logging

transports(daily): add transcription logging
This commit is contained in:
Aleix Conchillo Flaqué
2024-05-23 11:42:51 +08:00
committed by GitHub

View File

@@ -700,6 +700,7 @@ class DailyTransport(BaseTransport):
is_final = message["rawResponse"]["is_final"]
if is_final:
frame = TranscriptionFrame(text, participant_id, timestamp)
logger.debug(f"Transcription (from: {participant_id}): [{text}]")
else:
frame = InterimTranscriptionFrame(text, participant_id, timestamp)