New event handlers for the DeepgramFluxSTTService.

This commit is contained in:
Filipi Fuchter
2025-10-30 16:09:07 -03:00
parent 5db0871a20
commit 52b33e5106
3 changed files with 18 additions and 0 deletions

View File

@@ -101,6 +101,10 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Client disconnected")
await task.cancel()
@stt.event_handler("on_update")
async def on_deepgram_flux_update(stt, transcript):
logger.debug(f"On deeggram flux update: {transcript}")
runner = PipelineRunner(handle_sigint=runner_args.handle_sigint)
await runner.run(task)