[Voiceglue] Using ISO-8859-1 as XML encoding

emiliano esposito emiespo at tiscali.it
Fri Dec 12 06:58:13 EST 2008


Hi all,

I need to synthetize into italian language, and festival won't like 
UTF-8 strings.
So I ask you if it's someway possible to have vxml files encoded into 
ISO-8859-1.

I tried with:

<?xml version="1.0" encoding="ISO-8859-1"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd"
xml:lang="it">

But when the first italian character (for instance: "è" ie &egrave; in 
HTML) shows up, I get an error.
I think it's due to the SSML translation done by OpenVXI, that simply 
returns "<?xml version='1.0'?>" and won't set a proper encoding for its 
content.

Is it possible to change this behaviour?

Thanks.

The error log follows:

main::main() called at /usr/bin/voiceglue line 4058
12:38:16:1229081 EROR VOICEGLU callid=[57] has bad speak/audio XML in 
<?xml version='1.0'?><speak version='1.0' 
xmlns='http://www.w3.org/2001/10/synthesis' 
xml:base='http://localhost/rss2vxml/index.php' xml:lang='it'> "La Carta 
non �02x�02x strumento di potere</speak>: Cannot parse prompt XML: :1: 
parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xC3 0x30 0x32 0x78
is' xml:base='http://localhost/rss2vxml/index.php' xml:lang='it'> "La 
Carta non
at /usr/bin/voiceglue line 622
main::fail(':1: parser error : Input is not proper UTF-8, indicate 
encodi...') called at /usr/bin/voiceglue line 3779
main::__ANON__(':1: parser error : Input is not proper UTF-8, indicate 
encodi...') called at /usr/lib/perl5/XML/LibXML.pm line 511
eval {...} called at /usr/lib/perl5/XML/LibXML.pm line 511
XML::LibXML::parse_string('XML::LibXML=HASH(0x9688d90)', '<?xml 
version=\'1.0\'?><speak version=\'1.0\' xmlns=\'http://...') called at 
/usr/bin/voiceglue line 998
eval {...} called at /usr/bin/voiceglue line 997
main::parse_speak_xml('<?xml version=\'1.0\'?><speak version=\'1.0\' 
xmlns=\'http://...') called at /usr/bin/voiceglue line 2078
main::handle_ovxi_queue('HASH(0x9777dd8)', 'HASH(0x9688ce0)') called at 
/usr/bin/voiceglue line 2638
main::handle_msg_from_vxml_interp('HASH(0x9777dd8)', 'Queue "<?xml 
version=\\'1.0\\'?><speak version=\\'1.0\\' xmln...') called at 
/usr/bin/voiceglue line 4004
main::main() called at /usr/bin/voiceglue line 4058 at 
/usr/bin/voiceglue line 998
at /usr/bin/voiceglue line 622
main::fail(':1: parser error : Input is not proper UTF-8, indicate 
encodi...') called at /usr/bin/voiceglue line 3779
main::__ANON__(':1: parser error : Input is not proper UTF-8, indicate 
encodi...') called at /usr/share/perl/5.10/Carp.pm line 44
Carp::croak(':1: parser error : Input is not proper UTF-8, indicate 
encodi...') called at /usr/lib/perl5/XML/LibXML.pm line 518
XML::LibXML::parse_string('XML::LibXML=HASH(0x9688d90)', '<?xml 
version=\'1.0\'?><speak version=\'1.0\' xmlns=\'http://...') called at 
/usr/bin/voiceglue line 998
eval {...} called at /usr/bin/voiceglue line 997
main::parse_speak_xml('<?xml version=\'1.0\'?><speak version=\'1.0\' 
xmlns=\'http://...') called at /usr/bin/voiceglue line 2078
main::handle_ovxi_queue('HASH(0x9777dd8)', 'HASH(0x9688ce0)') called at 
/usr/bin/voiceglue line 2638
main::handle_msg_from_vxml_interp('HASH(0x9777dd8)', 'Queue "<?xml 
version=\\'1.0\\'?><speak version=\\'1.0\\' xmln...') called at 
/usr/bin/voiceglue line 4004
main::main() called at /usr/bin/voiceglue line 4058



More information about the Voiceglue mailing list