Merge pull request #1702 from pipecat-ai/mb/stt-mute-transcription-frames

Add InterimTranscriptionFrame and TranscriptionFrame to STTMuteFilter…
This commit is contained in:
Mark Backman
2025-04-30 17:54:24 -04:00
committed by GitHub
3 changed files with 49 additions and 0 deletions

View File

@@ -24,10 +24,12 @@ from pipecat.frames.frames import (
FunctionCallInProgressFrame,
FunctionCallResultFrame,
InputAudioRawFrame,
InterimTranscriptionFrame,
StartFrame,
StartInterruptionFrame,
StopInterruptionFrame,
STTMuteFrame,
TranscriptionFrame,
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
)
@@ -175,6 +177,8 @@ class STTMuteFilter(FrameProcessor):
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
InputAudioRawFrame,
InterimTranscriptionFrame,
TranscriptionFrame,
),
):
# Only pass VAD-related frames when not muted