[Voiceglue] More on UTF-8
Carlos Alarcón
carlos.alarcon at tyven.com
Fri Jan 23 11:45:10 EST 2009
Hi,
I had installed http://www.freebsoft.org/festival-freebsoft-util and the
modified ssml-mode.scm , installed your perl module and applied your patch.
I I try to run then my vxml page I can't heard anything. I haven't
modify ti yet. Just the same application I was using before.
Seems it is looking to some wav files at asterisk sound folder without
succeed, actually that folder only have now a file called :
[root at xen4 SSMLExtender]# ls /var/lib/asterisk/sounds/voiceglue/tts/
names.db
the vxml is something like:
<?xml version="1.0" encoding="iso-8859-1"?>
<vxml xml:lang="es-ES" version="2.0" xmlns="http://www.w3.org/2001/vxml">
<property name="inputmodes" value="dtmf"/>
<property name="termchar" value=""/>
<property name="timeout" value="3s"/>
<catch event="connection.disconnect.hangup"><goto
next="index.php?page=hangup"/></catch>
<form>
<block><prompt><audio src="audio/welcome.wav">Bienvenido a
FonyPay</audio></prompt></block>
<field><prompt timeout="2s"/><noinput><goto
expr="'index.php?txnid=95fac8a9\u0026page=password'"/></noinput></field>
</form>
<link next="index.php?txnid=95fac8a9&page=password" dtmf="0"></link>
<catch event="noinput"><prompt><audio src="audio/noinput.wav">No he oido
nada !</audio></prompt>
</catch>
</vxml>
I attach the Dynlog output in a file.
Probably I am missing some step but cannot realize right now.
Checking the logs seems like you are trying to use festival in a
client-server way, right?
17:33:27:750 CRIT SNDCACHE xen4.tyv
VoiceGlue::__ANON__('connect: Conexi\x{c3}\x{b3}n rehusada at
/usr/lib/perl5/site_perl/5.8.8...') called at
/usr/lib/perl5/site_perl/5.8.8/SSMLExtender.pm line 149
17:33:27:750 CRIT SNDCACHE xen4.tyv
SSMLExtender::festival_server_tts('<?xml version=\'1.0\'
encoding=\'utf-8\'?><speak version=\'1....',
'/var/lib/asterisk/sounds/voiceglue/tts/0000000000000004.wav')
called at /usr/lib/perl5/site_perl/5.8.8/SSMLExtender.pm line 116
17:33:27:750 CRIT SNDCACHE xen4.tyv
SSMLExtender::voiceglue_tts_gen('SSMLExtender=HASH(0x9570f24)',
'<?xml version=\'1.0\' encoding=\'utf-8\'?><speak version=\'1....',
'/var/lib/asterisk/sounds/voiceglue/tts/0000000000000004.wav')
called at /usr/bin/voiceglue line 3155
17:33:27:750 CRIT SNDCACHE xen4.tyv
VoiceGlue::process_next_request_item(1012) called at
/usr/bin/voiceglue line 3324
17:33:27:750 CRIT SNDCACHE xen4.tyv
VoiceGlue::handle_msg_from_voiceglue_main('1012 - tts <?xml
version=\'1.0\' encoding=\'utf-8\'?><speak v...') called at
/usr/bin/voiceglue line 3463
17:33:27:750 CRIT SNDCACHE xen4.tyv
VoiceGlue::run_sound_cache('::SC_TO_MAIN') called at
/usr/bin/voiceglue line 3521
17:33:27:750 CRIT SNDCACHE xen4.tyv
VoiceGlue::start_sound_cache() called at /usr/bin/voiceglue line 3924
17:33:27:750 CRIT SNDCACHE xen4.tyv VoiceGlue::main() called at
/usr/bin/voiceglue line 4111
If that, I am afraid that after installing festival-freebsoft-util
festival_server is not able to start:
[root at xen4 ~]# festival_server
SIOD ERROR: unbound variable : token_to_words
closing a file left open: /usr/share/festival/cap-signalization.scm
closing a file left open: /usr/share/festival/speech-dispatcher.scm
closing a file left open: /usr/share/festival/festival.scm
closing a file left open: /usr/share/festival/init.scm
festival: fatal error exiting.
I was trying to find out something at festival-freebsoft-util maillist
but not succeed. Any cue?
Regards
emiliano esposito escribió:
> Carlos Alarcón ha scritto:
>> Hi,
>> Browsing the mailist I can see that Emiliano were doing some stuff
>> getting voiceglue able to run with festival and using ISO-8859-1
>> encoding.
>> I am also using festival since it gives Spanish Language support, I
>> will need also to use ISO-8859-1 encoding (festival seems not to like
>> other).
>> Does the workaround solve the problem?, I mean, after the workaround,
>> does voiceglue give to voiceglue_gen_tts the proper ISO-8859-1
>> characters?
>
> Hi, I've made an external module which takes care of some missing
> aspects, they are:
>
> 1) support for UTF-8.
> 2) support for SSML speech tags (VXML is a superset of SSML)
> 3) support for long filenames (strictly connected to point 2).
>
> So I included the Perl module and the diffs file for
> /usr/bin/voiceglue, v0.8.
>
> It's my first Perl program, and it's not much long, so I kindly ask
> everybody willing to do it, to correct errors (if any) and don't blame
> too much if things are not the state of the art :)
>
> Next: Festival! It doesn't like UTF-8, nor SSML, so I downloaded this
> package:
>
> http://www.freebsoft.org/festival-freebsoft-utils
>
> And installed it (simply copy the *.scm files to your Festival
> workdir). It provides Scheme functions for ssml (UTF8 encoded!)
> support in Festival.
>
> Unfortunately there is an error in the code, so I made a slighlty
> patched version (included it in the archive) of the "ssml-mode.scm" file.
>
> I also added to it a Scheme function that simply takes an ssml sheet
> and produces an Asterisk-ready wave file (ie it does the 8khz
> convertion inside Festival).
>
> The only bad thing at the moment is that many SSML tags don't work (I
> asked in their mailing list why), but if you only need simple text OR
> simple tags like "<s>" or "<p>", then it's OK.
>
> If you have any question, feel free to ask.
> Kind regards.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voiceglue mailing list
> Voiceglue at voiceglue.org
> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dynlog.txt
Url: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090123/c1a10357/attachment-0001.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos_alarcon.vcf
Type: text/x-vcard
Size: 267 bytes
Desc: not available
Url : http://www.voiceglue.org/pipermail/voiceglue/attachments/20090123/c1a10357/attachment-0001.vcf
More information about the Voiceglue
mailing list