Interface StreamingRecognitionFeaturesOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getEnableVoiceActivityEvents()
      If `true`, responses with voice activity speech events will be returned as they are detected.
      boolean getInterimResults()
      Whether or not to stream interim results to the client.
      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.
      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.
      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.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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;