Class RecognitionAudio
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 content
limits.
Implements
Inherited Members
Namespace: Google.Apis.Speech.v1p1beta1.Data
Assembly: Google.Apis.Speech.v1p1beta1.dll
Syntax
public class RecognitionAudio : IDirectResponseSchema
Properties
Content
The audio data bytes encoded as specified in RecognitionConfig
. Note: as with all bytes fields, proto
buffers use a pure binary representation, whereas JSON representations use base64.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Uri
URI that points to a file that contains audio data bytes as specified in RecognitionConfig
. The file must
not be compressed (for example, gzip). 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.
Declaration
[JsonProperty("uri")]
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |