public final class BargeInConfig extends com.google.protobuf.GeneratedMessageV3 implements BargeInConfigOrBuilder
Configuration of the barge-in behavior. Barge-in instructs the API to return
a detected utterance at a proper time while the client is playing back the
response audio from a previous request. When the client sees the
utterance, it should stop the playback and immediately get ready for
receiving the responses for the current request.
The barge-in handling requires the client to start streaming audio input
as soon as it starts playing back the audio from the previous response. The
playback is modeled into two phases:
* No barge-in phase: which goes first and during which speech detection
should not be carried out.
* Barge-in phase: which follows the no barge-in phase and during which
the API starts speech detection and may inform the client that an utterance
has been detected. Note that no-speech event is not expected in this
phase.
The client provides this configuration in terms of the durations of those
two phases. The durations are measured in terms of the audio length fromt the
the start of the input audio.
The flow goes like below:
--> Time
without speech detection | utterance only | utterance or no-speech event
| |
+-------------+ | +------------+ | +---------------+
----------+ no barge-in +-|-+ barge-in +-|-+ normal period +-----------
+-------------+ | +------------+ | +---------------+
No-speech event is a response with END_OF_UTTERANCE without any transcript
following up.
Protobuf type google.cloud.dialogflow.v2beta1.BargeInConfig| Modifier and Type | Class and Description |
|---|---|
static class |
BargeInConfig.Builder
Configuration of the barge-in behavior.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
NO_BARGE_IN_DURATION_FIELD_NUMBER |
static int |
TOTAL_DURATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BargeInConfig |
getDefaultInstance() |
BargeInConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
com.google.protobuf.DurationOrBuilder |
getNoBargeInDurationOrBuilder()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
com.google.protobuf.Parser<BargeInConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Duration |
getTotalDuration()
Total duration for the playback at the beginning of the input audio.
|
com.google.protobuf.DurationOrBuilder |
getTotalDurationOrBuilder()
Total duration for the playback at the beginning of the input audio.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input
audio.
|
boolean |
hasTotalDuration()
Total duration for the playback at the beginning of the input audio.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static BargeInConfig.Builder |
newBuilder() |
static BargeInConfig.Builder |
newBuilder(BargeInConfig prototype) |
BargeInConfig.Builder |
newBuilderForType() |
protected BargeInConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BargeInConfig |
parseDelimitedFrom(InputStream input) |
static BargeInConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BargeInConfig |
parseFrom(byte[] data) |
static BargeInConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BargeInConfig |
parseFrom(ByteBuffer data) |
static BargeInConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BargeInConfig |
parseFrom(com.google.protobuf.ByteString data) |
static BargeInConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BargeInConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BargeInConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BargeInConfig |
parseFrom(InputStream input) |
static BargeInConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BargeInConfig> |
parser() |
BargeInConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NO_BARGE_IN_DURATION_FIELD_NUMBER
public static final int TOTAL_DURATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;hasNoBargeInDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.Duration getNoBargeInDuration()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;getNoBargeInDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.DurationOrBuilder getNoBargeInDurationOrBuilder()
Duration that is not eligible for barge-in at the beginning of the input audio.
.google.protobuf.Duration no_barge_in_duration = 1;getNoBargeInDurationOrBuilder in interface BargeInConfigOrBuilderpublic boolean hasTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;hasTotalDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.Duration getTotalDuration()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;getTotalDuration in interface BargeInConfigOrBuilderpublic com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
Total duration for the playback at the beginning of the input audio.
.google.protobuf.Duration total_duration = 2;getTotalDurationOrBuilder in interface BargeInConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BargeInConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BargeInConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static BargeInConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BargeInConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BargeInConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BargeInConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BargeInConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BargeInConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BargeInConfig.Builder newBuilder()
public static BargeInConfig.Builder newBuilder(BargeInConfig prototype)
public BargeInConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BargeInConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BargeInConfig getDefaultInstance()
public static com.google.protobuf.Parser<BargeInConfig> parser()
public com.google.protobuf.Parser<BargeInConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BargeInConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.