How can i add NSSpeechSynthesizer Class Reference. I think it is in /System/Library/Frameworks/AppKit.framework. However there is no such framework name
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