foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.98k stars 308 forks source link

bug report: tts speeching have unwanted short pause between two text block by page split #639

Open 99degree opened 4 years ago

99degree commented 4 years ago

The continue tts speech have short pause happened between page flip text location. that page split does cut last one sentence into two instead of last full sentence or question mark prier to the incomplete sentence. The unwanted pause is exactly map on the mentioned sentence break. The break is easily verified with tts dialog's "text display" sub-popup.

rlpowell commented 10 months ago

I use TTS every day and I have never seen this; there's a "break at page turn" option in the TTS settings, but I'm assuming you already turned that off. If you've got a book that causes this even with that option off, that's surprising, please attach it to the ticket if doing so will not be a copyright violation. If that doesn't work out, you can send it to me at robinleepowell (at) gmail.com and I'll see that the primary developer gets it if necessary.

acapper commented 10 months ago

@rlpowell I also have this issue and am able to replicate it across a variety of books consistently.

I have attached an example book and recording. You can hear very clearly after "hedge" at 37s the pause before the next audio segment is played.

If I were to guess what the issue might be it could be that the pause is caused while the next audio segment is being generated. The fix for that if it is the issue is to make some sort of buffer to store upcoming and previous audio clips to allow for quicker loading by pre generating them.

https://archive.org/details/alices-adventures-in-wonderland-lewis-carroll

https://github.com/foobnix/LibreraReader/assets/16818057/3c17f7ef-b027-4211-9790-49a3bb0cfa48