does not allow interrupt in important stage
This commit is contained in:
parent
e8ef7c6da7
commit
b75fd71bc7
@ -482,7 +482,7 @@ class MyAgent(Agent):
|
||||
self._image_event.clear()
|
||||
|
||||
# Speak the capture prompt so the user hears what to do
|
||||
self.session.say(prompt, allow_interruptions=True)
|
||||
self.session.say(prompt, allow_interruptions=False)
|
||||
|
||||
# Ask for image capture and wait for user to capture/upload
|
||||
response = await room.local_participant.perform_rpc(
|
||||
@ -886,7 +886,7 @@ class MyAgent(Agent):
|
||||
payload_data["options"] = options
|
||||
|
||||
# Speak the message
|
||||
speech_handle = self.session.say(message, allow_interruptions=True)
|
||||
speech_handle = self.session.say(message, allow_interruptions=False)
|
||||
|
||||
# Wait for user selection with longer timeout since user needs time to respond
|
||||
response = await room.local_participant.perform_rpc(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user