/** * @author Gwennael Gate * Copyright (c) Aldebaran Robotics 2010 */ #ifndef SPEECHBASEDREACTION_H #define SPEECHBASEDREACTION_H #include #include #include #include namespace AL { class ALBroker; } class ALSpeechBasedReaction : public AL::ALModule { public: ALSpeechBasedReaction(boost::shared_ptr broker, const std::string& name); virtual ~ALSpeechBasedReaction(); void startRecognition(); void stopRecognition(); void onSpeechRecognized(const std::string& name, const AL::ALValue& val, const std::string& myName); private: std::string fCommand; boost::shared_ptr fTextToSpeech; boost::shared_ptr fMemory; boost::shared_ptr fSpeechRecognition; }; #endif // SPEECHBASEDREACTION_H