[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-accessibility
Subject: Re: Is there a project that is jovie successor? (fwd)
From: Jeremy Whiting <jpwhiting () kde ! org>
Date: 2021-10-27 19:48:28
Message-ID: CADWV2K5qdqUHjBx--fmCLqHjmL77=GfTiV8QbezmvDUfJvZCLw () mail ! gmail ! com
[Download RAW message or body]
Hi Gustav,
That looks a lot more interesting. So just to confirm the mary had a lamb
lines sound fine on the speaker/headphones but the larger text from pdf via
okular still sounds strange or as if there are multiple things being said
at the same time?
I don't see much difference between the 2, I tried sending longer text
through okular here and got some weird different accent somehow, but see
similar things in espeak.log about it selecting en+0 like you have there. I
think it's possible espeak is switching languages for some reason, maybe
when it gets non utf8 text like the character between the copyright symbol
"Authors ... Contributions" but I tried having spd-say read just that and
it read it fine.
I then put a whole block of text from your log like this into a
testfile.txt and use this to read:
testfile.txt contents:
<speak>Statement of Ethics
Written informed consent was obtained from the patient for
publication of this case report and any accompanying images.<mark
name="__spd_0"/>
Authorsâ¡~@~Y Contributions
Elena Rudakova was the primary physician who treated the
patient and who obtained and analyzed the data for the study.<mark
name="__spd_1"/>
Seema Mahesh analyzed the data, wrote the manuscript, and
obtained the references.<mark name="__spd_2"/> George Vithoulkas was the
guide,
final approver, and guarantor of the work.<mark name="__spd_3"/> All
authors have
read and approved the final version of the manuscript.<mark name="__spd_4"/>
Acknowledgements
The authors are thankful to Aishwarya Madhusudhan for the
technical support.<mark name="__spd_5"/>
</speak>
cat ./testfile.txt | spd-say -x -e
-x makes it parse the <speak> and <mark> tags, etc. and -e makes it read
text given from standard input that cat is giving it.
When I tried that here it read about a line, then got an assertion.
From my espeak.log here:
Wed Oct 27 13:28:19 2021 [333272]: Espeak: module_speak().
Wed Oct 27 13:28:19 2021 [333297]: Espeak: Requested data: |publication of
this case report and any accompanying images.<mark name="__spd_0"/><mark
name="__spd_0"/>
> 0 105
Wed Oct 27 13:28:19 2021 [384129]: Espeak: Leaving module_speak() normally.
Wed Oct 27 13:28:19 2021 [385487]: Espeak: Playback semaphore on.
Wed Oct 27 13:28:19 2021 [385499]: Printing reply: 701 BEGIN
Wed Oct 27 13:28:19 2021 [385509]: Printed
Wed Oct 27 13:28:19 2021 [385518]: Espeak: Sending 51283 samples to audio.
Wed Oct 27 13:28:20 2021 [878168]: CMD: <STOP
>
Wed Oct 27 13:28:20 2021 [878194]: Espeak: module_stop().
Wed Oct 27 13:28:20 2021 [878217]: Espeak: stopping...
Wed Oct 27 13:28:20 2021 [878237]: CMD: <QUIT
>
Wed Oct 27 13:28:20 2021 [878278]: Espeak: Stop or pause semaphore on.
Wed Oct 27 13:28:20 2021 [878299]: Espeak: Stopping audio.
Assertion 'pthread_mutex_destroy(&m->mutex) == 0' failed at
pulsecore/mutex-posix.c:83, function pa_mutex_free(). Aborting.
I think espeak is having issues with the longer text given from okular.
I took a quick look at using espeak-ng on opensuse 15.2, but that doesn't
seem to be possible, nothing is providing sd_espeak-ng speech-dispatcher
module from the available packages which would be needed to use espeak-ng
instead of espeak.
If you create a text file like above and cat it into spd-say -x -e like
above does it duplicate then also?
BR,
Jeremy
On Wed, Oct 27, 2021 at 10:41 AM Gustav Degreef <gustav97@gmail.com> wrote:
> Sorry Jeremy. I rushed the previous response and did not see the last
> part regarding the Debug 1. Yes, I had to change the Debug from 0 to 1.
> I rebooted to make sure both espeak and speech-dispatcher used the
> updated config files. I had spd-say speak 3 sentences and I had Okular
> read 1/2 page of a pdf three times, just in case. Here are the zipped
> logs. I deleted the old logs before rebooting. Thanks for your patient
> efforts, Gustav.
>
> On 10/26/21 8:00 PM, Jeremy Whiting wrote:
> > Gustav,
> >
> > Yeah, I think the missing bits were the Debug 1 in espeak.conf file. I
> > had that here but forgot to mention it originally. Also, the extra
> > details are in the espeak.log not speech-dispatcher.log it seems. The
> > one you sent was empty, but that's probably because of the missing
> > Debug 1 in there. Once that's in place it should give a bunch of this
> > kind of details.
> >
> > thanks,
> > Jeremy
> >
> > On Tue, Oct 26, 2021 at 11:41 AM Gustav Degreef <gustav97@gmail.com
> > <mailto:gustav97@gmail.com>> wrote:
> >
> > Hi Jeremy,
> >
> > I did EXACTLY as you said when I sent you the zip file.Ã When I
> > first
> > edited the .conf file, there was no output to the logs, so I rebooted
> > the system (I did not know how to re-start the deamon). No clue
> > why the
> > output you expected is not there. Ã So now I did the same thing
> > again,
> > but I had Okular read two separate long instnaces and then had
> > spd-say a
> > whole sentence twice.Ã Here is the single log file (I did not
> > delete the
> > old log file, so I figure the new info has been appended.Ã Gustav
> >
> > On 10/26/21 7:03 PM, Jeremy Whiting wrote:
> > > 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=en+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=en+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
> > <gustav97@gmail.com <mailto:gustav97@gmail.com>
> > > <mailto:gustav97@gmail.com <mailto:gustav97@gmail.com>>> 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
> > > Ã Ã Ã <jpwhiting@kde.org <mailto:jpwhiting@kde.org>
> > <mailto:jpwhiting@kde.org <mailto:jpwhiting@kde.org>>
> > > Ã Ã Ã > <mailto:jpwhiting@kde.org <mailto:jpwhiting@kde.org>
> > <mailto:jpwhiting@kde.org <mailto:jpwhiting@kde.org>>>> wrote:
> > > Ã Ã Ã >
> > > Ã Ã Ã >
> > > Ã Ã Ã >
> > > à à à >Ãâà Ãâà Ãâà On Tue, Oct 26, 2021 at 8:09 AM Gustav
> Degreef
> > > Ã Ã Ã <gustav97@gmail.com <mailto:gustav97@gmail.com>
> > <mailto:gustav97@gmail.com <mailto:gustav97@gmail.com>>
> > > à à à >Ãâà Ãâà Ãâà <mailto:gustav97@gmail.com
> > <mailto:gustav97@gmail.com> <mailto:gustav97@gmail.com
> > <mailto:gustav97@gmail.com>>>>
> > > Ã Ã Ã 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.
> > > Ã Ã Ã >
> > >
> >
>
>
[Attachment #3 (text/html)]
<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hi \
Gustav,</div><div class="gmail_default" style="font-family:monospace"><br></div><div \
class="gmail_default" style="font-family:monospace">That looks a lot more \
interesting. So just to confirm the mary had a lamb lines sound fine on the \
speaker/headphones but the larger text from pdf via okular still sounds strange or as \
if there are multiple things being said at the same time?</div><div \
class="gmail_default" style="font-family:monospace"><br></div><div \
class="gmail_default" style="font-family:monospace">I don't see much difference \
between the 2, I tried sending longer text through okular here and got some weird \
different accent somehow, but see similar things in espeak.log about it selecting \
en+0 like you have there. I think it's possible espeak is switching languages for \
some reason, maybe when it gets non utf8 text like the character between the \
copyright symbol "Authors ... Contributions" but I tried having spd-say \
read just that and it read it fine.</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">I then put a whole block of text from your log like \
this into a testfile.txt and use this to read:</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">testfile.txt contents:</div><div class="gmail_default" \
style="font-family:monospace"><speak>Statement of Ethics<br>Written informed \
consent was obtained from the patient for<br>publication of this case report and any \
accompanying images.<mark name="__spd_0"/><br>Authors□~@~Y \
Contributions<br>Elena Rudakova was the primary physician who treated the<br>patient \
and who obtained and analyzed the data for the study.<mark \
name="__spd_1"/><br>Seema Mahesh analyzed the data, wrote the \
manuscript, and<br>obtained the references.<mark name="__spd_2"/> \
George Vithoulkas was the guide,<br>final approver, and guarantor of the \
work.<mark name="__spd_3"/> All authors have<br>read and approved the \
final version of the manuscript.<mark \
name="__spd_4"/><br>Acknowledgements<br>The authors are thankful to \
Aishwarya Madhusudhan for the<br>technical support.<mark \
name="__spd_5"/><br></speak></div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">cat ./testfile.txt | spd-say -x -e</div><div \
class="gmail_default" style="font-family:monospace"><br></div><div \
class="gmail_default" style="font-family:monospace">-x makes it parse the \
<speak> and <mark> tags, etc. and -e makes it read text given from \
standard input that cat is giving it.</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">When I tried that here it read about a line, then got \
an assertion.</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">From my espeak.log here:</div><div \
class="gmail_default" style="font-family:monospace"><br></div><div \
class="gmail_default" style="font-family:monospace">Wed Oct 27 13:28:19 2021 \
[333272]: Espeak: module_speak().<br> Wed Oct 27 13:28:19 2021 [333297]: Espeak: \
Requested data: |publication of this case report and any accompanying images.<mark \
name="__spd_0"/><mark name="__spd_0"/><br>| 0 105<br> \
Wed Oct 27 13:28:19 2021 [384129]: Espeak: Leaving module_speak() normally.<br> Wed \
Oct 27 13:28:19 2021 [385487]: Espeak: Playback semaphore on.<br> Wed Oct 27 13:28:19 \
2021 [385499]: Printing reply: 701 BEGIN<br><br> Wed Oct 27 13:28:19 2021 [385509]: \
Printed<br> Wed Oct 27 13:28:19 2021 [385518]: Espeak: Sending 51283 samples to \
audio.<br> Wed Oct 27 13:28:20 2021 [878168]: CMD: <STOP<br>><br> Wed Oct 27 \
13:28:20 2021 [878194]: Espeak: module_stop().<br> Wed Oct 27 13:28:20 2021 [878217]: \
Espeak: stopping...<br> Wed Oct 27 13:28:20 2021 [878237]: CMD: <QUIT<br>><br> \
Wed Oct 27 13:28:20 2021 [878278]: Espeak: Stop or pause semaphore on.<br> Wed Oct 27 \
13:28:20 2021 [878299]: Espeak: Stopping audio.<br>Assertion \
'pthread_mutex_destroy(&m->mutex) == 0' failed at \
pulsecore/mutex-posix.c:83, function pa_mutex_free(). Aborting.</div><div \
class="gmail_default" style="font-family:monospace"><br></div><div \
class="gmail_default" style="font-family:monospace">I think espeak is having issues \
with the longer text given from okular. <br></div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">I took a quick look at using espeak-ng on opensuse \
15.2, but that doesn't seem to be possible, nothing is providing sd_espeak-ng \
speech-dispatcher module from the available packages which would be needed to use \
espeak-ng instead of espeak.</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">If you create a text file like above and cat it into \
spd-say -x -e like above does it duplicate then also?</div><div class="gmail_default" \
style="font-family:monospace"><br></div><div class="gmail_default" \
style="font-family:monospace">BR,</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 Wed, Oct 27, 2021 at 10:41 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">Sorry Jeremy. I \
rushed the previous response and did not see the last <br> part regarding the Debug \
1. Yes, I had to change the Debug from 0 to 1. <br> I rebooted to make sure both \
espeak and speech-dispatcher used the <br> updated config files. I had spd-say \
speak 3 sentences and I had Okular <br> read 1/2 page of a pdf three times, just in \
case. Here are the zipped <br> logs. I deleted the old logs before rebooting. \
Thanks for your patient <br> efforts, Gustav.<br>
<br>
On 10/26/21 8:00 PM, Jeremy Whiting wrote:<br>
> Gustav,<br>
><br>
> Yeah, I think the missing bits were the Debug 1 in espeak.conf file. I <br>
> had that here but forgot to mention it originally. Also, the extra <br>
> details are in the espeak.log not speech-dispatcher.log it seems. The <br>
> one you sent was empty, but that's probably because of the missing <br>
> Debug 1 in there. Once that's in place it should give a bunch of this <br>
> kind of details.<br>
><br>
> thanks,<br>
> Jeremy<br>
><br>
> On Tue, Oct 26, 2021 at 11:41 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>
> I did EXACTLY as you said when I sent you the zip file. When I<br>
> first<br>
> edited the .conf file, there was no output to the logs, so I rebooted<br>
> the system (I did not know how to re-start the deamon). No clue<br>
> why the<br>
> output you expected is not there. So now I did the same thing<br>
> again,<br>
> but I had Okular read two separate long instnaces and then had<br>
> spd-say a<br>
> whole sentence twice. Here is the single log file (I did not<br>
> delete the<br>
> old log file, so I figure the new info has been appended. Gustav<br>
><br>
> On 10/26/21 7:03 PM, Jeremy Whiting wrote:<br>
> > Gustav,<br>
> ><br>
> > I see speech dispatcher itself started and ended a couple of<br>
> times in<br>
> > there, but I don't see what text it was sent to synthesize. Did \
you<br> > > try spd-say "Hello" or trying with okular to speak \
some document<br> > or a<br>
> > page? I was hoping to see something like this:<br>
> ><br>
> > Tue Oct 26 09:31:25 2021 [617497]: Espeak: Stop or pause thread<br>
> > 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:<br>
> > |<speak>hello</speak>| 0 20<br>
> > Â Tue Oct 26 09:31:25 2021 [636637]: Espeak:<br>
> set_language_and_voice en 1<br>
> > Â Tue Oct 26 09:31:25 2021 [636647]: Espeak:<br>
> set_language_and_voice<br>
> > name=en+0<br>
> > Â Tue Oct 26 09:31:25 2021 [636840]: Espeak: Successfully set<br>
> voice to<br>
> > "en+0"<br>
> > Â Tue Oct 26 09:31:25 2021 [636850]: Espeak:<br>
> set_language_and_voice en 1<br>
> > Â Tue Oct 26 09:31:25 2021 [636860]: Espeak:<br>
> set_language_and_voice<br>
> > name=en+0<br>
> > Â Tue Oct 26 09:31:25 2021 [636973]: Espeak: Successfully set<br>
> voice to<br>
> > "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<br>
> module_speak()<br>
> > 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>
> > in the espeak.log but it's empty. Ah, may need to also set<br>
> espeak.conf<br>
> > to debug like this in /etc/speech-dispatcher/modules/espeak.conf:<br>
> ><br>
> > #Debugging<br>
> > Debug 1<br>
> ><br>
> > Change the 0 to 1 if it's there, otherwise add Debug 1 to the<br>
> end of<br>
> > the file if it's not there at all.<br>
> ><br>
> > thanks,<br>
> > Jeremy<br>
> ><br>
> > On Tue, Oct 26, 2021 at 10:53 AM Gustav Degreef<br>
> <<a href="mailto:gustav97@gmail.com" \
target="_blank">gustav97@gmail.com</a> <mailto:<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> <mailto:<a \
href="mailto:gustav97@gmail.com" target="_blank">gustav97@gmail.com</a>>>> \
wrote:<br> > ><br>
> > Thanks Jeremy. Very clear instructions. Here is<br>
> the zip file,<br>
> > 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<br>
> LogDir in<br>
> > > /etc/speech-dispatcher/speechd.conf like this:<br>
> > ><br>
> > > #LogDir "default" <-- Comment out this one if \
it's not<br> > by adding<br>
> > the #<br>
> > > at the front.<br>
> > > LogDir "/home/jeremy/sdlogs/"<br>
> > ><br>
> > > sudo will be needed to edit those files in<br>
> /etc/speech-dispatcher/<br>
> > ><br>
> > > you'll need to create an sdlogs folder in your home<br>
> directory (I<br>
> > tried<br>
> > > using the default opensuse /var/log/speech-dispatcher<br>
> path, but sd<br>
> > > running as me couldn't write there and it's<br>
> complicated, better to<br>
> > > just make a new path in your home folder and point to<br>
> it. Also use<br>
> > > your username, not jeremy :)<br>
> > ><br>
> > > Then when you run spd-say "Hello" or whatever it \
will<br> > create a<br>
> > few log<br>
> > > files in that sdlogs path. I would say do that a couple<br>
> of times<br>
> > then<br>
> > > have okular speak the current page a couple of times.<br>
> Then zip<br>
> > up that<br>
> > > sdlogs folder and send it here and we can take a look<br>
> at what<br>
> > > speech-dispatcher is getting, and hopefully find out<br>
> 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<br>
> > <<a href="mailto:jpwhiting@kde.org" \
target="_blank">jpwhiting@kde.org</a> <mailto:<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> <mailto:<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> <mailto:<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> <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<br> > > <<a href="mailto:gustav97@gmail.com" \
target="_blank">gustav97@gmail.com</a> <mailto:<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> <mailto:<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><br> > <mailto:<a \
href="mailto:gustav97@gmail.com" target="_blank">gustav97@gmail.com</a>> \
<mailto:<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>>>>><br> > > \
wrote:<br> > > ><br>
> > >Â Â Â Â Â Hi Jeremy,<br>
> > ><br>
> > >Â Â Â Â Â Deeply appreciate your time and<br>
> effort, but no luck.<br>
> > ><br>
> > >Â Â Â Â <br>
>  Â Â user:~/QtSpeech/hello_speak> qmake-qt5<br>
> > >Â Â Â Â Â Info: creating stash file<br>
> > >Â Â Â Â <br>
> Â /home/user/QtSpeech/hello_speak/.qmake.stash<br>
> > >Â Â Â Â Â Project ERROR: Unknown module(s)<br>
> in QT: texttospeech<br>
> > ><br>
> > ><br>
> > >Â Â Â Ok, from that it seems you don't have \
the<br> > -devel package<br>
> > needed to<br>
> > >Â Â Â build things against QtSpeech. For that<br>
> install the<br>
> > 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<br> > have the problem<br>
> > >Â Â Â (spd-say didn't duplicate) the problem \
is<br> > either in<br>
> > Okular's use<br>
> > >Â Â Â of QtSpeech (not likely, it's one line<br>
> that calls<br>
> > QtSpeech) or<br>
> > >Â Â Â QtSpeech itself. On my test vm I've \
only<br> > got the speechd<br>
> > plugin<br>
> > >Â Â Â for QtSpeech in<br>
> > >Â Â Â /usr/lib64/qt5/plugins/texttospeech/<br>
> > >Â Â Â On your machine do you have a flite plugin<br>
> there also<br>
> > from some<br>
> > >Â Â Â package from 15.0 or 15.1 times maybe (I<br>
> don't see any flite<br>
> > >Â Â Â plugin package in 15.2 repos, but maybe<br>
> you got it before<br>
> > upgrading).<br>
> > ><br>
> > >Â Â Â I took another look at QtSpeech code<br>
> itself though and I<br>
> > don't see<br>
> > >Â Â Â any way it would ever use more than one<br>
> plugin or send<br>
> > the text to<br>
> > >Â Â Â multiple plugins. Then I took a look at<br>
> the speechd<br>
> > plugin again<br>
> > >Â Â Â and it definitely only sends the text it<br>
> gets to spd_say<br>
> > function<br>
> > >Â Â Â once. I think the next thing to try will<br>
> be to enable<br>
> > debugging in<br>
> > >Â Â Â speech-dispatcher (after we are sure<br>
> that's what plugin<br>
> > QtSpeech<br>
> > >Â Â Â is using) and see what text it's \
getting<br> > to synthesize from<br>
> > >Â Â Â okular. I'll write up some \
instructions<br> > for that once I<br>
> > 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<br> > and no makefile<br>
> > found. Stop.<br>
> > ><br>
> > >Â Â Â Â Â Since your opensuse VM is<br>
> working fine, I doube<br>
> > checked my<br>
> > >     installations. I have a<br>
> 17 inch laptop and a 13<br>
> > inch old one<br>
> > >Â Â Â Â Â that I use<br>
> > >     for traveling. Both<br>
> machines have a main<br>
> > partition opensuse<br>
> > >Â Â Â Â Â 15.2 and a<br>
> > >Â Â Â Â Â "test" partition with \
opensuse<br> > 15.3. 3/4 of these<br>
> > >Â Â Â Â Â installations have<br>
> > >Â Â Â Â Â the duplicate voices in Okular<br>
> and Kmouth. Only 1 15.3<br>
> > >Â Â Â Â Â installation is<br>
> > >Â Â Â Â Â having a normal speech output in<br>
> Ojular. All 4<br>
> > installations<br>
> > >Â Â Â Â Â are<br>
> > >Â Â Â Â Â upgraded systems (from previous<br>
> opensuse 15.0, 15.1<br>
> > and prior<br>
> > >     releases.Â<br>
> > >Â Â Â Â Â So none of them is a \
"clean"<br> > install like your VM.<br>
> > ><br>
> > >Â Â Â Â Â I tried building it on each<br>
> laptop, but the same<br>
> > result. ÂÂ<br>
> > >Â Â Â Â Â You were<br>
> > >Â Â Â Â Â reight at the beginnig, it's<br>
> turning out quite<br>
> > difficult to<br>
> > >     track down.Â<br>
> > >Â Â Â Â Â Any other suggestions?<br>
> > ><br>
> > >Â Â Â Â Â If all else fails, I'll do a<br>
> clean install of 15.3<br>
> > on one of<br>
> > >Â Â Â Â Â these 4<br>
> > >Â Â Â Â Â partitions.<br>
> > ><br>
> > >Â Â Â Â Â Thanks, Gustav.<br>
> > ><br>
> > ><br>
> > >Â Â Â Truncating the rest to get past mailing<br>
> list size limit<br>
> > without<br>
> > >Â Â Â approval.<br>
> > ><br>
> ><br>
><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