Bug 380459 - read out loud
Summary: read out loud
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-02 09:54 UTC by fpg
Modified: 2017-09-29 19:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.