#include <google_speech.h>
Definition at line 46 of file google_speech.h.
cogrob::cloud::speech::GoogleSpeechRecognizer::GoogleSpeechRecognizer |
( |
| ) |
|
cogrob::cloud::speech::GoogleSpeechRecognizer::~GoogleSpeechRecognizer |
( |
| ) |
|
|
override |
StatusOr< RecognitionResult > cogrob::cloud::speech::GoogleSpeechRecognizer::GetLastResult |
( |
| ) |
|
|
overridevirtual |
bool cogrob::cloud::speech::GoogleSpeechRecognizer::IsRunning |
( |
| ) |
|
|
overridevirtual |
void cogrob::cloud::speech::GoogleSpeechRecognizer::RecognitionThread |
( |
AudioQueue * |
audio_queue, |
|
|
util::SimpleThreadSafeQueue< RecognitionResult > * |
result_queue, |
|
|
const std::vector< std::string > & |
hints, |
|
|
int |
max_audio_seconds, |
|
|
int |
max_wait_seconds, |
|
|
int |
max_alternatives |
|
) |
| |
|
private |
Status cogrob::cloud::speech::GoogleSpeechRecognizer::StartRecognize |
( |
AudioQueue * |
audio_queue, |
|
|
util::SimpleThreadSafeQueue< RecognitionResult > * |
result_queue, |
|
|
const std::vector< std::string > & |
hints, |
|
|
int |
max_audio_seconds, |
|
|
int |
max_wait_seconds, |
|
|
int |
max_alternatives |
|
) |
| |
|
overridevirtual |
Status cogrob::cloud::speech::GoogleSpeechRecognizer::Stop |
( |
| ) |
|
|
overridevirtual |
Status cogrob::cloud::speech::GoogleSpeechRecognizer::Wait |
( |
| ) |
|
|
overridevirtual |
std::shared_ptr<grpc::ChannelInterface> cogrob::cloud::speech::GoogleSpeechRecognizer::channel_ |
|
private |
std::atomic_bool cogrob::cloud::speech::GoogleSpeechRecognizer::done_flag_ {false} |
|
private |
std::mutex cogrob::cloud::speech::GoogleSpeechRecognizer::general_mutex_ |
|
private |
std::unique_ptr<::google::cloud::speech::v1::Speech::Stub> cogrob::cloud::speech::GoogleSpeechRecognizer::gspeech_stub_ |
|
private |
util::StatusOr<RecognitionResult> cogrob::cloud::speech::GoogleSpeechRecognizer::latest_result_ |
|
private |
std::atomic_bool cogrob::cloud::speech::GoogleSpeechRecognizer::stop_flag_ {false} |
|
private |
std::unique_ptr<std::thread> cogrob::cloud::speech::GoogleSpeechRecognizer::thread_ |
|
private |
The documentation for this class was generated from the following files: