Public Member Functions | Private Member Functions | Private Attributes
cogrob::cloud::speech::GoogleSpeechRecognizer Class Reference

#include <google_speech.h>

Inheritance diagram for cogrob::cloud::speech::GoogleSpeechRecognizer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

util::StatusOr< RecognitionResult > GetLastResult () override
 GoogleSpeechRecognizer ()
bool IsRunning () override
util::Status 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) override
util::Status Stop () override
util::Status Wait () override
 ~GoogleSpeechRecognizer () override

Private Member Functions

void 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 Attributes

std::shared_ptr
< grpc::ChannelInterface > 
channel_
std::mutex general_mutex_
std::unique_ptr
<::google::cloud::speech::v1::Speech::Stub > 
gspeech_stub_
util::StatusOr< RecognitionResult > latest_result_
std::unique_ptr< std::thread > thread_

Detailed Description

Definition at line 46 of file google_speech.h.


Constructor & Destructor Documentation

Definition at line 62 of file google_speech.cc.

Definition at line 74 of file google_speech.cc.


Member Function Documentation

StatusOr< RecognitionResult > cogrob::cloud::speech::GoogleSpeechRecognizer::GetLastResult ( ) [override, virtual]
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]

Definition at line 154 of file google_speech.cc.

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 
) [override]

Definition at line 78 of file google_speech.cc.


Member Data Documentation

std::shared_ptr<grpc::ChannelInterface> cogrob::cloud::speech::GoogleSpeechRecognizer::channel_ [private]

Definition at line 78 of file google_speech.h.

Definition at line 77 of file google_speech.h.

std::unique_ptr<::google::cloud::speech::v1::Speech::Stub> cogrob::cloud::speech::GoogleSpeechRecognizer::gspeech_stub_ [private]

Definition at line 79 of file google_speech.h.

Definition at line 83 of file google_speech.h.

std::unique_ptr<std::thread> cogrob::cloud::speech::GoogleSpeechRecognizer::thread_ [private]

Definition at line 80 of file google_speech.h.


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


gcloud_speech
Author(s):
autogenerated on Thu Jun 6 2019 17:58:03