3038 Items found
<< return to C++ examples Principle . If you want to have a sound-based reaction, you need to retrieve the sound received by NAO’s microphones. To do so, you have to implement a particular kind of module: it must inherit from ALSoundExtractor. ALSoundExtractor implements some key methods to help you process sound: process . This method has to be redefined by the user. It is automatically called each time a sound buffer is sent, and its arguments correspond to the buffer information.
<< return to C++ examples Overview . This example module ALSoundBasedReaction makes NAO say “Hello there” each time a sudden and loud noise is detected. To do so, it uses the processSound callback method. This module can be remote or local . Downloads . Whole example . soundbasedreactio