NAOqi Audio - Overview | API
Namespace : AL
#include <alproxies/alspeechrecognitionproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns the list of the languages currently installed on the robot.
Returns: | List of installed languages. Example: ['English', 'French']
For the complete list of language codes, see: Available languages. |
---|
Returns the language currently used by the speech recognition system.
Returns: | Current language used by the speech recognition engine. Example: 'French'
For the complete list of language codes, see: Available languages. |
---|
Gets a parameter of the speech recognition engine.
Note that when the ASR engine language is set to Chinese, no parameter can be retrieved.
Parameters: |
|
---|---|
Returns: | Value of the parameter |
Deprecated since version 1.12: This method is not available on NAO V4 (ATOM).
This function allows you to get the phonetic transcription(s) used by the speech recognition engine when it is asked to recognize a word. Note that when the ASR engine language is set to Chinese or Japanese, no phonetic transcription can be retrieved.
Parameters: |
|
---|---|
Returns: | Phonetic transcription(s) of the word |
Deprecated since version 1.12: This method is not available on NAO V4 (ATOM).
Loads the vocabulary to recognize contained in a .lxd file (ACAPELA grammar file format). This method is not available with the ASR engine language set to Chinese or Japanese.
Parameters: |
|
---|
Note
On NAO V3 (GEODE), in Japanese and Chinese this method is inactive.
When set to True, a “bip” is played at the beginning of the recognition process, and another “bip” is played at the end of the process. This is a useful indication to let the user know when it is appropriate to speak.
Parameters: |
|
---|
Sets the language currently used by the speech recognition system. Note that each NAOqi restart will however reset that setting to the default language that can be set on NAO’s web page.
Parameters: |
|
---|
Sets parameters of the speech recognition engine. For now the only parameter that can be set is the sensitivity [0 - 1] of the voice activity detector used by the engine.
Parameters: |
|
---|
Note
On NAO V3 (GEODE), the “sensitivity” parameter is not available.
Enables or disables the LEDs animations showing the state of the recognition engine during the recognition process.
Parameters: |
|
---|
Sets the list of words/phrases (vocabulary) that should be recognized by the speech recognition engine. If word spotting is disabled (default), the engine expects to hear one of the specified words, nothing more, nothing less. If enabled, the specified words can be pronounced in the middle of a whole speech stream, the engine will try to spot them.
Parameters: |
|
---|
Note
On NAO V3 (GEODE) the following differences apply:
Sets the list of words/phrases (vocabulary) that should be recognized by the speech recognition engine. To enable “word spotting”, please use ALSpeechRecognitionProxy::setVocabulary() instead.
Parameters: |
|
---|
Subscribes to ALSpeechRecognition. This causes the module to start writing information to ALMemory in “WordRecognized”. This can be accessed in ALMemory using ALMemoryProxy::getData().
Parameters: |
|
---|
Unsubscribes to ALSpeechRecognition. This causes the module to stop writing information to ALMemory in “WordRecognized”.
Parameters: |
|
---|
Raised when one of the specified words with ALSpeechRecognitionProxy::setWordListAsVocabulary() has been recognized. When no word is currently recognized, this value is reinitialized.
Parameters: |
|
---|
Raised when one of the specified words with ALSpeechRecognitionProxy::setWordListAsVocabulary() has been recognized. This value is kept unchanged until a new word has been recognized.
Parameters: |
|
---|
Raised when the automatic speech recognition engine has detected a voice activity.
Parameters: |
|
---|