Suppress UserStartedSpeakingFrame and UserStoppedSpeakingFrame when muted

This commit is contained in:
Mark Backman
2024-11-14 17:11:51 -05:00
parent 33108f5798
commit f807f233bd
2 changed files with 15 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ async def main():
stt = DeepgramSTTService(api_key=os.getenv("DEEPGRAM_API_KEY"))
# Configure the mute processor to mute only during first speech
stt_mute_processor = STTMuteProcessor(
stt_service=stt, config=STTMuteConfig(strategy=STTMuteStrategy.ALWAYS)
stt_service=stt, config=STTMuteConfig(strategy=STTMuteStrategy.FIRST_SPEECH)
)
tts = DeepgramTTSService(api_key=os.getenv("DEEPGRAM_API_KEY"), voice="aura-helios-en")