Package com.google.cloud.speech.v2
Interface StreamingRecognitionFeaturesOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingRecognitionFeatures,StreamingRecognitionFeatures.Builder
@Generated
public interface StreamingRecognitionFeaturesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf `true`, responses with voice activity speech events will be returned as they are detected.Optional.intOptional.booleanWhether or not to stream interim results to the client.If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent.If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent.booleanIf set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getEnableVoiceActivityEvents
boolean getEnableVoiceActivityEvents()If `true`, responses with voice activity speech events will be returned as they are detected.
bool enable_voice_activity_events = 1;- Returns:
- The enableVoiceActivityEvents.
-
getInterimResults
boolean getInterimResults()Whether or not to stream interim results to the client. If set to true, interim results will be streamed to the client. Otherwise, only the final response will be streamed back.
bool interim_results = 2;- Returns:
- The interimResults.
-
hasVoiceActivityTimeout
boolean hasVoiceActivityTimeout()If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field `voice_activity_events` must also be set to true.
.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;- Returns:
- Whether the voiceActivityTimeout field is set.
-
getVoiceActivityTimeout
StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout()If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field `voice_activity_events` must also be set to true.
.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;- Returns:
- The voiceActivityTimeout.
-
getVoiceActivityTimeoutOrBuilder
StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder()If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field `voice_activity_events` must also be set to true.
.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; -
getEndpointingSensitivityValue
int getEndpointingSensitivityValue()Optional. Endpointing sensitivity for this stream.
.google.cloud.speech.v2.StreamingRecognitionFeatures.EndpointingSensitivity endpointing_sensitivity = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for endpointingSensitivity.
-
getEndpointingSensitivity
StreamingRecognitionFeatures.EndpointingSensitivity getEndpointingSensitivity()Optional. Endpointing sensitivity for this stream.
.google.cloud.speech.v2.StreamingRecognitionFeatures.EndpointingSensitivity endpointing_sensitivity = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The endpointingSensitivity.
-