#include <speech_to_text_action_handler.h>
Public Member Functions | |
| void | AudioMsgCallback (const gcloud_speech_msgs::LinearPcm16Le16000Audio::ConstPtr &msg) |
| void | ExecuteSpeechToTextAction (const gcloud_speech_msgs::SpeechToTextGoalConstPtr &goal) |
| SpeechToTextActionHandler (cogrob::cloud::speech::GoogleSpeechRecognizerInterface *recognizer, actionlib::SimpleActionServer< gcloud_speech_msgs::SpeechToTextAction > *simple_action_server) | |
Private Attributes | |
| cogrob::cloud::speech::AudioQueue | audio_queue_ |
| std::atomic_bool | is_active_ |
| cogrob::cloud::speech::GoogleSpeechRecognizerInterface * | recognizer_ |
| util::SimpleThreadSafeQueue< cogrob::cloud::speech::RecognitionResult > | result_queue_ |
| actionlib::SimpleActionServer< gcloud_speech_msgs::SpeechToTextAction > * | simple_action_server_ |
Definition at line 18 of file speech_to_text_action_handler.h.
| gcloud_speech::SpeechToTextActionHandler::SpeechToTextActionHandler | ( | cogrob::cloud::speech::GoogleSpeechRecognizerInterface * | recognizer, |
| actionlib::SimpleActionServer< gcloud_speech_msgs::SpeechToTextAction > * | simple_action_server | ||
| ) |
Definition at line 17 of file speech_to_text_action_handler.cc.
| void gcloud_speech::SpeechToTextActionHandler::AudioMsgCallback | ( | const gcloud_speech_msgs::LinearPcm16Le16000Audio::ConstPtr & | msg | ) |
Definition at line 26 of file speech_to_text_action_handler.cc.
| void gcloud_speech::SpeechToTextActionHandler::ExecuteSpeechToTextAction | ( | const gcloud_speech_msgs::SpeechToTextGoalConstPtr & | goal | ) |
Definition at line 41 of file speech_to_text_action_handler.cc.
|
private |
Definition at line 39 of file speech_to_text_action_handler.h.
|
private |
Definition at line 43 of file speech_to_text_action_handler.h.
|
private |
Definition at line 49 of file speech_to_text_action_handler.h.
|
private |
Definition at line 47 of file speech_to_text_action_handler.h.
|
private |
Definition at line 51 of file speech_to_text_action_handler.h.