Skip to content

Commit

Permalink
fix agent transcription could not be disabled (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Feb 6, 2025
1 parent c0e2db3 commit 6a7b018
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-rats-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-agents": patch
---

fix agent transcription could not be disabled
6 changes: 3 additions & 3 deletions livekit-agents/livekit/agents/pipeline/agent_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ def synthesize(
) -> SynthesisHandle:
def _before_forward(
fwd: agent_transcription.TTSSegmentsForwarder,
transcription: rtc.Transcription,
rtc_transcription: rtc.Transcription,
):
if not transcription:
transcription.segments = []
rtc_transcription.segments = []

return transcription
return rtc_transcription

transcription_fwd = agent_transcription.TTSSegmentsForwarder(
room=self._room,
Expand Down

0 comments on commit 6a7b018

Please sign in to comment.