[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:       Gustav Degreef <gustav97 () gmail ! com>
Date:       2021-10-28 10:50:35
Message-ID: b2fbc18a-f011-b0c0-1562-4c52a596bfac () gmail ! com
[Download RAW message or body]


Hi Jeremy,
 
Yes, correct -   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 .... as if there are .. (2 things) being said at the same time?

I created the file testfile.txt and put the exact content you speicified 
and ran "cat ./testfile.txt | spd-say -x -e".   The output was one 
voice, perfectly clear, the entire text content without mistake or hiccup.

Since Kmouth has the exact same issue as Okular, I copied the same exact 
text as in testfile.txt (without your commands) and had Kmouth read it 
out.  Same 2 streams as in Okular.  I'm attaching the sdlogs as a zip (I 
deleted the old logs and logged out first befoe running kmouth).  HTH.   
Thanks, Gustav

On 10/27/21 9:48 PM, Jeremy Whiting wrote:
> 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 
> <mailto: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>
>     > <mailto: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
>


["sdlogs.zip" (application/zip)]

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

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