Re: Is there a project that is jovie successor? (fwd)
Jeremy Whiting <[email protected]> Tue, 26 Oct 2021 11:03:26 -0600
| Newsgroups | gmane.comp.kde.devel.accessibility |
|---|---|
| Message-ID | <CADWV2K6qMP5i4LWqop62b=EqZArPHANUvTUVzU892SNc-Z+9qA@mail.gmail.com> |
--000000000000a8510605cf447583 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Gustav, I see speech dispatcher itself started and ended a couple of times in there, but I don't see what text it was sent to synthesize. Did you try spd-say "Hello" or trying with okular to speak some document or a page? I was hoping to see something like this: Tue Oct 26 09:31:25 2021 [617497]: Espeak: Stop or pause thread starting....... Tue Oct 26 09:31:25 2021 [636516]: CMD: <SET > Tue Oct 26 09:31:25 2021 [636587]: CMD: <SPEAK > Tue Oct 26 09:31:25 2021 [636617]: Espeak: module_speak(). Tue Oct 26 09:31:25 2021 [636627]: Espeak: Requested data: |<speak>hello</speak>| 0 20 Tue Oct 26 09:31:25 2021 [636637]: Espeak: set_language_and_voice en 1 Tue Oct 26 09:31:25 2021 [636647]: Espeak: set_language_and_voice name=3De= n+0 Tue Oct 26 09:31:25 2021 [636840]: Espeak: Successfully set voice to "en+0= " Tue Oct 26 09:31:25 2021 [636850]: Espeak: set_language_and_voice en 1 Tue Oct 26 09:31:25 2021 [636860]: Espeak: set_language_and_voice name=3De= n+0 Tue Oct 26 09:31:25 2021 [636973]: Espeak: Successfully set voice to "en+0= " Tue Oct 26 09:31:25 2021 [687987]: Espeak: Rate set to 170. Tue Oct 26 09:31:25 2021 [738788]: Espeak: Volume set to 200. Tue Oct 26 09:31:25 2021 [937535]: Espeak: Pitch set to 50. Tue Oct 26 09:31:25 2021 [987698]: Set punctuation mode. Tue Oct 26 09:31:26 2021 [37917]: Set capitals mode. Tue Oct 26 09:31:26 2021 [88426]: Espeak: Leaving module_speak() normally. Tue Oct 26 09:31:26 2021 [88689]: Espeak: Playback semaphore on. Tue Oct 26 09:31:26 2021 [88729]: Printing reply: 701 BEGIN in the espeak.log but it's empty. Ah, may need to also set espeak.conf to debug like this in /etc/speech-dispatcher/modules/espeak.conf: #Debugging Debug 1 Change the 0 to 1 if it's there, otherwise add Debug 1 to the end of the file if it's not there at all. thanks, Jeremy On Tue, Oct 26, 2021 at 10:53 AM Gustav Degreef <[email protected]> wrote: > Thanks Jeremy. Very clear instructions. Here is the zip file, Gustav > > On 10/26/21 5:36 PM, Jeremy Whiting wrote: > > 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] > > <mailto:[email protected]>> wrote: > > > > > > > > On Tue, Oct 26, 2021 at 8:09 AM Gustav Degreef <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi Jeremy, > > > > Deeply appreciate your time and effort, but no luck. > > > > =C3=82 =C3=82 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.=C3=82 Sto= p. > > > > Since your opensuse VM is working fine, I doube checked my > > installations.=C3=82 I have a 17 inch laptop and a 13 inch old= one > > that I use > > for traveling.=C3=82 Both machines have a main partition opens= use > > 15.2 and a > > "test" partition with opensuse 15.3.=C3=82 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.=C3=82 All 4 installat= ions > > are > > upgraded systems (from previous opensuse 15.0, 15.1 and prior > > releases.=C3=82 > > So none of them is a "clean" install like your VM. > > > > I tried building it on each laptop, but the same result.=C3=82 = =C3=82 > > You were > > reight at the beginnig, it's turning out quite difficult to > > track down.=C3=82 > > 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. > > > > --000000000000a8510605cf447583 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div style=3D"font-family:monospace" class=3D"gmail_defaul= t"></div><div class=3D"gmail_default" style=3D"font-family:monospace">Gusta= v,</div><div class=3D"gmail_default" style=3D"font-family:monospace"><br></= div><div class=3D"gmail_default" style=3D"font-family:monospace">I see spee= ch dispatcher itself started and ended a couple of times in there, but I do= n't see what text it was sent to synthesize. Did you try spd-say "= Hello" or trying with okular to speak some document or a page? I was h= oping to see something 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">Tue Oct 26 09:31:25 2021 [617497]: Espeak: Stop or p= ause thread starting.......<br>=C2=A0Tue Oct 26 09:31:25 2021 [636516]: CMD= : <SET<br>><br>=C2=A0Tue Oct 26 09:31:25 2021 [636587]: CMD: <SPEA= K<br>><br>=C2=A0Tue Oct 26 09:31:25 2021 [636617]: Espeak: module_speak(= ).<br>=C2=A0Tue Oct 26 09:31:25 2021 [636627]: Espeak: Requested data: |<= ;speak>hello</speak>| 0 20<br>=C2=A0Tue Oct 26 09:31:25 2021 [6366= 37]: Espeak: set_language_and_voice en 1<br>=C2=A0Tue Oct 26 09:31:25 2021 = [636647]: Espeak: set_language_and_voice name=3Den+0<br>=C2=A0Tue Oct 26 09= :31:25 2021 [636840]: Espeak: Successfully set voice to "en+0"<br= >=C2=A0Tue Oct 26 09:31:25 2021 [636850]: Espeak: set_language_and_voice en= 1<br>=C2=A0Tue Oct 26 09:31:25 2021 [636860]: Espeak: set_language_and_voi= ce name=3Den+0<br>=C2=A0Tue Oct 26 09:31:25 2021 [636973]: Espeak: Successf= ully set voice to "en+0"<br>=C2=A0Tue Oct 26 09:31:25 2021 [68798= 7]: Espeak: Rate set to 170.<br>=C2=A0Tue Oct 26 09:31:25 2021 [738788]: Es= peak: Volume set to 200.<br>=C2=A0Tue Oct 26 09:31:25 2021 [937535]: Espeak= : Pitch set to 50.<br>=C2=A0Tue Oct 26 09:31:25 2021 [987698]: Set punctuat= ion mode.<br>=C2=A0Tue Oct 26 09:31:26 2021 [37917]: Set capitals mode.<br>= =C2=A0Tue Oct 26 09:31:26 2021 [88426]: Espeak: Leaving module_speak() norm= ally.<br>=C2=A0Tue Oct 26 09:31:26 2021 [88689]: Espeak: Playback semaphore= on.<br>=C2=A0Tue Oct 26 09:31:26 2021 [88729]: Printing reply: 701 BEGIN<b= r><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">in= the espeak.log but it's empty. Ah, may need to also set espeak.conf to= debug like this in /etc/speech-dispatcher/modules/espeak.conf:</div><div c= lass=3D"gmail_default" style=3D"font-family:monospace"><br></div><div class= =3D"gmail_default" style=3D"font-family:monospace">#Debugging<br></div><div= class=3D"gmail_default" style=3D"font-family:monospace">Debug 1</div><div = class=3D"gmail_default" style=3D"font-family:monospace"><br></div><div clas= s=3D"gmail_default" style=3D"font-family:monospace">Change the 0 to 1 if it= 's there, otherwise add Debug 1 to the end of the file if it's not = there at all.</div><div class=3D"gmail_default" style=3D"font-family:monosp= ace"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace"= >thanks,</div><div class=3D"gmail_default" 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 10:53 AM Gustav Degreef <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Thanks Jeremy.=C2=A0 Very = clear instructions.=C2=A0 Here is the zip file, Gustav<br> <br> On 10/26/21 5:36 PM, Jeremy Whiting wrote:<br> > Gustav,<br> ><br> > Ok, the quickest way to debug this will be to set a LogDir in <br> > /etc/speech-dispatcher/speechd.conf like this:<br> ><br> > #LogDir "default" <-- Comment out this one if it's no= t by adding the # <br> > at the front.<br> > LogDir "/home/jeremy/sdlogs/"<br> ><br> > sudo will be needed to edit those files in /etc/speech-dispatcher/<br> ><br> > you'll need to create an sdlogs folder in your home directory (I t= ried <br> > using the default opensuse /var/log/speech-dispatcher path, but sd <br= > > running as me couldn't write there and it's complicated, bette= r to <br> > just make a new path in your home folder and point to it. Also use <br= > > your username, not jeremy :)<br> ><br> > Then when you run spd-say "Hello" or whatever it will create= a few log <br> > files in that sdlogs path. I would say do that a couple of times then = <br> > have okular speak the current page a couple of times. Then zip up that= <br> > sdlogs folder and send it here and we can take a look at what <br> > speech-dispatcher is getting, and hopefully find out why it sounds <br= > > garbled on your audio system.<br> ><br> > BR,<br> > Jeremy<br> ><br> > On Tue, Oct 26, 2021 at 8:29 AM Jeremy Whiting <<a href=3D"mailto:j= [email protected]" target=3D"_blank">[email protected]</a> <br> > <mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">jpwh= [email protected]</a>>> wrote:<br> ><br> ><br> ><br> >=C2=A0 =C2=A0 =C2=A0On Tue, Oct 26, 2021 at 8:09 AM Gustav Degreef <= <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<= /a><br> >=C2=A0 =C2=A0 =C2=A0<mailto:<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>>> wrote:<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Hi Jeremy,<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Deeply appreciate your time and effor= t, but no luck.<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C3=82=C2=A0=C3=82=C2=A0user:~/QtSpee= ch/hello_speak> qmake-qt5<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Info: creating stash file<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/home/user/QtSpeech/hello_speak/.qmak= e.stash<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Project ERROR: Unknown module(s) in Q= T: texttospeech<br> ><br> ><br> >=C2=A0 =C2=A0 =C2=A0Ok, from that it seems you don't have the -deve= l package needed to<br> >=C2=A0 =C2=A0 =C2=A0build things against QtSpeech. For that install the= following:<br> ><br> >=C2=A0 =C2=A0 =C2=A0sudo zypper install libqt5-qtspeech-devel<br> ><br> >=C2=A0 =C2=A0 =C2=A0Then you should be able to build hello_speak.<br> ><br> >=C2=A0 =C2=A0 =C2=A0But since speech-dispatcher itself doesn't have= the problem<br> >=C2=A0 =C2=A0 =C2=A0(spd-say didn't duplicate) the problem is eithe= r in Okular's use<br> >=C2=A0 =C2=A0 =C2=A0of QtSpeech (not likely, it's one line that cal= ls QtSpeech) or<br> >=C2=A0 =C2=A0 =C2=A0QtSpeech itself. On my test vm I've only got th= e speechd plugin<br> >=C2=A0 =C2=A0 =C2=A0for QtSpeech in<br> >=C2=A0 =C2=A0 =C2=A0/usr/lib64/qt5/plugins/texttospeech/<br> >=C2=A0 =C2=A0 =C2=A0On your machine do you have a flite plugin there al= so from some<br> >=C2=A0 =C2=A0 =C2=A0package from 15.0 or 15.1 times maybe (I don't = see any flite<br> >=C2=A0 =C2=A0 =C2=A0plugin package in 15.2 repos, but maybe you got it = before upgrading).<br> ><br> >=C2=A0 =C2=A0 =C2=A0I took another look at QtSpeech code itself though = and I don't see<br> >=C2=A0 =C2=A0 =C2=A0any way it would ever use more than one plugin or s= end the text to<br> >=C2=A0 =C2=A0 =C2=A0multiple plugins. Then I took a look at the speechd= plugin again<br> >=C2=A0 =C2=A0 =C2=A0and it definitely only sends the text it gets to sp= d_say function<br> >=C2=A0 =C2=A0 =C2=A0once. I think the next thing to try will be to enab= le debugging in<br> >=C2=A0 =C2=A0 =C2=A0speech-dispatcher (after we are sure that's wha= t plugin QtSpeech<br> >=C2=A0 =C2=A0 =C2=A0is using) and see what text it's getting to syn= thesize from<br> >=C2=A0 =C2=A0 =C2=A0okular. I'll write up some instructions for tha= t once I do it here<br> >=C2=A0 =C2=A0 =C2=A0and remember how it's done :)<br> ><br> >=C2=A0 =C2=A0 =C2=A0thanks,<br> >=C2=A0 =C2=A0 =C2=A0Jeremy<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0user:~/QtSpeech/hello_speak> make<= br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0make: *** No targets specified and no= makefile found.=C3=82 Stop.<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Since your opensuse VM is working fin= e, I doube checked my<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0installations.=C3=82=C2=A0 I have a 1= 7 inch laptop and a 13 inch old one<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0that I use<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0for traveling.=C3=82=C2=A0 Both machi= nes have a main partition opensuse<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A015.2 and a<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"test" partition with opens= use 15.3.=C3=82=C2=A0 3/4 of these<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0installations have<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0the duplicate voices in Okular and Km= outh. Only 1 15.3<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0installation is<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0having a normal speech output in Ojul= ar.=C3=82=C2=A0 All 4 installations<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0are<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0upgraded systems (from previous opens= use 15.0, 15.1 and prior<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0releases.=C3=82<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0So none of them is a "clean"= ; install like your VM.<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I tried building it on each laptop, b= ut the same result.=C3=82=C2=A0=C3=82=C2=A0<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You were<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0reight at the beginnig, it's turn= ing out quite difficult to<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0track down.=C3=82<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Any other suggestions?<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0If all else fails, I'll do a clea= n install of 15.3 on one of<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0these 4<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0partitions.<br> ><br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thanks, Gustav.<br> ><br> ><br> >=C2=A0 =C2=A0 =C2=A0Truncating the rest to get past mailing list size l= imit without<br> >=C2=A0 =C2=A0 =C2=A0approval.<br> ><br> <br> </blockquote></div> --000000000000a8510605cf447583--