Re: Is there a project that is jovie successor? (fwd)

Jeremy Whiting <[email protected]> Tue, 26 Oct 2021 09:36:55 -0600
Newsgroups gmane.comp.kde.devel.accessibility
Message-ID <CADWV2K6Ku24o8UerCiMeC-SvMeqMg0zoj5s9=qUYsONBcW5C1w@mail.gmail.com>
--00000000000036a86505cf434027
Content-Type: text/plain; charset="UTF-8"

Gustav,

Ok, the quickest way to debug this will be to set a LogDir in
/etc/speech-dispatcher/speechd.conf like this:

#LogDir "default" <-- Comment out this one if it's not by adding the # at
the front.
LogDir "/home/jeremy/sdlogs/"

sudo will be needed to edit those files in /etc/speech-dispatcher/

you'll need to create an sdlogs folder in your home directory (I tried
using the default opensuse /var/log/speech-dispatcher path, but sd running
as me couldn't write there and it's complicated, better to just make a new
path in your home folder and point to it. Also use your username, not
jeremy :)

Then when you run spd-say "Hello" or whatever it will create a few log
files in that sdlogs path. I would say do that a couple of times then have
okular speak the current page a couple of times. Then zip up that sdlogs
folder and send it here and we can take a look at what speech-dispatcher is
getting, and hopefully find out why it sounds garbled on your audio system.

BR,
Jeremy

On Tue, Oct 26, 2021 at 8:29 AM Jeremy Whiting <[email protected]> wrote:

>
>
> On Tue, Oct 26, 2021 at 8:09 AM Gustav Degreef <[email protected]> wrote:
>
>> Hi Jeremy,
>>
>> Deeply appreciate your time and effort, but no luck.
>>
>>   user:~/QtSpeech/hello_speak> qmake-qt5
>> Info: creating stash file /home/user/QtSpeech/hello_speak/.qmake.stash
>> Project ERROR: Unknown module(s) in QT: texttospeech
>>
>
> Ok, from that it seems you don't have the -devel package needed to build
> things against QtSpeech. For that install the following:
>
> sudo zypper install libqt5-qtspeech-devel
>
> Then you should be able to build hello_speak.
>
> But since speech-dispatcher itself doesn't have the problem (spd-say
> didn't duplicate) the problem is either in Okular's use of QtSpeech (not
> likely, it's one line that calls QtSpeech) or QtSpeech itself. On my test
> vm I've only got the speechd plugin for QtSpeech in
> /usr/lib64/qt5/plugins/texttospeech/
> On your machine do you have a flite plugin there also from some package
> from 15.0 or 15.1 times maybe (I don't see any flite plugin package in 15.2
> repos, but maybe you got it before upgrading).
>
> I took another look at QtSpeech code itself though and I don't see any way
> it would ever use more than one plugin or send the text to multiple
> plugins. Then I took a look at the speechd plugin again and it definitely
> only sends the text it gets to spd_say function once. I think the next
> thing to try will be to enable debugging in speech-dispatcher (after we are
> sure that's what plugin QtSpeech is using) and see what text it's getting
> to synthesize from okular. I'll write up some instructions for that once I
> do it here and remember how it's done :)
>
> thanks,
> Jeremy
>
> user:~/QtSpeech/hello_speak> make
>> make: *** No targets specified and no makefile found.  Stop.
>>
>> Since your opensuse VM is working fine, I doube checked my
>> installations.  I have a 17 inch laptop and a 13 inch old one that I use
>> for traveling.  Both machines have a main partition opensuse 15.2 and a
>> "test" partition with opensuse 15.3.  3/4 of these installations have
>> the duplicate voices in Okular and Kmouth. Only 1 15.3 installation is
>> having a normal speech output in Ojular.  All 4 installations are
>> upgraded systems (from previous opensuse 15.0, 15.1 and prior releases.
>> So none of them is a "clean" install like your VM.
>>
>> I tried building it on each laptop, but the same result.   You were
>> reight at the beginnig, it's turning out quite difficult to track down.
>> Any other suggestions?
>>
>> If all else fails, I'll do a clean install of 15.3 on one of these 4
>> partitions.
>>
>> Thanks, Gustav.
>>
>>
>> Truncating the rest to get past mailing list size limit without approval.
>

--00000000000036a86505cf434027
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">Gustav,</div><div class=3D"gmail_default" style=3D"font-family:monospace=
"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">Ok=
, the quickest way to debug this will be to set a LogDir in /etc/speech-dis=
patcher/speechd.conf like this:</div><div class=3D"gmail_default" style=3D"=
font-family:monospace"><br></div><div class=3D"gmail_default" style=3D"font=
-family:monospace">#LogDir &quot;default&quot; &lt;-- Comment out this one =
if it&#39;s not by adding the # at the front.<br></div><div class=3D"gmail_=
default" style=3D"font-family:monospace">LogDir &quot;/home/jeremy/sdlogs/&=
quot;</div><div class=3D"gmail_default" style=3D"font-family:monospace"><br=
></div><div class=3D"gmail_default" style=3D"font-family:monospace">sudo wi=
ll be needed to edit those files in /etc/speech-dispatcher/</div><div class=
=3D"gmail_default" style=3D"font-family:monospace"><br></div><div class=3D"=
gmail_default" style=3D"font-family:monospace">you&#39;ll need to create an=
 sdlogs folder in your home directory (I tried using the default opensuse /=
var/log/speech-dispatcher path, but sd running as me couldn&#39;t write the=
re and it&#39;s complicated, better to just make a new path in your home fo=
lder and point to it. Also use your username, not jeremy :)</div><div class=
=3D"gmail_default" style=3D"font-family:monospace"><br></div><div class=3D"=
gmail_default" style=3D"font-family:monospace">Then when you run spd-say &q=
uot;Hello&quot; or whatever it will create a few log files in that sdlogs p=
ath. I would say do that a couple of times then have okular speak the curre=
nt page a couple of times. Then zip up that sdlogs folder and send it here =
and we can take a look at what speech-dispatcher is getting, and hopefully =
find out why it sounds garbled on your audio system.</div><div class=3D"gma=
il_default" style=3D"font-family:monospace"><br></div><div class=3D"gmail_d=
efault" style=3D"font-family:monospace">BR,</div><div class=3D"gmail_defaul=
t" style=3D"font-family:monospace">Jeremy<br></div></div><br><div class=3D"=
gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Oct 26, 2021 at =
8:29 AM Jeremy Whiting &lt;<a href=3D"mailto:[email protected]">jpwhiting@k=
de.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=
=3D"font-family:monospace"><br></div></div><br><div class=3D"gmail_quote"><=
div dir=3D"ltr" class=3D"gmail_attr">On Tue, Oct 26, 2021 at 8:09 AM Gustav=
 Degreef &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">gustav=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin=
g-left:1ex">Hi Jeremy,<br>
<br>
Deeply appreciate your time and effort, but no luck.<br>
<br>
=C2=A0=C2=A0user:~/QtSpeech/hello_speak&gt; qmake-qt5<br>
Info: creating stash file /home/user/QtSpeech/hello_speak/.qmake.stash<br>
Project ERROR: Unknown module(s) in QT: texttospeech<br></blockquote><div><=
br></div><div style=3D"font-family:monospace" class=3D"gmail_default">Ok, f=
rom that it seems you don&#39;t have the -devel package needed to build thi=
ngs against QtSpeech. For that install the following:</div><div style=3D"fo=
nt-family:monospace" class=3D"gmail_default"><br></div><div style=3D"font-f=
amily:monospace" class=3D"gmail_default">sudo zypper install libqt5-qtspeec=
h-devel</div><div style=3D"font-family:monospace" class=3D"gmail_default"><=
br></div><div style=3D"font-family:monospace" class=3D"gmail_default">Then =
you should be able to build hello_speak.</div><div style=3D"font-family:mon=
ospace" class=3D"gmail_default"><br></div><div style=3D"font-family:monospa=
ce" class=3D"gmail_default">But since speech-dispatcher itself doesn&#39;t =
have the problem (spd-say didn&#39;t duplicate) the problem is either in Ok=
ular&#39;s use of QtSpeech (not likely, it&#39;s one line that calls QtSpee=
ch) or QtSpeech itself. On my test vm I&#39;ve only got the speechd plugin =
for QtSpeech in <br></div><div style=3D"font-family:monospace" class=3D"gma=
il_default">/usr/lib64/qt5/plugins/texttospeech/</div><div style=3D"font-fa=
mily:monospace" class=3D"gmail_default">On your machine do you have a flite=
 plugin there also from some package from 15.0 or 15.1 times maybe (I don&#=
39;t see any flite plugin package in 15.2 repos, but maybe you got it befor=
e upgrading).</div><div style=3D"font-family:monospace" class=3D"gmail_defa=
ult"><br></div><div style=3D"font-family:monospace" class=3D"gmail_default"=
>I took another look at QtSpeech code itself though and I don&#39;t see any=
 way it would ever use more than one plugin or send the text to multiple pl=
ugins. Then I took a look at the speechd plugin again and it definitely onl=
y sends the text it gets to spd_say function once. I think the next thing t=
o try will be to enable debugging in speech-dispatcher (after we are sure t=
hat&#39;s what plugin QtSpeech is using) and see what text it&#39;s getting=
 to synthesize from okular. I&#39;ll write up some instructions for that on=
ce I do it here and remember how it&#39;s done :)</div><div style=3D"font-f=
amily:monospace" class=3D"gmail_default"><br></div><div style=3D"font-famil=
y:monospace" class=3D"gmail_default">thanks,</div><div style=3D"font-family=
:monospace" class=3D"gmail_default">Jeremy</div><div style=3D"font-family:m=
onospace" class=3D"gmail_default"><br></div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">
user:~/QtSpeech/hello_speak&gt; make<br>
make: *** No targets specified and no makefile found.=C2=A0 Stop.<br>
<br>
Since your opensuse VM is working fine, I doube checked my <br>
installations.=C2=A0 I have a 17 inch laptop and a 13 inch old one that I u=
se <br>
for traveling.=C2=A0 Both machines have a main partition opensuse 15.2 and =
a <br>
&quot;test&quot; partition with opensuse 15.3.=C2=A0 3/4 of these installat=
ions have <br>
the duplicate voices in Okular and Kmouth. Only 1 15.3 installation is <br>
having a normal speech output in Ojular.=C2=A0 All 4 installations are <br>
upgraded systems (from previous opensuse 15.0, 15.1 and prior releases.=C2=
=A0 <br>
So none of them is a &quot;clean&quot; install like your VM.<br>
<br>
I tried building it on each laptop, but the same result.=C2=A0=C2=A0 You we=
re <br>
reight at the beginnig, it&#39;s turning out quite difficult to track down.=
=C2=A0 <br>
Any other suggestions?<br>
<br>
If all else fails, I&#39;ll do a clean install of 15.3 on one of these 4 <b=
r>
partitions.<br>
<br>
Thanks, Gustav.<br>
<br>
<br></blockquote><div><span class=3D"gmail_default" style=3D"font-family:mo=
nospace">Truncating the rest to get past mailing list size limit without ap=
proval.</span> <br></div></div></div>
</blockquote></div>

--00000000000036a86505cf434027--