[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [orca-list] Capital, Capital, Capital
- From: "Bohdan R. Rau" <ethanak polip com>
- To: orca-list gnome org
- Subject: Re: [orca-list] Capital, Capital, Capital
- Date: Thu, 20 Mar 2008 07:03:20 +0100
Dnia 2008-03-19, śro o godzinie 14:52 +0000, Jonathan Duddington pisze:
[...]
> The second tries to speak the word "underscore" according to the
> spelling-to-sound rules of the local language.
OK - small patch for speech-dispatcher espeak module (translates special
key names to corresponding characters) included.
Bohdan
diff -Naur speech-dispatcher-0.6.6/src/modules/espeak.c speech-dispatcher-0.6.6.keys/src/modules/espeak.c
--- speech-dispatcher-0.6.6/src/modules/espeak.c 2008-02-08 11:01:09.000000000 +0100
+++ speech-dispatcher-0.6.6.keys/src/modules/espeak.c 2008-03-20 06:35:41.732056400 +0100
@@ -471,7 +471,11 @@
case MSGTYPE_KEY:
{
/* TODO: Convert unspeakable keys to speakable form */
- char *msg = g_strdup_printf("<say-as interpret-as=\"tts:key\">%s</say-as>", data);
+ char *msg, *d = data;
+ if (!strcmp(d,"space")) d=" ";
+ else if (!strcmp(d,"underscore")) d="_";
+ else if (!strcmp(d,"double-quote")) d="\"";
+ msg = g_strdup_printf("<say-as interpret-as=\"tts:key\">%s</say-as>", d);
result = espeak_Synth(msg, strlen(msg) + 1, 0, POS_CHARACTER, 0,
flags, NULL, NULL);
g_free(msg);
- References:
- [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- From: Jonathan Duddington
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- From: Jonathan Duddington
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- From: Jonathan Duddington
- Re: [orca-list] Capital, Capital, Capital
- Re: [orca-list] Capital, Capital, Capital
- From: Jonathan Duddington
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]