Skip to content

Conversation

AdvaitS
Copy link

@AdvaitS AdvaitS commented Aug 22, 2025

fix #3230

@CLAassistant
Copy link

CLAassistant commented Aug 22, 2025

CLA assistant check
All committers have signed the CLA.

if self._user_turn_completed_atask != asyncio.current_task():
if (
self._user_turn_completed_atask != asyncio.current_task()
and not speech_handle._allow_interruptions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we cancel the speech in this case? cc @theomonnom

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO manual interruption should always be allowed..

allow_interruption should be referencing if a user is able to interrupt via voice

Copy link
Member

@theomonnom theomonnom Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another PR added force=True to the interrupt method.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise I think this PR makes sense, but shouldn't it be the opposite? We check if interruptions is allowed, not disallowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Speech interruption attempted when allow_interruption is False
5 participants