internetarchive / bookreader

The Internet Archive BookReader
https://openlibrary.org/dev/docs/bookreader
GNU Affero General Public License v3.0
996 stars 418 forks source link

How to use TTS locally. #1313

Closed ivan20203 closed 9 months ago

ivan20203 commented 9 months ago

I just want to ask the specifics on how to configure TTS locally?

I have been able to get the images to work, by changing the uri in the BookReaderJSSimple.js ,

uri: '//archive.org/download/BookReader/img/page002.jpg' },

But how would i make TTS work?

I assume we need to use OCR to get the words and their position.

But lets say i use Archive OCR tools : https://github.com/internetarchive/archive-ocr-tools

Which would give me an OCR file of some sort.

How would i use this file to allow TTS reading locally?

dhpnli commented 6 months ago

Hi @ivan20203 where is the answer? How do you managed to make tts to work?

dhpnli commented 6 months ago

Hi @cdrini Maybe you can help here? How can I manage to "aligned" tts feature to work with our books?

Thanks ahead

ivan20203 commented 6 months ago

Yeah I could not figure it out. Either way i moved on to using Microsoft Edge TTS reader. I just changed the html styling so that it highlights only one line at a time.