// // SpeechRecognizer.h // interface/src // // Created by Ryan Huffman on 07/31/14. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_SpeechRecognizer_h #define hifi_SpeechRecognizer_h #include #include #include class SpeechRecognizer : public QObject { Q_OBJECT public: SpeechRecognizer(); ~SpeechRecognizer(); void handleCommandRecognized(const char* command); bool getEnabled() const { return _enabled; } public slots: void setEnabled(bool enabled); void addCommand(const QString& command); void removeCommand(const QString& command); signals: void commandRecognized(const QString& command); void enabledUpdated(bool enabled); protected: void reloadCommands(); private: bool _enabled; QSet _commands; void* _speechRecognizerDelegate; void* _speechRecognizer; }; #endif // hifi_SpeechRecognizer_h