Struct google_speech1::RecognitionAudio[][src]

pub struct RecognitionAudio {
    pub content: Option<String>,
    pub uri: Option<String>,
}

Contains audio data in the encoding specified in the RecognitionConfig. Either content or uri must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. See audio limits.

This type is not used in any activity, and only used as part of another schema.

Fields

The audio data bytes encoded as specified in RecognitionConfig. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

URI that points to a file that contains audio data bytes as specified in RecognitionConfig. Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: gs://bucket_name/object_name (other URI formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see Request URIs.

Trait Implementations

impl Default for RecognitionAudio
[src]

Returns the "default value" for a type. Read more

impl Clone for RecognitionAudio
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RecognitionAudio
[src]

Formats the value using the given formatter. Read more

impl Part for RecognitionAudio
[src]

Auto Trait Implementations