Package com.google.cloud.speech.v1beta1
Interface RecognitionAudioOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RecognitionAudio
,RecognitionAudio.Builder
public interface RecognitionAudioOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecognitionAudio.AudioSourceCase
getAudioSourceCase()
com.google.protobuf.ByteString
getContent()
The audio data bytes encoded as specified in `RecognitionConfig`.String
getUri()
URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`.com.google.protobuf.ByteString
getUriBytes()
URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getContent
com.google.protobuf.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;
-
getUri
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][google.rpc.Code.INVALID_ARGUMENT]). For more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
string uri = 2;
-
getUriBytes
com.google.protobuf.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][google.rpc.Code.INVALID_ARGUMENT]). For more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
string uri = 2;
-
getAudioSourceCase
RecognitionAudio.AudioSourceCase getAudioSourceCase()
-
-