Interface SpeechWordInfoOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SpeechWordInfo, SpeechWordInfo.Builder

@Generated public interface SpeechWordInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The Speech confidence between 0.0 and 1.0 for this word.
    com.google.protobuf.Duration
    Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.
    com.google.protobuf.DurationOrBuilder
    Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.
    com.google.protobuf.Duration
    Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.
    com.google.protobuf.DurationOrBuilder
    Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.
    The word this info is for.
    com.google.protobuf.ByteString
    The word this info is for.
    boolean
    Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.
    boolean
    Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.

    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 Details

    • getWord

      String getWord()
       The word this info is for.
       
      string word = 3;
      Returns:
      The word.
    • getWordBytes

      com.google.protobuf.ByteString getWordBytes()
       The word this info is for.
       
      string word = 3;
      Returns:
      The bytes for word.
    • hasStartOffset

      boolean hasStartOffset()
       Time offset relative to the beginning of the audio that corresponds to the
       start of the spoken word. This is an experimental feature and the accuracy
       of the time offset can vary.
       
      .google.protobuf.Duration start_offset = 1;
      Returns:
      Whether the startOffset field is set.
    • getStartOffset

      com.google.protobuf.Duration getStartOffset()
       Time offset relative to the beginning of the audio that corresponds to the
       start of the spoken word. This is an experimental feature and the accuracy
       of the time offset can vary.
       
      .google.protobuf.Duration start_offset = 1;
      Returns:
      The startOffset.
    • getStartOffsetOrBuilder

      com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder()
       Time offset relative to the beginning of the audio that corresponds to the
       start of the spoken word. This is an experimental feature and the accuracy
       of the time offset can vary.
       
      .google.protobuf.Duration start_offset = 1;
    • hasEndOffset

      boolean hasEndOffset()
       Time offset relative to the beginning of the audio that corresponds to the
       end of the spoken word. This is an experimental feature and the accuracy of
       the time offset can vary.
       
      .google.protobuf.Duration end_offset = 2;
      Returns:
      Whether the endOffset field is set.
    • getEndOffset

      com.google.protobuf.Duration getEndOffset()
       Time offset relative to the beginning of the audio that corresponds to the
       end of the spoken word. This is an experimental feature and the accuracy of
       the time offset can vary.
       
      .google.protobuf.Duration end_offset = 2;
      Returns:
      The endOffset.
    • getEndOffsetOrBuilder

      com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder()
       Time offset relative to the beginning of the audio that corresponds to the
       end of the spoken word. This is an experimental feature and the accuracy of
       the time offset can vary.
       
      .google.protobuf.Duration end_offset = 2;
    • getConfidence

      float getConfidence()
       The Speech confidence between 0.0 and 1.0 for this word. A higher number
       indicates an estimated greater likelihood that the recognized word is
       correct. The default of 0.0 is a sentinel value indicating that confidence
       was not set.
      
       This field is not guaranteed to be fully stable over time for the same
       audio input. Users should also not rely on it to always be provided.
       
      float confidence = 4;
      Returns:
      The confidence.