jimholgate / readtextextension

An Apache OpenOffice & LibreOffice extension to read text with an external program
19 stars 4 forks source link

problem with pico #15

Closed DoctorSubtilis closed 4 years ago

DoctorSubtilis commented 5 years ago

I found that read-text extension is better with python+pico than with espeak.
But I cannot set properly pico:

1 bug: "--visible=false"

But with python+pico I cannot set, for example

"(PICO_READ_TEXT_PY)" --language=(SELECTION_LANGUAGE_COUNTRY_CODE) --visible=false "(TMP)"

lest I get a window of VLC freezing (infinite loop without sound, and so I have to kill that task); in other words the code

--visible=false  

is not working: I see a window, but a crazy window.

2 bug

When I set pico as following:

"(PICO_READ_TEXT_PY)" --language=(SELECTION_LANGUAGE_COUNTRY_CODE) "(TMP)"  

I get a window of mplayer, which correctly play the word selected, but

Thanks

My OS: Kubuntu 18.04 LO: 6.0.7.3

jimholgate commented 4 years ago

I tested VLC on Ubuntu 18.04 LTS and it seems that currently it does not work for this particular application. I removed mentions of the VLC media player from the python readtexttools library for the extension. This fixes the problem. Until the modified version is released, you could make audio work by installing a player with a gstreamer backend like Rhythm box or Totem.

jimholgate commented 4 years ago

Fixed in current release.