I did something for the iPhone and ran into interesting “things”. I quickly adapted these “things” for Mac OS X (for fun), and this is what happened ... Speech and VoiceOver in Mac OS X are in Russian. Someone this may be useful. You can find many uses, but it all depends on your needs.
I will break this small article into two parts. One part for ordinary users who just want to install support for Russian speech in Mac OS X. And for novice developers, whom I will tell you how the module is arranged and provide the source codes. For ordinary users ')
System requirements:
The folder "ruSynthesizer.SpeechSynthesizer" must be copied to the folder / Library / Speech / Synthesizers
The “Vasilisa.SpeechVoice” folder must be copied into the folder. / Library / Speech / Voices
If any of the folders there, then it needs to be created. You can activate Vasilisa in System Preferences (System Preferences)> Speech.
Minuses:
Need fast internet connection
Low sound quality
Long texts are not voiced.
For novice developers
We will not study and invent anything, but simply take the “finished” and sculpt a synthesizer out of it in 5 minutes.
Microsoft is developing by leaps and bounds web service Microsoft Translator (beta). One of the innovations in the second version is the sounding of the text in Russian. We will use this web service.
We will not study in detail and go into details of the "Speech Synthesis Manager Reference" and "Speech Synthesis Programming Guide" from Apple, but take a ready-made example - SynthesizerAndVoiceExample. This example is in the Xcode v3.1.4 package. This package, to get examples from it, can be downloaded from the Apple site. In later versions, Apple removed all the examples, but put them on their site (SynthesizerAndVoiceExample forgot to put it out).
In fact, we only need to slightly change a few methods (literally a few lines in each method) into the SynthesizerAndVoiceExample project's SynthesizerSimulator.m file:
Change the voice module description for the Info-VoiceCF1.plist synthesizer. Change the name, locale and range of spoken characters. The finished file can be taken from the final project. http://www.yuriev.info/synth.zip
Everything, the basic synthesizer is ready. 5 minutes of work, and someone can be very useful.