cocos2d-x/plugin-x — pull request #5 by gelldur (2013-10-15 08:10:33+00:00)
Title: Adding iSpeech for Android

You can use it in this way

#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
PluginProtocol* pPluginISpeech =
PluginManager::getInstance()->loadPlugin ( "ISpeech" );

PluginParam* paramLanguage = new PluginParam (
UserConfiguration::getInstance()->getLearningLanguage()->getVoice().c_str() );
PluginParam* paramText = new PluginParam ( text.c_str() );

pPluginISpeech->callFuncWithParam ( "setVoiceType", paramLanguage, NULL );
int result = pPluginISpeech->callIntFuncWithParam ( "speak", paramText,
NULL );

LOG ( "Result code %d", result );

CC_SAFE_DELETE ( paramLanguage );
CC_SAFE_DELETE ( paramText );
#endif