Update examples to use default allow_interruptions, fixes to align examples

This commit is contained in:
Mark Backman
2025-06-19 10:02:16 -04:00
parent b5c0ac5f25
commit 9146def21b
147 changed files with 195 additions and 212 deletions

View File

@@ -75,7 +75,13 @@ async def main(room_url: str, token: str):
]
)
task = PipelineTask(pipeline, params=PipelineParams(allow_interruptions=True))
task = PipelineTask(
pipeline,
params=PipelineParams(
enable_metrics=True,
enable_usage_metrics=True,
),
)
@transport.event_handler("on_first_participant_joined")
async def on_first_participant_joined(transport, participant):