Skip to content

Conversation

@AliHassan245
Copy link
Contributor

Fix #1666

@AliHassan245
Copy link
Contributor Author

@llaske, please have look at it. I have respected your constraints by integrating the browser’s native Speech Synthesis / Text to Speech (TTS) API into the codebase for smooth offline functionality using a completely Free/Open-source libraries and services.

@llaske
Copy link
Owner

llaske commented Mar 13, 2025

Good work 👍
Smart idea to use SpeechSynthesisUtterance that seems widely supported.
We'll be nice to transform the button into a two state start/stop button to be able to avoid restarting from the beginning.
Also the ink color of the button should be white instead of black to be visible on the toolbar.

@AliHassan245
Copy link
Contributor Author

@llaske Sir, I have transformed the button into a two-state start/stop control and added a white SVG icons to the toolbar.

@llaske
Copy link
Owner

llaske commented Mar 26, 2025

I've tested on Chromium, it doesn't work. Could you check on your side?

@AliHassan245
Copy link
Contributor Author

@llaske, SirI usually test on Chromium, and everything is working perfectly on my side. Could you please provide more details about the issue or any specific errors you're seeing? That might help me pinpoint any discrepancies between our environments.

Ebook.webm

@llaske
Copy link
Owner

llaske commented Mar 29, 2025

I've got the trace telling that the speech start but there is no sound.

image

Same issue on Chrome on the same PC (Ubuntu 24.04.2 LTS) thought it works on Firefox.

One other thing: it seems that you retrieve the full text and play it. So when clicking on the pause button, it pause only at the end of the text which it's not a good user experience.

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