Speech recognition and text-to-speech
Until a fateful combination of machine learning, quantum computing, and 3D printing spawns tyrannical artificial lifeforms to rule over all mankind, we need to settle for semi-intelligent devices that we program by hand. An important piece of that puzzle is language processing. In this recipe, we will use the OpenEars library to have our iOS device speak and recognize some basic English dialogue.
Getting ready
Due to the size of the libraries required to use OpenEars, this recipe has its own project. Please refer to the project Ch6_SpeechRecognition for full working code of this recipe.
How to do it...
The OpenEars ...
Get Cocos2d for iPhone 1 Game Development Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.