Public Member Functions | Private Attributes | List of all members
gcloud_speech::SpeechToTextActionHandler Class Reference

#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::GoogleSpeechRecognizerInterfacerecognizer_
 
util::SimpleThreadSafeQueue< cogrob::cloud::speech::RecognitionResult > result_queue_
 
actionlib::SimpleActionServer< gcloud_speech_msgs::SpeechToTextAction > * simple_action_server_
 

Detailed Description

Definition at line 18 of file speech_to_text_action_handler.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

cogrob::cloud::speech::AudioQueue gcloud_speech::SpeechToTextActionHandler::audio_queue_
private

Definition at line 39 of file speech_to_text_action_handler.h.

std::atomic_bool gcloud_speech::SpeechToTextActionHandler::is_active_
private

Definition at line 43 of file speech_to_text_action_handler.h.

cogrob::cloud::speech::GoogleSpeechRecognizerInterface* gcloud_speech::SpeechToTextActionHandler::recognizer_
private

Definition at line 49 of file speech_to_text_action_handler.h.

util::SimpleThreadSafeQueue<cogrob::cloud::speech::RecognitionResult> gcloud_speech::SpeechToTextActionHandler::result_queue_
private

Definition at line 47 of file speech_to_text_action_handler.h.

actionlib::SimpleActionServer<gcloud_speech_msgs::SpeechToTextAction>* gcloud_speech::SpeechToTextActionHandler::simple_action_server_
private

Definition at line 51 of file speech_to_text_action_handler.h.


The documentation for this class was generated from the following files:


gcloud_speech
Author(s):
autogenerated on Wed Jun 5 2019 21:24:06