After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 398916 - IBM TTS driver in Chinese language
IBM TTS driver in Chinese language
Status: RESOLVED FIXED
Product: gnome-speech
Classification: Deprecated
Component: drivers
0.4.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Speech Maintainer(s)
GNOME Speech Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-01-21 02:06 UTC by Gilles Casse
Modified: 2007-02-25 15:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Fix stack overflow in the viavoice driver (766 bytes, patch)
2007-01-21 10:53 UTC, Gilles Casse
committed Details | Review
Support of non-latin languages for revision 275 (7.44 KB, patch)
2007-02-06 00:32 UTC, Gilles Casse
committed Details | Review

Description Gilles Casse 2007-01-21 02:06:50 UTC
This driver have to be updated for Chinese voices offered by IBM TTS.

Some of the voice names are not coded in unibyte charset and give a stack overflow (a patch will follow soon).

Check please if the driver must be compiled with additional IBM TTS libraries (for example chtrom for Chinese Traditional) and how these libraries can be added to the Makefile.

Note: I will be glad to work on this RFE; support from a Chinese person is welcomed!
Comment 1 Gilles Casse 2007-01-21 10:53:08 UTC
Created attachment 80802 [details] [review]
Fix stack overflow in the viavoice driver

Some IBM TTS voices offer names which are not coded in a unibyte character set.
The attached patch fixes this (checked using the zh_TW and zh_CN voices).
The following issue if to correctly return the voice name if not coded in a unibyte charset (the code today rely on "unibyte functions" such as strcmp).
Comment 2 Li Yuan 2007-01-22 08:27:35 UTC
I am glad to help!
Comment 3 Gilles Casse 2007-02-06 00:32:33 UTC
Created attachment 81965 [details] [review]
Support of non-latin languages for revision 275

This patch helps to select one of the Viavoice Chinese voices. A very basic test (once sentence said) has been done using Firefox 2.0 + Orca (2.17.90) + Gnome-speech (0.4.8) + IBM TTS (6.7.5).

More details:
* Fix length of voice names (UCS-2).
* Convert the UTF-8 text to the relevant charset (previously ISO-8859-1).
* The returned locale string can now include a variant. For example, instead of zh_CN, is returned zh_CN_GB or zh_CN_PinYin.
* A memory leak has been fixed.
Comment 4 Willie Walker 2007-02-11 15:32:05 UTC
Committed and released with gnome-speech 0.4.9.  Thanks!
Comment 5 Willie Walker 2007-02-25 12:09:15 UTC
By the way, does the patch fix this bug?  If so, can we close this bug?
Comment 6 Gilles Casse 2007-02-25 15:02:40 UTC
If I can answer this, yes, this bug could probably be closed now.