<div dir="ltr"><div style="font-family:monospace" class="gmail_default"></div><div class="gmail_default" style="font-family:monospace">Gustav,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">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:</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Tue Oct 26 09:31:25 2021 [617497]: Espeak: Stop or pause thread starting.......<br> Tue Oct 26 09:31:25 2021 [636516]: CMD: <SET<br>><br> Tue Oct 26 09:31:25 2021 [636587]: CMD: <SPEAK<br>><br> Tue Oct 26 09:31:25 2021 [636617]: Espeak: module_speak().<br> Tue Oct 26 09:31:25 2021 [636627]: Espeak: Requested data: |<speak>hello</speak>| 0 20<br> Tue Oct 26 09:31:25 2021 [636637]: Espeak: set_language_and_voice en 1<br> Tue Oct 26 09:31:25 2021 [636647]: Espeak: set_language_and_voice name=en+0<br> Tue Oct 26 09:31:25 2021 [636840]: Espeak: Successfully set voice to "en+0"<br> Tue Oct 26 09:31:25 2021 [636850]: Espeak: set_language_and_voice en 1<br> Tue Oct 26 09:31:25 2021 [636860]: Espeak: set_language_and_voice name=en+0<br> Tue Oct 26 09:31:25 2021 [636973]: Espeak: Successfully set voice to "en+0"<br> Tue Oct 26 09:31:25 2021 [687987]: Espeak: Rate set to 170.<br> Tue Oct 26 09:31:25 2021 [738788]: Espeak: Volume set to 200.<br> Tue Oct 26 09:31:25 2021 [937535]: Espeak: Pitch set to 50.<br> Tue Oct 26 09:31:25 2021 [987698]: Set punctuation mode.<br> Tue Oct 26 09:31:26 2021 [37917]: Set capitals mode.<br> Tue Oct 26 09:31:26 2021 [88426]: Espeak: Leaving module_speak() normally.<br> Tue Oct 26 09:31:26 2021 [88689]: Espeak: Playback semaphore on.<br> Tue Oct 26 09:31:26 2021 [88729]: Printing reply: 701 BEGIN<br><br></div><div class="gmail_default" style="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 class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">#Debugging<br></div><div class="gmail_default" style="font-family:monospace">Debug 1</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="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="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">thanks,</div><div class="gmail_default" style="font-family:monospace">Jeremy<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 26, 2021 at 10:53 AM Gustav Degreef <<a href="mailto:gustav97@gmail.com">gustav97@gmail.com</a>> 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">Thanks Jeremy.  Very clear instructions.  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 not 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 tried <br>
> using the default opensuse /var/log/speech-dispatcher path, but sd <br>
> running as me couldn't write there and it's complicated, better 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="mailto:jpwhiting@kde.org" target="_blank">jpwhiting@kde.org</a> <br>
> <mailto:<a href="mailto:jpwhiting@kde.org" target="_blank">jpwhiting@kde.org</a>>> wrote:<br>
><br>
><br>
><br>
>     On Tue, Oct 26, 2021 at 8:09 AM Gustav Degreef <<a href="mailto:gustav97@gmail.com" target="_blank">gustav97@gmail.com</a><br>
>     <mailto:<a href="mailto:gustav97@gmail.com" target="_blank">gustav97@gmail.com</a>>> wrote:<br>
><br>
>         Hi Jeremy,<br>
><br>
>         Deeply appreciate your time and effort, but no luck.<br>
><br>
>         Â Â user:~/QtSpeech/hello_speak> qmake-qt5<br>
>         Info: creating stash file<br>
>         /home/user/QtSpeech/hello_speak/.qmake.stash<br>
>         Project ERROR: Unknown module(s) in QT: texttospeech<br>
><br>
><br>
>     Ok, from that it seems you don't have the -devel package needed to<br>
>     build things against QtSpeech. For that install the following:<br>
><br>
>     sudo zypper install libqt5-qtspeech-devel<br>
><br>
>     Then you should be able to build hello_speak.<br>
><br>
>     But since speech-dispatcher itself doesn't have the problem<br>
>     (spd-say didn't duplicate) the problem is either in Okular's use<br>
>     of QtSpeech (not likely, it's one line that calls QtSpeech) or<br>
>     QtSpeech itself. On my test vm I've only got the speechd plugin<br>
>     for QtSpeech in<br>
>     /usr/lib64/qt5/plugins/texttospeech/<br>
>     On your machine do you have a flite plugin there also from some<br>
>     package from 15.0 or 15.1 times maybe (I don't see any flite<br>
>     plugin package in 15.2 repos, but maybe you got it before upgrading).<br>
><br>
>     I took another look at QtSpeech code itself though and I don't see<br>
>     any way it would ever use more than one plugin or send the text to<br>
>     multiple plugins. Then I took a look at the speechd plugin again<br>
>     and it definitely only sends the text it gets to spd_say function<br>
>     once. I think the next thing to try will be to enable debugging in<br>
>     speech-dispatcher (after we are sure that's what plugin QtSpeech<br>
>     is using) and see what text it's getting to synthesize from<br>
>     okular. I'll write up some instructions for that once I do it here<br>
>     and remember how it's done :)<br>
><br>
>     thanks,<br>
>     Jeremy<br>
><br>
>         user:~/QtSpeech/hello_speak> make<br>
>         make: *** No targets specified and no makefile found. Stop.<br>
><br>
>         Since your opensuse VM is working fine, I doube checked my<br>
>         installations.  I have a 17 inch laptop and a 13 inch old one<br>
>         that I use<br>
>         for traveling.  Both machines have a main partition opensuse<br>
>         15.2 and a<br>
>         "test" partition with opensuse 15.3.  3/4 of these<br>
>         installations have<br>
>         the duplicate voices in Okular and Kmouth. Only 1 15.3<br>
>         installation is<br>
>         having a normal speech output in Ojular.  All 4 installations<br>
>         are<br>
>         upgraded systems (from previous opensuse 15.0, 15.1 and prior<br>
>         releases.Â<br>
>         So none of them is a "clean" install like your VM.<br>
><br>
>         I tried building it on each laptop, but the same result.  <br>
>         You were<br>
>         reight at the beginnig, it's turning out quite difficult to<br>
>         track down.Â<br>
>         Any other suggestions?<br>
><br>
>         If all else fails, I'll do a clean install of 15.3 on one of<br>
>         these 4<br>
>         partitions.<br>
><br>
>         Thanks, Gustav.<br>
><br>
><br>
>     Truncating the rest to get past mailing list size limit without<br>
>     approval.<br>
><br>
<br>
</blockquote></div>