Re: [Carbon] Using Speech in Cocoa
Re: [Carbon] Using Speech in Cocoa
- Subject: Re: [Carbon] Using Speech in Cocoa
- From: Douglas Davidson <email@hidden>
- Date: Mon, 1 Oct 2001 14:03:08 -0700
On Monday, October 1, 2001, at 10:09 AM, Ali Ozer wrote:
Note that CFStringGetPascalString() might also return NULL if the
conversion can't be done to the specied encoding... At that point
though you're done, unless you want to try other encodings.
For the purpose of getting a speakable Pascal string out, you may wish
to use lossy conversion rather than fail if there is an occasional
substring that cannot be converted. However, this depends somewhat on
your application. Note that all of the currently shipping voices are
designed to speak North American English, so the uses of encodings
beyond ASCII or perhaps Mac OS Roman are likely to be limited.
Douglas Davidson