Bonjour, en fait je me réponds à moi-même, et je me remercie pour la réponse.
Comment faire fonctionner le lecteur d'écran Yasr avec Speech-dispatcher ?

1) Il faut télécharger yasr-0.6.9.tar.gz, une version qui est encore plus
compatible avec speech-dispatcher.

2) Suivre les instructions d'installation données dans le fichier install.
Tout s'est bien déroulé pour moi, avec un Ubuntu-8.04.

3) Rechercher le fichier de configuration "yasr.conf", le copier en
".yasr.conf" dans le répertoire d'utilisateur à partir duquel on compte
lancer yasr.
Exemple:
# cp /usr/local/share/yasr/yasr.conf /home/nomdutilisateur/.yasr.conf
C'est le premier fichier consulté par Yasr d'après le fichier README.

4) Editer le fichier ".yasr.conf" en décommentant la ligne qui concerne
speech-dispatcher, et en commentant ce que l'on ne souhaite pas.

5) On peut aussi copier le fichier ".yasr.conf" dans le répertoire /root/
afin que l'on puisse lancer yasr en tant que administrateur.

6) Vérifier que speech-dispatcher fonctionne,
en démarrant speech-dispatcher :
# speech-dispatcher
Puis en testant avec le client spd-say :
# spd-say "coucou tout le monde"
Si l'on entend rien, on peut envisager de configurer speech-dispatcher
comme suit :

7) Installer une synthèse vocale comme espeak par exemple :
# apt-get install espeak libespeak1
Ceci install aussi la librairie espeak pour speech-dispatcher.

8) Editer le fichier de configuration de speech-dispatcher "speechd.conf",
qui sur ma machine se trouve dans le répertoire
"/etc/speech-dispatcher/speechd.conf", en l'adaptant à la synthèse Espeak.
Exemple :
AddModule "espeak" "sd_espeak" "espeak.conf"
"/var/log/speech-dispatcher/espeak.log"
... ... ...
# LanguageDefaultModule selects which output modules are prefered
# for specified languages.
#DefaultModule ibmtts
DefaultModule espeak
LanguageDefaultModule "en"  "espeak"

9) Editer le fichier "espeak.conf", qui sur ma machine se trouve dans le
répertoire "/etc/speech-dispatcher/modules/espeak.conf", en
editant la ligne commençant par EspeakAudioOutputMethod comme suit :
EspeakAudioOutputMethod "alsa"
Ceci permet d'utiliser la sortie audio "alsa" qui est recommandé.

10) Redémarrer speech-dispatcher pour prendre en compte les changements,
puis lancer yasr, et ça cause ! ça cause sur la ligne de commande !

Merci pour tout.
A bienttôt:
Sam



> Bonjour la liste,
> comment faire marcher yasr en mode
> console avec speech-dispatdcher.
>
> Je m'explique :
> que faut-il mettre dans speechd.conf pour le faire marcher avec espeak,
> car avant je voulais le faire avec ibmtts, mais je me rencontre que c'est
> si compliqué que je veux commencer par le plus simple, espeak est déjà
> installé sur mon ubuntu 8.04 et fonctionne très bien.
> voici quelques lignes de mon fichier speechd.conf :
> AddModule "espeak"       "/usr/bin/espeak"   "espeak.conf"
> "/var/log/speech-dispatcher/espeak.log"
> AddModule "festival"     "sd_festival"  "festival.conf"
> AddModule "flite"        "sd_flite"     "flite.conf"
> #AddModule "espeak-generic" "sd_generic" "espeak-generic.conf"
> #AddModule "epos-generic" "sd_generic"   "epos-generic.conf"
> #AddModule "dtk-generic"  "sd_generic"   "dtk-generic.conf"
> AddModule "ibmtts"       "sd_ibmtts"    "ibmtts.conf"
> "/var/log/speech-dispatcher/ibmtts.log"
> #AddModule "cicero"        "sd_cicero"     "cicero.conf"
>
> # The output module testing doesn't actually connect to anything. It
> # outputs the requested commands to standard output and reads
> # responses from stdandard input. This way, Speech Dispatcher's
> # communication with output modules can be tested easily.
>
> AddModule "testing"
>
> # DefaultModule selects which output module is the default.  You must
> # use one of the names of the modules loaded with AddModule.
>
> #DefaultModule ibmtts
> DefaultModule espeak
>
>
> # LanguageDefaultModule selects which output modules are prefered
> # for specified languages.
>
> LanguageDefaultModule "fr"  "espeak"
> #LanguageDefaultModule "cs"  "festival"
> #LanguageDefaultModule "es"  "festival"
> #LanguageDefaultModule "en" "ibmtts"
>
>
> ET voici quelques lignes de mon log:
> [Wed Aug 13 10:08:12 2008 : 931779] speechd:  Speech Dispatcher Logging to
> file /var/log/speech-dispatcher//speechd.log
> [Wed Aug 13 10:08:12 2008 : 932008] speechd:  Initializing output module
> espeak with binary /usr/bin/espeak and configuration
> /etc/speech-dispatcher//modules//espeak.conf
> [Wed Aug 13 10:08:12 2008 : 932037] speechd:  Output module is logging to
> file /var/log/speech-dispatcher//espeak.log
> [Wed Aug 13 10:08:12 2008 : 944292] speechd:  Module espeak loaded.
> [Wed Aug 13 10:08:18 2008 : 1923] speechd: ERROR: Bad syntax from output
> module espeak 1
> [Wed Aug 13 10:08:18 2008 : 1984] speechd:   Couldn't load specified
> output module
> [Wed Aug 13 10:08:18 2008 : 2187] speechd:  Initializing output module
> festival with binary /usr/lib/speech-dispatcher-modules//sd_festival and
> configuration /etc/speech-dispatcher//modules//festival.conf
> [Wed Aug 13 10:08:18 2008 : 2216] speechd:  Output module is logging to
> file /var/log/speech-dispatcher//festival.log
> [Wed Aug 13 10:08:18 2008 : 8569] speechd:  Module festival loaded.
> [Wed Aug 13 10:08:18 2008 : 9180] speechd:  Error: Broken pipe to module.
> [Wed Aug 13 10:08:18 2008 : 9224] speechd:   Output module working status:
> 0 (pid:5736)
> [Wed Aug 13 10:08:18 2008 : 9272] speechd:  Output module terminated
> abnormally, probably crashed.
> [Wed Aug 13 10:08:18 2008 : 9319] speechd:  Error: Broken pipe to module.
> [Wed Aug 13 10:08:18 2008 : 9341] speechd:   Output module working status:
> 0 (pid:5736)
> [Wed Aug 13 10:08:18 2008 : 9361] speechd:  Output module terminated
> abnormally, probably crashed.
> [Wed Aug 13 10:08:18 2008 : 9414] speechd: ERROR: Module festival failed
> to initialize. Reason:
> ---------------
> Communicating with Festival through a socket. Can't connect to Festival
> server. Check your configuration in etc/speechd-modules/festival.conf for
> the specified host and port and check if Festival is really running there,
> e.g. with telnet. Please see documentation for more info.
> ---------------
>
> [Wed Aug 13 10:08:18 2008 : 9450] speechd:   Couldn't load specified
> output module
> [Wed Aug 13 10:08:18 2008 : 9568] speechd:  Initializing output module
> flite with binary /usr/lib/speech-dispatcher-modules//sd_flite and
> configuration /etc/speech-dispatcher//modules//flite.conf
> [Wed Aug 13 10:08:18 2008 : 9593] speechd:  Output module is logging to
> file /var/log/speech-dispatcher//flite.log
> [Wed Aug 13 10:08:18 2008 : 10511] speechd:  ERROR: Can't load output
> module flite with binary /usr/lib/speech-dispatcher-modules//sd_flite. Bad
> filename in configuration?
> [Wed Aug 13 10:08:18 2008 : 10559] speechd:   Couldn't load specified
> output module
> [Wed Aug 13 10:08:18 2008 : 10690] speechd:  Initializing output module
> ibmtts with binary /usr/lib/speech-dispatcher-modules//sd_ibmtts and
> configuration /etc/speech-dispatcher//modules//ibmtts.conf
> [Wed Aug 13 10:08:18 2008 : 10716] speechd:  Output module is logging to
> file /var/log/speech-dispatcher//ibmtts.log
> [Wed Aug 13 10:08:18 2008 : 11650] speechd:  ERROR: Can't load output
> module ibmtts with binary /usr/lib/speech-dispatcher-modules//sd_ibmtts.
> Bad filename in configuration?
> [Wed Aug 13 10:08:18 2008 : 11699] speechd:   Couldn't load specified
> output module
> [Wed Aug 13 10:08:18 2008 : 11928] speechd:   Reading configuration for
> pattern emacs:*
> [Wed Aug 13 10:08:18 2008 : 12287] speechd:   Reading configuration for
> pattern *:gnomespeech:*
> [Wed Aug 13 10:08:18 2008 : 12410] speechd:  Configuration has been read
> from "/etc/speech-dispatcher//speechd.conf"
> [Wed Aug 13 10:08:18 2008 : 12472] speechd:  Speech Dispatcher Logging to
> file /var/log/speech-dispatcher//speechd.log
> [Wed Aug 13 10:08:18 2008 : 12512] speechd:   Speech Dispatcher started
> with 1 output module
> [Wed Aug 13 10:08:18 2008 : 12567] speechd:   Openning socket connection
> [Wed Aug 13 10:08:18 2008 : 13847] speechd: Speech Dispatcher waiting for
> clients ...
> [Wed Aug 13 10:08:29 2008 : 512194] speechd:   Warning: Didn't find
> prefered output module, using default
> [Wed Aug 13 10:08:29 2008 : 512256] speechd:  Error: Can't find default
> output module or it's not working!
> [Wed Aug 13 10:08:29 2008 : 512277] speechd:   Error: Unspecified output
> module!
>
> [Wed Aug 13 10:08:29 2008 : 512294] speechd:   Output module doesn't
> work...
> [Wed Aug 13 10:08:29 2008 : 512311] speechd:  Error: Output module failed
> [Wed Aug 13 10:08:29 2008 : 512327] speechd:   Warning: Didn't find
> prefered output module, using default
> [Wed Aug 13 10:08:29 2008 : 512344] speechd:  Error: Can't find default
> output module or it's not working!
> [Wed Aug 13 10:08:29 2008 : 512360] speechd:   Error: Unspecified output
> module!
>
> [Wed Aug 13 10:08:29 2008 : 513205] speechd:   Connection closed
>
> Merci pour tout.
>
>
> _______________________________________________
> Liste de diffusion CarrefourBLinuX
>     [email protected]
>     http://lists.freearchive.org/mailman/listinfo/carrefourblinux
> Pour s'inscrire par courriel :
>     'mailto:[EMAIL PROTECTED]'
> Pour se retirer de la liste par courriel :
>     'mailto:[EMAIL PROTECTED]'
>
> Archives : http://lists.freearchive.org/pipermail//carrefourblinux
> Anciennes archives (Yahoogroupes) :
>     http://fr.groups.yahoo.com/group/carrefourblinux/messages
> Rechercher : http://lists.freearchive.org/cgi-bin/search.cgi
>
> Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
> Fiches EDU : http://blinuxwiki.pbwiki.com/FichesEdu
>


_______________________________________________
Liste de diffusion CarrefourBLinuX 
    [email protected]
    http://lists.freearchive.org/mailman/listinfo/carrefourblinux
Pour s'inscrire par courriel : 
    'mailto:[EMAIL PROTECTED]'
Pour se retirer de la liste par courriel : 
    'mailto:[EMAIL PROTECTED]'

Archives : http://lists.freearchive.org/pipermail//carrefourblinux
Anciennes archives (Yahoogroupes) :
    http://fr.groups.yahoo.com/group/carrefourblinux/messages
Rechercher : http://lists.freearchive.org/cgi-bin/search.cgi

Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
Fiches EDU : http://blinuxwiki.pbwiki.com/FichesEdu

Répondre à