April 2015
Intermediate to advanced
556 pages
17h 47m
English
The first thing you are going to do is get the data that the data source will provide to the table view. This is the list of voices that the system has available for the speech synthesizer.
To find out what voices are available, you call the following NSSpeechSynthesizer class method:
class func availableVoices() -> [AnyObject]?
This method returns an array that contains voice identifiers. Voice identifiers are
strings written in reverse domain notation. Here is an example of a voice
identifier: com.apple.speech.synthesis.voice.Fred.
Also, notice that availableVoices() is a class method. This means you cannot call availableVoices() on an instance of NSSpeechSynthesizer – only on the NSSpeechSynthesizer class ...
Read now
Unlock full access