[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-accessibility
Subject:    Re: How to configure Qtspeech
From:       Jeremy Whiting <jpwhiting () kde ! org>
Date:       2019-09-22 0:54:40
Message-ID: CADWV2K5SQLkgTpZOunB-g0PJ1CGy2MM3Wc1knkeWAMTd5qAUdw () mail ! gmail ! com
[Download RAW message or body]

Hi Gustav,

I see, no worries. In okular/qtspeech news the other day I played with
okular's speak current page/document a bit on linux here and found a couple
of issues I'm considering how to fix:

1) QtSpeech on linux loads the speech plugin randomly unless a specific
plugin is specified. Okular's use of QtSpeech doesn't specify a plugin
which is probably best, but because of this if you have both the
speech-dispatcher and the flite qtspeech plugin installed it randomly uses
one or the other to speak. Here I don't have flite installed, but do have a
working speech-dispatcher, so half of the time I wouldn't get any speech at
all (when it chose the flite plugin). I'm thinking to fix this either
okular needs a setting to let the user choose which speech plugin to use,
or QtSpeech itself needs a configuration to let the user say which plugin
they prefer.
2) There's not a way to pause/resume. For this I added a patch to okular
that is up for review here: https://phabricator.kde.org/D24102 which seems
to work nicely so far (when QtSpeech randomly chooses the right plugin
anyway) to let me pause/resume what it's reading.

As for general speak clipboard contents I think a good place to add this
feature would be in klipper itself that comes with plasma-desktop. I'll get
that in place next I think. My idea is to have a context menu item in
Klipper's system tray icon to speak clipboard contents and also an
associated action that could be bound to a keyboard shortcut so ctrl-c to
copy, then whatever you assign to speak clipboard contents to speak what
was copied, similar to how it's done with Jovie.

As for hearing multiple voices overlapping each other, I don't see how that
could be happening, but in order to try to recreate it here could you send
me your speech-dispatcher configuration files? Basically all files under
~/.config/speech-dispatcher/

thanks,
Jeremy

On Sat, Sep 21, 2019 at 6:34 PM Gustav Degreef <gustav97@gmail.com> wrote:

> Looking back over it, I realize the question does not make sense.  I am
> just struggling to figure out how to use Qtspeech in a simple way.
> Thanks, Gustav.
>
> On 9/18/19 10:43 PM, Jeremy Whiting wrote:
> > Hi Gustav,
> >
> > On Wed, Sep 18, 2019 at 6:52 PM Gustav Degreef <gustav97@gmail.com
> > <mailto:gustav97@gmail.com>> wrote:
> ....
> >
> >      Maybe this is a
> >     dumb question, but would it work with Qtspeech?=C3=82
> >
> >
> > Would what work with QtSpeech? I'm not sure what you're asking here.
> > ktts was renamed to jovie, neither of them uses QtSpeech.
> > =C3=82
> >
> >
> >     On 9/18/19 10:27 AM, Jeremy Whiting wrote:
> >     > ktts is what jovie came from. It's much much older and does the
> same
> >     > thing (ktts just got renamed to jovie when I refactored ktts to u=
se
> >     > speech-dispatcher instead of a bunch of it's own synthesizer
> >     modules).
> >
>
>

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi Gustav,</div><div><br></div><div>I see, no worries. In okular/qtspeech news the \
other day I played with okular&#39;s speak current page/document a bit on linux here and found a couple \
of issues I&#39;m considering how to fix:</div><div><br></div><div>1) QtSpeech on linux loads the speech \
plugin randomly unless a specific plugin is specified. Okular&#39;s use of QtSpeech doesn&#39;t specify a \
plugin which is probably best, but because of this if you have both the speech-dispatcher and the flite \
qtspeech plugin installed it randomly uses one or the other to speak. Here I don&#39;t have flite \
installed, but do have a working speech-dispatcher, so half of the time I wouldn&#39;t get any speech at \
all (when it chose the flite plugin). I&#39;m thinking to fix this either okular needs a setting to let \
the user choose which speech plugin to use, or QtSpeech itself needs a configuration to let the user say \
which plugin they prefer.</div><div>2) There&#39;s not a way to pause/resume. For this I added a patch to \
okular that is up for review here: <a \
href="https://phabricator.kde.org/D24102">https://phabricator.kde.org/D24102</a> which seems to work \
nicely so far (when QtSpeech randomly chooses the right plugin anyway) to let me pause/resume what \
it&#39;s reading.</div><div><br></div><div>As for general speak clipboard contents I think a good place \
to add this feature would be in klipper itself that comes with plasma-desktop. I&#39;ll get that in place \
next I think. My idea is to have a context menu item in Klipper&#39;s system tray icon to speak clipboard \
contents and also an associated action that could be bound to a keyboard shortcut so ctrl-c to copy, then \
whatever you assign to speak clipboard contents to speak what was copied, similar to how it&#39;s done \
with Jovie.</div><div><br></div><div>As for hearing multiple voices overlapping each other, I don&#39;t \
see how that could be happening, but in order to try to recreate it here could you send me your \
speech-dispatcher configuration files? Basically all files under ~/.config/speech-dispatcher/ \
<br></div><div><br></div><div>thanks,</div><div>Jeremy<br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Sat, Sep 21, 2019 at 6:34 PM Gustav Degreef &lt;<a \
href="mailto:gustav97@gmail.com">gustav97@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Looking back over it, I realize the question does not make sense.   I \
am<br> just struggling to figure out how to use Qtspeech in a simple way.  <br>
Thanks, Gustav.<br>
<br>
On 9/18/19 10:43 PM, Jeremy Whiting wrote:<br>
&gt; Hi Gustav,<br>
&gt;<br>
&gt; On Wed, Sep 18, 2019 at 6:52 PM Gustav Degreef &lt;<a href="mailto:gustav97@gmail.com" \
target="_blank">gustav97@gmail.com</a><br> &gt; &lt;mailto:<a href="mailto:gustav97@gmail.com" \
                target="_blank">gustav97@gmail.com</a>&gt;&gt; wrote:<br>
....<br>
&gt;<br>
&gt;          Maybe this is a<br>
&gt;        dumb question, but would it work with Qtspeech?   <br>
&gt;<br>
&gt;<br>
&gt; Would what work with QtSpeech? I&#39;m not sure what you&#39;re asking here.<br>
&gt; ktts was renamed to jovie, neither of them uses QtSpeech.<br>
&gt; Â  <br>
&gt;<br>
&gt;<br>
&gt;        On 9/18/19 10:27 AM, Jeremy Whiting wrote:<br>
&gt;        &gt; ktts is what jovie came from. It&#39;s much much older and does the same<br>
&gt;        &gt; thing (ktts just got renamed to jovie when I refactored ktts to use<br>
&gt;        &gt; speech-dispatcher instead of a bunch of it&#39;s own synthesizer<br>
&gt;        modules).<br>
&gt;<br>
<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic