/** * @author Gwennael Gate * Copyright (c) Aldebaran Robotics 2010 */ #ifndef SOUNDBASEDREACTION_H #define SOUNDBASEDREACTION_H #ifdef SOUNDBASEDREACTION_IS_REMOTE #include #include #include #endif #include #include #include #include #include "alaudio/alsoundextractor.h" using namespace AL; class ALSoundBasedReaction : public ALSoundExtractor { public: ALSoundBasedReaction(boost::shared_ptr broker, const std::string & name); virtual ~ALSoundBasedReaction(); void init(); void process(const int & nbOfChannels, const int & nbrOfSamplesByChannel, const AL_SOUND_FORMAT * buffer, const ALValue & timeStamp); private: ALTextToSpeechProxy fProxyToTextToSpeech; }; #endif // SOUNDBASEDREACTION_H