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

Jeremy Whiting jpwhiting at kde.org
Sun Oct 31 18:25:12 GMT 2021


Hi Gustav,

No it's not meant to save any settings, etc. I was just wondering about
using it as a way to exercise QtSpeech directly manipulating the
voice/language like you can't do currently in KMouth or Okular. Do you
experience the double voices with hello_speak also? Does it happen no
matter which language or voice you select? If you choose the last voice on
the list (should be some generic english iirc) does that sound right or
still have the duplication overlapping issue?

thanks,
Jeremy

On Sun, Oct 31, 2021 at 12:01 PM Gustav Degreef <gustav97 at gmail.com> wrote:

> Hello Jeremy,
>
> I managed to get "hello_speak example" to work on opensuse 15.3. I
> enlisted the help of the opensuse users list.  I installed
> ""libqt5-qtspeech-examples.rpm" and ran
> "/usr/lib64/qt5/examples/speech/hello_speak/hello_speak example" (it
> needed the full path to run).
>
> The default voice here is English westindies.  Many languages are
> available and about six english voices.  However, it does not save my
> selection and it does not help with the duplicate voices in Okular or in
> Kmouth.   I do not see any way to save the changes and the program seems
> only useful to hear different voices/languages.  Am I missing
> something?  I saw your other pst on the list, thak you.  Gustav
>
>
> On 10/29/21 5:48 PM, Jeremy Whiting wrote:
> > Gustav,
> >
> > Sorry, I didn't respond yesterday. The espeak.log you sent looks like
> > espeak is getting text fine from kmouth and okular. I'm betting that
> > since kmouth and okular do not tell QtSpeech which voice to use it's
> > using some default that isn't ideal. Were you ever able to get
> > hello_speak example to work? With it you can select each voice that
> > QtSpeech knows about and probably see what default it's using for a
> > given language. Here when I open it on my opensuse 15.2 vm it starts
> > with English, but has some west indies voice as the default which
> > pronounces everything strangely. If I change it to another english
> > voice it all sounds the same as spd-say.
> >
> > So it won't be in the next release since feature freeze will be soon
> > or has already happened, but I'll get voice selection in at least
> > okular's settings window where you can already select between flite
> > and speechd. And do likewise for KMouth with the other improvements
> > I'll do to KMouth. I think once you're able to select a voice (and
> > language) in those just like in hello_speak it should be pretty
> > straight forward to make it sound the way you want.
> >
> > BR,
> > Jeremy
> >
> >
> > On Thu, Oct 28, 2021 at 4:50 AM Gustav Degreef <gustav97 at gmail.com
> > <mailto:gustav97 at gmail.com>> wrote:
> >
> >     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 at gmail.com <mailto:gustav97 at gmail.com>
> >     > <mailto:gustav97 at gmail.com <mailto:gustav97 at 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 at gmail.com <mailto:gustav97 at gmail.com>
> >     <mailto:gustav97 at gmail.com <mailto:gustav97 at gmail.com>>
> >     >Â  Â  Â > <mailto:gustav97 at gmail.com <mailto:gustav97 at gmail.com>
> >     <mailto:gustav97 at gmail.com <mailto:gustav97 at 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
> >     >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-accessibility/attachments/20211031/412a995a/attachment-0001.htm>


More information about the kde-accessibility mailing list