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: disable if tts gets too long #1195

Merged
merged 53 commits into from
Feb 26, 2024
Merged

fix: disable if tts gets too long #1195

merged 53 commits into from
Feb 26, 2024

Conversation

SputNikPlop
Copy link
Collaborator

This disabled tts if the queue gets too long.

@SputNikPlop SputNikPlop linked an issue Jan 19, 2024 that may be closed by this pull request
Copy link
Contributor

@kevmo314 kevmo314 left a comment

Choose a reason for hiding this comment

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

Can you add some unit tests?

lib/tts_plugin.dart Outdated Show resolved Hide resolved
lib/tts_plugin.dart Outdated Show resolved Hide resolved
lib/screens/home.dart Outdated Show resolved Hide resolved
lib/screens/home.dart Outdated Show resolved Hide resolved
@jessielw jessielw self-requested a review February 15, 2024 22:56
jessielw and others added 8 commits February 19, 2024 23:28
refactor: import main.dart to enable channel swapping via it's function updateChannelSubscription
fix: queued text to speech not working correctly
…ted before going to the next item in the queue

fix: fixed an error where it would sometimes delete the item that was next in queue
feat: create a ttsqueueelement class to be used throughout our main queue class as needed
fix: disabling of text to speech when messages are greater than 20
Copy link
Contributor

@kevmo314 kevmo314 left a comment

Choose a reason for hiding this comment

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

Nice, code looks good. @SputNikPlop can you verify and test?

lib/models/tts.dart Outdated Show resolved Hide resolved
lib/models/tts.dart Outdated Show resolved Hide resolved
lib/screens/home.dart Outdated Show resolved Hide resolved
lib/screens/home.dart Outdated Show resolved Hide resolved
lib/screens/home.dart Outdated Show resolved Hide resolved
lib/tts_isolate.dart Outdated Show resolved Hide resolved
lib/tts_isolate.dart Outdated Show resolved Hide resolved
jessielw and others added 6 commits February 22, 2024 21:18
Co-authored-by: Kevin Wang <kevmo314@gmail.com>
Co-authored-by: Kevin Wang <kevmo314@gmail.com>
Co-authored-by: Kevin Wang <kevmo314@gmail.com>
Co-authored-by: Kevin Wang <kevmo314@gmail.com>
Copy link
Contributor

@kevmo314 kevmo314 left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a few comments.

lib/components/drawer/sidebar.dart Outdated Show resolved Hide resolved
lib/models/tts.dart Outdated Show resolved Hide resolved
lib/tts_plugin.dart Outdated Show resolved Hide resolved
@jessielw jessielw merged commit db2dfe9 into main Feb 26, 2024
4 checks passed
@jessielw jessielw deleted the 1186 branch February 26, 2024 21:33
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.

Disable TTS if the queue gets too long
3 participants