Add on-the-fly Configure support for Deepgram Flux STT

Wire up the existing settings update infrastructure to send a Configure
WebSocket message when keyterm, eot_threshold, eager_eot_threshold, or
eot_timeout_ms change mid-stream, avoiding a full reconnect.
This commit is contained in:
Mark Backman
2026-03-07 08:37:27 -05:00
parent fdf9fb6f02
commit c5da3cf2bd
2 changed files with 58 additions and 6 deletions

View File

@@ -100,6 +100,19 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
context.add_message({"role": "user", "content": "Please introduce yourself to the user."})
await task.queue_frames([LLMRunFrame()])
# Update configure-able fields mid-stream (sent via Configure message,
# no reconnect needed).
await asyncio.sleep(10)
logger.info("Updating Deepgram Flux STT settings: eot_threshold, keyterm")
await task.queue_frame(
STTUpdateSettingsFrame(
delta=DeepgramFluxSTTSettings(
eot_threshold=0.8,
keyterm=["Pipecat", "Deepgram"],
)
)
)
await asyncio.sleep(10)
logger.info("Updating Deepgram Flux STT settings: language=es")
await task.queue_frame(