Bug 380459

Summary: read out loud
Product: [Applications] okular Reporter: fpg <paxon1991>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aacid, nate, simonandric5
Priority: NOR    
Version: 1.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description fpg 2017-06-02 09:54:03 UTC
The system of reading aloud does not work, since I need it for lack of vision, I would be grateful to have it fixed. Thank you
Comment 1 Nate Graham 2017-09-13 03:14:46 UTC
This isn't a part of Okular, is it? Isn't this a different program or a system service?
Comment 2 Albert Astals Cid 2017-09-13 21:41:53 UTC
It is, see
ui/tts.cpp

fpg which distribution are you using? You need to use one that provides the dependency for Qt5TextToSpeech
Comment 3 Nate Graham 2017-09-14 00:23:36 UTC
Thanks Albert. I can confirm that Okular has a text-to-speech feature when compiled with Qt5TextToSpeech. It doesn't in Kubuntu 17.04. I'll file a bug on that: https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1717131

That said, when I compile git master with libqt5texttospeech5-dev and launch Okular with a PDF, the feature is available, but neither "Speak Whole Document" nor "Speak Current Page" result in any sound. Console prints "No text-to-speech plug-ins were found."

What else is missing?
Comment 4 Albert Astals Cid 2017-09-14 17:32:36 UTC
On Archlinux you install the flite package.
Comment 5 Nate Graham 2017-09-19 04:16:59 UTC
Boom, got it working with the qtspeech5-flite-plugin package in Ubuntu. Updated https://bugs.launchpad.net/ubuntu/+source/okular/+bug/1717131

So this is a distro problem. Until and unless your distro resolves the issue for you, you can re-compile Okular with libqt5texttospeech5 and install qtspeech5-flite-plugin and it should work.