Re: [Carbon] Using Speech in Cocoa
Re: [Carbon] Using Speech in Cocoa
- Subject: Re: [Carbon] Using Speech in Cocoa
- From: Ricky Sharp <email@hidden>
- Date: Mon, 1 Oct 2001 16:31:38 -0500
On Monday, October 1, 2001, at 04:03 PM, Douglas Davidson wrote:
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.
Also, depending upon the complexity of the speech input, you may want to
use phonetical input rather than text input.
Apple's speech team has been fixing quite a few bugs recently since I've
been pestering them :) (Thanks guys!) Some of it has been fixes for
improper pronunciations. But no matter how smart they make the
text-to-phoneme conversion algorithm, they'll be cases where the wrong
phonemes will be generated. By using phonemes, you can prevent such
situations.
AFAIK, phonetical input should just always use plain vanilla ASCII as an
encoding.
------------------------------------------------------------
Ricky A. Sharp Instant Interactive(tm)
Founder & President <
http://www.instantinteractive.com>
<
mailto:email@hidden>
------------------------------------------------------------