O'Reilly logo

Cocos2d for iPhone 1 Game Development Cookbook by Nathan Burba

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Speech recognition and text-to-speech

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required