Public Member Functions | |
| ALSoundRecognition (boost::shared_ptr< ALBroker > pBroker, std::string pName) | |
| void | init () |
| void | process (const int &nbOfChannels, const int &nbrOfSamplesByChannel, const AL_SOUND_FORMAT *buffer, const ALValue &timeStamp) |
| method is automatically called by the AudioDevice Module. | |
| void | startSession () |
| void | stopSession () |
| void | restartSession () |
| int | getStatus () |
| std::string | getResult () |
| void | restart () |
| ALSoundRecognition::ALSoundRecognition | ( | boost::shared_ptr< ALBroker > | pBroker, |
| std::string | pName | ||
| ) |
This makes the method available to other cpp modules and to python.
| std::string ALSoundRecognition::getResult | ( | ) |
get speeh recognition result
| int ALSoundRecognition::getStatus | ( | ) |
get the current speech recognition status
| status | 0:初始化失败 1:初始化成功 2:正在识别中 3:识别中止 4:识别失败,请获取错误码进行处理 5:识别成功,等待下次对话 |
| void ALSoundRecognition::init | ( | ) |
init soundrecognition module
| void ALSoundRecognition::restart | ( | ) |
restart the module
| void ALSoundRecognition::restartSession | ( | ) |
Restart speech recognition session
| void ALSoundRecognition::startSession | ( | ) |
Start speech recognition and empty the last session
| void ALSoundRecognition::stopSession | ( | ) |
Stop speech recognition and no longer open the next recognition
1.8.6