lemon-hairdresser-98418
09/17/2025, 1:11 PMbrave-island-45242
09/17/2025, 3:21 PMself.session.input.set_audio_enabled(False)
If you need more granular control you can mute specific participant tracks:
await job_ctx.api.room.mute_published_track(
api.MuteRoomTrackRequest(
room=job_ctx.room.name,
identity=user.identity,
track_sid=user_audio_track_sid,
muted=True,
)
)
You can also use RoomIO and unset the participant and set it up again after 30 secs.refined-appointment-81829
09/17/2025, 4:18 PMlemon-hairdresser-98418
09/19/2025, 7:06 PMlemon-hairdresser-98418
09/19/2025, 7:14 PMbrave-island-45242
09/19/2025, 7:21 PMlemon-hairdresser-98418
09/20/2025, 6:59 PMsay() method to make the agent say each question. But in between, agent says some questions on its own. I adjusted isntructions to strictly follow the questions but it still misbehaves
code snippet
async def _run_part1(self):
"""Handles Part 1 of the test."""
await self.state_machine.transition_to(TestState.PART1_INTRO)
intro_text = self.conversation.get_part_greeting_script("part1")
await self.session_manager.say(intro_text, allow_interruptions=False)
await self.state_machine.transition_to(TestState.PART1_SPEAKING)
self.timing_manager.start_section(TestState.PART1_SPEAKING.value)
for question in PART1_QUESTIONS['home']:
if self.timing_manager.is_section_overtime():
break
await self.session_manager.say(question, allow_interruptions=True)
await asyncio.sleep(8)
await self.state_machine.transition_to(TestState.PART1_FINISH)
the output is kinda
"Agent
Thank you. Moving on.
What do you like most about your home?
What do you like about where you live?"brave-island-45242
09/22/2025, 3:02 PM