Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard versions of NSArray and NSSpeechSynthesizer Java classes



Peter Rootham-Smith wrote:

At Leopard a considerable amount of deprecation has happened to Apple's NSArray and NSSpeechSynthesizer classes. I would really like to see the Javadoc for these classes to understand things.

If you want to use a speech-synthesizer from Java, I wrote Humble Narrator some time ago, and it will use NSSpeechSynthesizer if it's available:
<http://amug.org/~glguerin/sw/index.html#narrator>


If NSSpeechSynthesizer isn't available, it falls back to exec'ing the '/usr/bin/say' command, or before that command existed, the AppleScript 'say' verb.

Even if you don't use Humble Narrator as-is, it's an example you can pattern your own code after, and it does appear to run NSSpeechSynthesizer properly under Leopard.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.