Interface RecognitionAudioOrBuilder (2.4.0)

public interface RecognitionAudioOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioSourceCase()

public abstract RecognitionAudio.AudioSourceCase getAudioSourceCase()
Returns
TypeDescription
RecognitionAudio.AudioSourceCase

getContent()

public abstract ByteString getContent()

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.

bytes content = 1;

Returns
TypeDescription
ByteString

getUri()

public abstract String getUri()

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.

string uri = 2;

Returns
TypeDescription
String

getUriBytes()

public abstract ByteString getUriBytes()

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.

string uri = 2;

Returns
TypeDescription
ByteString