How can I add NSSpeechSynthesizer Class Reference?

心不动则不痛 提交于 2019-12-01 07:44:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!