Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing tts speaking state update #376

Merged
merged 1 commit into from
Feb 11, 2025
Merged

fix: missing tts speaking state update #376

merged 1 commit into from
Feb 11, 2025

Conversation

drendog
Copy link
Contributor

@drendog drendog commented Feb 10, 2025

this fixes TTS in browsers like firefox when using the web speech api. The problem was caused by the missing state update for isSpeaking, which prevented the speech from being stopped once it started. This fix ensures that the isSpeaking state is properly updated, allowing the TTS to be stopped as expected. There is a small refactor to avoid repeatedly instantiating SpeechSynthesisUtterance on voice changing, and ensure that voice is properly set before speaking

@drendog drendog changed the title fix: missing tts speaking state management fix: missing tts speaking state update Feb 10, 2025
@n4ze3m n4ze3m self-requested a review February 11, 2025 15:50
Copy link
Owner

@n4ze3m n4ze3m left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! LGTM

@n4ze3m n4ze3m changed the base branch from main to next February 11, 2025 15:51
@n4ze3m n4ze3m merged commit 8121e49 into n4ze3m:next Feb 11, 2025
3 checks passed
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.

2 participants