问题
How can i add NSSpeechSynthesizer Class Reference.
I think it is in
/System/Library/Frameworks/AppKit.framework.
However there is no such framework name in framework window when I am clicking add existing frame work.
Can any one help me to do it.
回答1:
AppKit framework is MacOS framework, not iOS, and so NSSpeechSynthesizer class is also available on Mac only.
Check this question on SO for the list of some 3rd-party text-to-speach engines available on iPhone
回答2:
VSSpeechSynthesizer is available for the iOS - but it is a private API and as such will likely be rejected from the app store. However you can still make apps for private consumption. I consider this a bug as it makes creating accessible apps for the partially sighted for instance, harder. I have filed Bug ID #: 9451650 Bug Title: VSSpeechSynthesizer is Private
I currently use Flite TTS in my App. All hopes fix on the Nuance integration in iOS5 being available as a public API.
回答3:
You can find it inside iPhone SDK /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk /System/Library/PrivateFrameworks/VoiceServices.framework/VoiceServices
来源:https://stackoverflow.com/questions/6264958/how-can-i-add-nsspeechsynthesizer-class-reference