kde and speaking clock

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

kde and speaking clock

Postby dglent » May 20th, '11, 07:05

How could i set up the speaking clock in KDE ? Or in general the text to speech utility ?
I have the jovie icon in the system tray but i cannot set it. No speechers availiable. i have installed espeak and the speech-dispatcher.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby Sfiet_Konstantin » May 20th, '11, 09:11

This "bug" was in Mdv 2010 : I do not figure how to enable it.
Finally, I gave up ...
Maybe fill a bug report and also check upstream ?
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: kde and speaking clock

Postby mikala » May 20th, '11, 16:35

I fixed it locally & update speed-dispatcher & jovie package.
In short you need
1) install speech-dispatcher
2) configure it to be launched under user session using port 6510, & using pulse (instead of alsa ) if you're using default mageia set up
3)launch speed-dispatcher
4) launch jovie

you can use spd-conf to configure speech-dispatcher,
Please note that current speech-dispatcher (until the new one is submitted) is missing some configuration files used by spd-conf, so you can edit /usr/lib/python2.7/site-packages/speechd_config/paths.py
to set SPD_CONF_ORIG_PATH to use /etc/speech-dispatcher

Regards,
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: kde and speaking clock

Postby dglent » May 20th, '11, 19:27

It's realy a great experience to be mageia user, thanks one more time mikala :)

The package did nt arrive yet to my system, i am waiting it, i have just a question: it will work only with pulseaudio enabled ?
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby mikala » May 20th, '11, 22:20

dglent wrote:It's realy a great experience to be mageia user, thanks one more time mikala :)

The package did nt arrive yet to my system, i am waiting it, i have just a question: it will work only with pulseaudio enabled ?

No if you're only using alsa i guess you should simply select alsa for audio output.
I simply test with the default audio setup :)
(& it's even working in french)
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: kde and speaking clock

Postby dglent » May 21st, '11, 06:53

i updated it is ok but i have an error vocal message every 10 seconds:


[Sat May 21 06:49:15 2011 : 984251] speechd: Reading configuration for pattern emacs:*
[Sat May 21 06:49:15 2011 : 984282] speechd: Reading configuration for pattern *:gnomespeech:*
[Sat May 21 06:49:15 2011 : 984300] speechd: Configuration has been read from "/home/dglent/.speech-dispatcher/conf//speechd.conf"
[Sat May 21 06:49:15 2011 : 984311] speechd: Speech Dispatcher Logging to file /home/dglent/.speech-dispatcher//log//speechd.log
[Sat May 21 06:49:15 2011 : 984319] speechd: Speech Dispatcher started with 2 output modules
[Sat May 21 06:49:15 2011 : 984324] speechd: Speech Dispatcher will use port 6560
[Sat May 21 06:49:15 2011 : 984335] speechd: Openning socket connection
[Sat May 21 06:49:15 2011 : 984607] speechd: Speech Dispatcher 0.6.7 started on port 6560 and waiting for clients ...
[Sat May 21 06:49:16 2011 : 11106] speechd: Connection closed
[Sat May 21 06:49:44 2011 : 199496] speechd: Connection closed
[Sat May 21 06:50:10 2011 : 10784] speechd: G LIST LENGHT IS 2
[Sat May 21 06:50:13 2011 : 810250] speechd: G LIST LENGHT IS 2


and in the file dummy.log:

Sat May 21 06:53:01 2011 [468031]: CMD: <SET
>
Sat May 21 06:53:01 2011 [468112]: CMD: <SPEAK
>
Sat May 21 06:53:01 2011 [468147]: speak()

Sat May 21 06:53:01 2011 [468159]: Requested data: |<speak>Είναι 6:53</speak>|

Sat May 21 06:53:01 2011 [468172]: Dummy: leaving write() normaly

Sat May 21 06:53:01 2011 [468188]: Semaphore on

Sat May 21 06:53:01 2011 [468428]: Waiting for child...
Sat May 21 06:53:01 2011 [468709]: Starting child...

Sat May 21 06:53:01 2011 [468743]: Entering child loop

Sat May 21 06:53:01 2011 [468756]: child: synth commands = |play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|aplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|paplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|
Sat May 21 06:53:01 2011 [468767]: Speaking in child...
Sat May 21 06:53:21 2011 [999015]: Executed shell command 'play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null' returned with 0
Sat May 21 06:53:21 2011 [999055]: Done, exiting from child.
Sat May 21 06:53:21 2011 [999641]: Child exited
Sat May 21 06:53:21 2011 [999667]: child terminated -: status:1 signal?:0 signal number:0.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby dglent » May 21st, '11, 07:01

mikala wrote:(& it's even working in french)



I cant make it work with french. It tries to say the words in english

I use it in konqueror i select a text.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby dglent » May 21st, '11, 07:05

My configuration is:

Port 6560
LogLevel 3
LogDir "default"
DefaultLanguage el
AudioOutputMethod alsa
AddModule "espeak" "sd_espeak" "espeak.conf"
AddModule "festival" "sd_festival" "festival.conf"
AddModule "flite" "sd_flite" "flite.conf"
AddModule "ivona" "sd_ivona" "ivona.conf"
AddModule "dummy" "sd_dummy" ""
DefaultModule espeak
Include "clients/emacs.conf"
Include "clients/gnome-speech.conf"
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby mikala » May 21st, '11, 11:32

espeak is installed ?
For the language you can after choose your voice directly in jovie.
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 12:45

when i configure it with the spd-conf the test resaults are ok, everything works

Code: Select all
[dglent@localhost ~]$ spd-conf
Speech Dispatcher configuration tool
Do you want to setup a completely new configuration? [yes] :
>
Do you want to create/setup a 'user' or 'system' configuration [user] :
>
User configuration already exists.
Do you want to rewrite it with a new one? [no] :
>yes
User configuration created in /home/dglent/.speech-dispatcher/conf
Configuring user settings for Speech Dispatcher
Default output module [espeak] :
>
Default language (two-letter iso language code like "en" or "cs") [en] :
>el
Default audio output method [alsa] :
>pulse
Default port [6561] :
>6560

Configuration written to /home/dglent/.speech-dispatcher/conf/speechd.conf
Basic configuration now complete. You might still need to fine tune it by
manually editing the configuration above file. Especially if you need to
use special audio settings, non-standard synthesizer ports etc.
Do you want to start/restart Speech Dispatcher now and run some tests? [yes] :
>
Starting Speech Dispatcher in user-mode
[Sun May 22 12:43:00 2011 : 178732] speechd: Speech Dispatcher 0.6.7 starting
Testing Speech Dispatcher using spd_say
Did you hear the message about Speech Dispatcher working? [yes] :
>
Speech Dispatcher is working
Speech Dispatcher works. Do you want to skip other tests? [yes] :
>no
Testing whether Espeak works
Did you hear the message 'Espeak seems to work'? [yes] :
>
Espeak is working
Testing PULSE sound output
open(): Δεν υπάρχει τέτοιο αρχείο ή κατάλογος                                               
Can't play audio via paplay /usr/share/sounds/speech-dispatchertest.wav                     
Your audio doesn't seem to work, please fix audio first or choose
a different method.
Testing whether Python Speech Dispatcher library is in path and importable


Diagnostics results:
Speech Dispatcher is working
Synthesizers that were tested and work: []
Audio systems that were tested and work: ['pulse']
Python Speech Dispatcher module is importable
End of diagnostics results





But in jovie i dont have any speaker. Every tab in settings is empty

*i need some help*
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 12:59

i restarted the jovie and i have the speakers now but every 10 seconds i have the message:

Sun May 22 12:59:00 2011 [652246]: CMD: <SET
>
Sun May 22 12:59:00 2011 [652343]: CMD: <SPEAK
>
Sun May 22 12:59:00 2011 [652379]: speak()

Sun May 22 12:59:00 2011 [652392]: Requested data: |<speak>Είναι 12:59</speak>|

Sun May 22 12:59:00 2011 [652405]: Dummy: leaving write() normaly

Sun May 22 12:59:00 2011 [652433]: Semaphore on

Sun May 22 12:59:00 2011 [652679]: Waiting for child...
Sun May 22 12:59:00 2011 [653020]: Starting child...

Sun May 22 12:59:00 2011 [653059]: Entering child loop

Sun May 22 12:59:00 2011 [653077]: child: synth commands = |play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|aplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|paplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|
Sun May 22 12:59:00 2011 [653089]: Speaking in child...
Sun May 22 12:59:24 2011 [187621]: Executed shell command 'play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null' returned with 0
Sun May 22 12:59:24 2011 [187665]: Done, exiting from child.
Sun May 22 12:59:24 2011 [188320]: Child exited
Sun May 22 12:59:24 2011 [188364]: child terminated -: status:1 signal?:0 signal number:0.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 13:06

i saw this:
Sun May 22 12:59:00 2011 [652392]: Requested data: |<speak>Είναι 12:59</speak>|

And i set in the conf file the language as fr and not el
After that i dont have the problem but it cannot read in greek. It spells letter by letter the word
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 13:11

no, i have again the voice messages

speechd log

[Sun May 22 13:05:35 2011 : 714774] speechd: Reading configuration for pattern emacs:*
[Sun May 22 13:05:35 2011 : 714805] speechd: Reading configuration for pattern *:gnomespeech:*
[Sun May 22 13:05:35 2011 : 714823] speechd: Configuration has been read from "/home/dglent/.speech-dispatcher/conf//speechd.conf"
[Sun May 22 13:05:35 2011 : 714835] speechd: Speech Dispatcher Logging to file /home/dglent/.speech-dispatcher//log//speechd.log
[Sun May 22 13:05:35 2011 : 714843] speechd: Speech Dispatcher started with 2 output modules
[Sun May 22 13:05:35 2011 : 714847] speechd: Speech Dispatcher will use port 6560
[Sun May 22 13:05:35 2011 : 714860] speechd: Openning socket connection
[Sun May 22 13:05:35 2011 : 715150] speechd: Speech Dispatcher 0.6.7 started on port 6560 and waiting for clients ...
[Sun May 22 13:05:35 2011 : 717918] speechd: Connection closed
[Sun May 22 13:05:56 2011 : 167989] speechd: G LIST LENGHT IS 2
[Sun May 22 13:09:46 2011 : 42070] speechd: G LIST LENGHT IS 2
[Sun May 22 13:09:49 2011 : 415997] speechd: Error: Broken pipe to module.
[Sun May 22 13:09:49 2011 : 416009] speechd: Output module working status: 0 (pid:22232)
[Sun May 22 13:09:49 2011 : 416017] speechd: Output module terminated abnormally, probably crashed.
[Sun May 22 13:09:49 2011 : 416022] speechd: Error: Output module failed
[Sun May 22 13:09:49 2011 : 416028] speechd: Warning: Didn't find prefered output module, using default
[Sun May 22 13:09:49 2011 : 416033] speechd: Couldn't load default output module, trying other modules
[Sun May 22 13:09:49 2011 : 416037] speechd: Trying other output modules
[Sun May 22 13:09:49 2011 : 416043] speechd: Error: No output module seems to be working, using the dummy output module
[Sun May 22 13:09:49 2011 : 416047] speechd: Output module working status: 1 (pid:22240)




espeak log

Assertion 'e->mainloop->n_enabled_defer_events > 0' failed at pulse/mainloop.c:287, function mainloop_defer_enable(). Aborting.




In dummy.log

Sun May 22 13:14:01 2011 [308918]: CMD: <SET
>
Sun May 22 13:14:01 2011 [309019]: CMD: <SPEAK
>
Sun May 22 13:14:01 2011 [309052]: speak()

Sun May 22 13:14:01 2011 [309063]: Requested data: |<speak>Είναι 13:14</speak>|

Sun May 22 13:14:01 2011 [309076]: Dummy: leaving write() normaly

Sun May 22 13:14:01 2011 [309103]: Semaphore on

Sun May 22 13:14:01 2011 [309350]: Waiting for child...
Sun May 22 13:14:01 2011 [309410]: Starting child...

Sun May 22 13:14:01 2011 [309461]: Entering child loop

Sun May 22 13:14:01 2011 [309473]: child: synth commands = |play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|aplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|paplay /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null|
Sun May 22 13:14:01 2011 [309485]: Speaking in child...
Sun May 22 13:14:24 2011 [758372]: Executed shell command 'play /usr/share/sounds/speech-dispatcher/dummy-message.wav > /dev/null 2> /dev/null' returned with 0
Sun May 22 13:14:24 2011 [758417]: Done, exiting from child.
Sun May 22 13:14:24 2011 [758994]: Child exited
Sun May 22 13:14:24 2011 [759022]: child terminated -: status:1 signal?:0 signal number:0.




The Sun May 22 13:14:01 2011 [309063]: Requested data: |<speak>Είναι 13:14</speak>|
is the time finaly...


i give up :(
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby mikala » May 22nd, '11, 15:29

dglent wrote:i saw this:
Sun May 22 12:59:00 2011 [652392]: Requested data: |<speak>Είναι 12:59</speak>|

And i set in the conf file the language as fr and not el
After that i dont have the problem but it cannot read in greek. It spells letter by letter the word

Well for greek this means you should have a greak speaker.
If greek is not supported by espeak/festival/ it won't work.
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 15:56

maybe because we have an old version

espeak 1.44.03

Fixes:
Lang=el, mk. Was speaking words as individual letters.


Name : espeak
Version : 1.43.03
Release : 2.mga1
Group : Sound
Size : 1283083 Architecture: x86_64
Source RPM : espeak-1.43.03-2.mga1.src.rpm
URL : http://espeak.sourceforge.net/
Summary : Text to speech synthesis engine
Description :
eSpeak is a compact open source software speech synthesizer for
English and other languages.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: kde and speaking clock

Postby mikala » May 22nd, '11, 16:37

dglent wrote:maybe because we have an old version

espeak 1.44.03

Fixes:
Lang=el, mk. Was speaking words as individual letters.


Name : espeak
Version : 1.43.03
Release : 2.mga1
Group : Sound
Size : 1283083 Architecture: x86_64
Source RPM : espeak-1.43.03-2.mga1.src.rpm
URL : http://espeak.sourceforge.net/
Summary : Text to speech synthesis engine
Description :
eSpeak is a compact open source software speech synthesizer for
English and other languages.

good catch :)
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: kde and speaking clock

Postby dglent » May 22nd, '11, 19:16

i reported a bug to update the package:
https://bugs.mageia.org/show_bug.cgi?id=1389
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron