STTMuteFilter: ignore audio frames so no transcriptions are generated

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-17 18:59:13 -08:00
parent b45f7fee6f
commit 90b9dce710
3 changed files with 41 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ from pipecat.frames.frames import (
Frame,
FunctionCallInProgressFrame,
FunctionCallResultFrame,
InputAudioRawFrame,
StartFrame,
StartInterruptionFrame,
StopInterruptionFrame,
@@ -185,6 +186,7 @@ class STTMuteFilter(FrameProcessor):
StopInterruptionFrame,
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
InputAudioRawFrame,
),
):
# Only pass VAD-related frames when not muted