Package: gnome-speech
Severity: normal
Tags: patch
Hello,
after a long and painful process[1] I found out that the Italian voices
choke badly on UTF-8 characters, and want their input to be latin1.
This was rendering the Festival driver useless, and was very much on the
way for Italians to enjoy a 100% free software audio desktop.
Attached is the patch that sends latin1 data instead of utf-8 when the
Italian voices are used.
Regards,
Enrico
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
--- festivalsynthesisdriver.c 2006-06-28 17:43:04.252707768 +0200
+++ festivalsynthesisdriver.c.final 2006-06-28 17:41:15.475244456 +0200
@@ -941,6 +941,12 @@
festival_synthesis_driver_say_raw (d, s->voice);
speaker_refresh_parameters (SPEAKER(s));
d->last_speaker = s;
+
+ if (strcmp(d->last_speaker->voice, "(voice_pc_diphone)\n") == 0
+ || strcmp(d->last_speaker->voice, "(voice_lp_diphone)\n") == 0)
+ g_io_channel_set_encoding(d->channel_sock, "latin1", NULL);
+ else
+ g_io_channel_set_encoding(d->channel_sock, "UTF-8", NULL);
}
clb_list_free (d->crt_clbs);