google_api_speech v0.0.1 GoogleApi.Speech.V1.Api.Speech View Source
API calls for all endpoints tagged Speech.
Link to this section Summary
Functions
Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message
Performs synchronous speech recognition: receive results after all audio has been sent and processed
Link to this section Functions
speech_speech_longrunningrecognize(Tesla.Env.client, keyword) :: {:ok, GoogleApi.Speech.V1.Model.Operation.t} | {:error, Tesla.Env.t}
Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message.
Parameters
- connection (GoogleApi.Speech.V1.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :body (LongRunningRecognizeRequest):
Returns
{:ok, %GoogleApi.Speech.V1.Model.Operation{}} on success {:error, info} on failure
speech_speech_recognize(Tesla.Env.client, keyword) :: {:ok, GoogleApi.Speech.V1.Model.RecognizeResponse.t} | {:error, Tesla.Env.t}
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
Parameters
- connection (GoogleApi.Speech.V1.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :__/xgafv (String): V1 error format.
- :callback (String): JSONP
- :alt (String): Data format for response.
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :bearer_token (String): OAuth bearer token.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :body (RecognizeRequest):
Returns
{:ok, %GoogleApi.Speech.V1.Model.RecognizeResponse{}} on success {:error, info} on failure