@@ -9789,6 +9789,49 @@ def update!(**args)
97899789 end
97909790 end
97919791
9792+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
9793+ # detected utterance at a proper time while the client is playing back the
9794+ # response audio from a previous request. When the client sees the utterance, it
9795+ # should stop the playback and immediately get ready for receiving the responses
9796+ # for the current request. The barge-in handling requires the client to start
9797+ # streaming audio input as soon as it starts playing back the audio from the
9798+ # previous response. The playback is modeled into two phases: * No barge-in
9799+ # phase: which goes first and during which speech detection should not be
9800+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
9801+ # which the API starts speech detection and may inform the client that an
9802+ # utterance has been detected. Note that no-speech event is not expected in this
9803+ # phase. The client provides this configuration in terms of the durations of
9804+ # those two phases. The durations are measured in terms of the audio length
9805+ # fromt the the start of the input audio. The flow goes like below: --> Time
9806+ # without speech detection | utterance only | utterance or no-speech event | | +-
9807+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
9808+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
9809+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
9810+ # any transcript following up.
9811+ class GoogleCloudDialogflowV2beta1BargeInConfig
9812+ include Google::Apis::Core::Hashable
9813+
9814+ # Duration that is not eligible for barge-in at the beginning of the input audio.
9815+ # Corresponds to the JSON property `noBargeInDuration`
9816+ # @return [String]
9817+ attr_accessor :no_barge_in_duration
9818+
9819+ # Total duration for the playback at the beginning of the input audio.
9820+ # Corresponds to the JSON property `totalDuration`
9821+ # @return [String]
9822+ attr_accessor :total_duration
9823+
9824+ def initialize(**args)
9825+ update!(**args)
9826+ end
9827+
9828+ # Update properties of this object
9829+ def update!(**args)
9830+ @no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
9831+ @total_duration = args[:total_duration] if args.key?(:total_duration)
9832+ end
9833+ end
9834+
97929835 # The request message for EntityTypes.BatchCreateEntities.
97939836 class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
97949837 include Google::Apis::Core::Hashable
@@ -12100,6 +12143,29 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig
1210012143 # @return [String]
1210112144 attr_accessor :audio_encoding
1210212145
12146+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
12147+ # detected utterance at a proper time while the client is playing back the
12148+ # response audio from a previous request. When the client sees the utterance, it
12149+ # should stop the playback and immediately get ready for receiving the responses
12150+ # for the current request. The barge-in handling requires the client to start
12151+ # streaming audio input as soon as it starts playing back the audio from the
12152+ # previous response. The playback is modeled into two phases: * No barge-in
12153+ # phase: which goes first and during which speech detection should not be
12154+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
12155+ # which the API starts speech detection and may inform the client that an
12156+ # utterance has been detected. Note that no-speech event is not expected in this
12157+ # phase. The client provides this configuration in terms of the durations of
12158+ # those two phases. The durations are measured in terms of the audio length
12159+ # fromt the the start of the input audio. The flow goes like below: --> Time
12160+ # without speech detection | utterance only | utterance or no-speech event | | +-
12161+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
12162+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
12163+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
12164+ # any transcript following up.
12165+ # Corresponds to the JSON property `bargeInConfig`
12166+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig]
12167+ attr_accessor :barge_in_config
12168+
1210312169 # Only used in Participants.AnalyzeContent and Participants.
1210412170 # StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
1210512171 # trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
@@ -12187,6 +12253,7 @@ def initialize(**args)
1218712253 # Update properties of this object
1218812254 def update!(**args)
1218912255 @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
12256+ @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
1219012257 @disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
1219112258 @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
1219212259 @language_code = args[:language_code] if args.key?(:language_code)
@@ -15771,6 +15838,11 @@ def update!(**args)
1577115838 class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
1577215839 include Google::Apis::Core::Hashable
1577315840
15841+ # Represents the parameters of human assist query.
15842+ # Corresponds to the JSON property `assistQueryParams`
15843+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters]
15844+ attr_accessor :assist_query_params
15845+
1577415846 # Max number of messages prior to and including [latest_message] to use as
1577515847 # context when compiling the suggestion. By default 500 and at most 1000.
1577615848 # Corresponds to the JSON property `contextSize`
@@ -15790,6 +15862,7 @@ def initialize(**args)
1579015862
1579115863 # Update properties of this object
1579215864 def update!(**args)
15865+ @assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
1579315866 @context_size = args[:context_size] if args.key?(:context_size)
1579415867 @latest_message = args[:latest_message] if args.key?(:latest_message)
1579515868 end
0 commit comments