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

Reading aloud takes a long time to start #158

Open
DraganRatkovich opened this issue May 8, 2022 · 2 comments
Open

Reading aloud takes a long time to start #158

DraganRatkovich opened this issue May 8, 2022 · 2 comments
Labels
Improvement Improving or fixing an existing feature

Comments

@DraganRatkovich
Copy link
Collaborator

When a document is open and F5 is pressed to start reading aloud, Bookworm takes a little longer to start reading the document.

To reproduce:

  1. Open any type and size of document;
  2. Press F5 to start reading aloud and see the results.

Expected Behavior

The bookworm should start reading the document without delay.

Also, it should be noted that when the document is paused and then resumed, reading starts immediately, but when F7 is pressed and the document has been completely stopped, again, pressing F5 still delays the start of reading the document.

Desktop information:

  • OS: Windows 10 X64-bit;
  • Bookworm version: latest, downloaded from AppVeyor both X32 and X64-bits;
  • Last changed settings: none.

Additional info

This issue affects both 32-bit and 64-bit versions.

@TheQuinbox
Copy link
Contributor

Yeah, this is because Bookworm doesn't chunk text-to-speech, it tries to speak the hole string, which naturally takes time to process. QRead does this too. There's honestly no real good way to handle this, because you have to decide:

  • How big a chunk should be.
  • If you choose too big of a chunk size, there could be, at least to the user, seemingly random pauses in the text.
  • This is less of a problem now, but back when Bookworm would render pages in their own text fields, and not load the entire document at once, you would've had to have accounted for that, too
    @mush42, any thoughts?

@mush42
Copy link
Collaborator

mush42 commented Jun 12, 2022

@TheQuinbox
I've some ideas to improve text processing, the least of which is to use a regex to determine the starting position of paragraphs.
Alternatively, we can use a speech generator; which tokenizes the text piece by piece, yielding specified text segments on demand.

@DraganRatkovich DraganRatkovich added the Improvement Improving or fixing an existing feature label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improving or fixing an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants