Classes
SpeechClient
Enables speech transcription and resource management.
SpeechConnection
The SpeechConnection
object for SpeechClient
.
SpeechConnectionIdempotencyPolicy
SpeechLimitedErrorCountRetryPolicy
A retry policy for SpeechConnection
based on counting errors.
SpeechLimitedTimeRetryPolicy
A retry policy for SpeechConnection
based on elapsed time.
SpeechRetryPolicy
The retry policy for SpeechConnection
.
Structs
SpeechBackoffPolicyOption
Use with google::cloud::Options
to configure the backoff policy.
SpeechConnectionIdempotencyPolicyOption
Use with google::cloud::Options
to configure which operations are retried.
SpeechPollingPolicyOption
Use with google::cloud::Options
to configure the long-running operations polling policy.
SpeechRetryPolicyOption
Use with google::cloud::Options
to configure the retry policy.
Functions
MakeSpeechConnection(std::string const &, Options)
A factory function to construct an object of type SpeechConnection
.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of SpeechClient.
The optional options
argument may be used to configure aspects of the returned SpeechConnection
. Expected options are any of the types in the following option lists:
Parameters | |
---|---|
Name | Description |
location |
Sets the prefix for the default |
options |
(optional) Configure the |
Returns | |
---|---|
Type | Description |
std::shared_ptr< SpeechConnection > |
MakeSpeechConnection(Options)
A backwards-compatible version of the previous factory function.
Unless the service also offers a global endpoint, the default value of the EndpointOption
may be useless, in which case it must be overridden.
Parameter | |
---|---|
Name | Description |
options |
|
Returns | |
---|---|
Type | Description |
std::shared_ptr< SpeechConnection > |
MakeDefaultSpeechConnectionIdempotencyPolicy()
Returns | |
---|---|
Type | Description |
std::unique_ptr< SpeechConnectionIdempotencyPolicy > |