Package com.google.cloud.dialogflow.v2
Interface SpeechWordInfoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SpeechWordInfo
,SpeechWordInfo.Builder
public interface SpeechWordInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getConfidence()
The Speech confidence between 0.0 and 1.0 for this word.com.google.protobuf.Duration
getEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.DurationOrBuilder
getEndOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.com.google.protobuf.Duration
getStartOffset()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.com.google.protobuf.DurationOrBuilder
getStartOffsetOrBuilder()
Time offset relative to the beginning of the audio that corresponds to the start of the spoken word.String
getWord()
The word this info is for.com.google.protobuf.ByteString
getWordBytes()
The word this info is for.boolean
hasEndOffset()
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word.boolean
hasStartOffset()
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.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.
-
-