google-apis-dialogflow_v2beta1 0.70.0 → 0.71.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3730527184ec4b1aa558fbba6e05cb7635dfabea07306320079148a0fc23f5e
4
- data.tar.gz: 349b8f5a7e28b98fd77454c75f4cf4b5c90561ef56a37ba8873fe369dbddb3f9
3
+ metadata.gz: 04d5aec59d1b4df248b3383fdcfea3c129aa7fd256768a81cca097bb75c08646
4
+ data.tar.gz: febd79996597ecfad8aac197d8b38b124841a1631d2494d7fe151f14c45f3133
5
5
  SHA512:
6
- metadata.gz: 71be1898970e84c5292500e59fa4023d4fd7ace42fb305efca588e9672ad5a169dc8f1022ac51dd41544271a36d326277119795847fcf3177e41ea5e27a485c0
7
- data.tar.gz: 340cc26665c7b9cfe4ffbf4b8b32cf16ace7b392c78c71e79c1bbf1a56a29ead2c5b3670655c58762133d9857c4c75af490e458eec020aa6d50fbd8bc23e2e60
6
+ metadata.gz: e1c019db7661849c7c45d9c3946f3c1089c379c5d4e665be04307c8fa4c5ac8e72ac113932310c01afaba9fc3f95a732534d6553a138c06a156b185f2fcf4121
7
+ data.tar.gz: 1630af0d7ca1b2017cc9c96c79ef6ed9a74a634eadefd8ad0e209061a15f6e4e232665287c40c0d9ab174a273246cfba4c503612489e894840fe6366d0a2285f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.71.0 (2023-11-19)
4
+
5
+ * Regenerated from discovery document revision 20231109
6
+
3
7
  ### v0.70.0 (2023-10-29)
4
8
 
5
9
  * Regenerated from discovery document revision 20231019
@@ -155,6 +155,49 @@ module Google
155
155
  end
156
156
  end
157
157
 
158
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
159
+ # detected utterance at a proper time while the client is playing back the
160
+ # response audio from a previous request. When the client sees the utterance, it
161
+ # should stop the playback and immediately get ready for receiving the responses
162
+ # for the current request. The barge-in handling requires the client to start
163
+ # streaming audio input as soon as it starts playing back the audio from the
164
+ # previous response. The playback is modeled into two phases: * No barge-in
165
+ # phase: which goes first and during which speech detection should not be
166
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
167
+ # which the API starts speech detection and may inform the client that an
168
+ # utterance has been detected. Note that no-speech event is not expected in this
169
+ # phase. The client provides this configuration in terms of the durations of
170
+ # those two phases. The durations are measured in terms of the audio length
171
+ # fromt the the start of the input audio. The flow goes like below: --> Time
172
+ # without speech detection | utterance only | utterance or no-speech event | | +-
173
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
174
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
175
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
176
+ # any transcript following up.
177
+ class GoogleCloudDialogflowCxV3BargeInConfig
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # Duration that is not eligible for barge-in at the beginning of the input audio.
181
+ # Corresponds to the JSON property `noBargeInDuration`
182
+ # @return [String]
183
+ attr_accessor :no_barge_in_duration
184
+
185
+ # Total duration for the playback at the beginning of the input audio.
186
+ # Corresponds to the JSON property `totalDuration`
187
+ # @return [String]
188
+ attr_accessor :total_duration
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
197
+ @total_duration = args[:total_duration] if args.key?(:total_duration)
198
+ end
199
+ end
200
+
158
201
  # Metadata returned for the TestCases.BatchRunTestCases long running operation.
159
202
  class GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
160
203
  include Google::Apis::Core::Hashable
@@ -1512,6 +1555,29 @@ module Google
1512
1555
  # @return [String]
1513
1556
  attr_accessor :audio_encoding
1514
1557
 
1558
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
1559
+ # detected utterance at a proper time while the client is playing back the
1560
+ # response audio from a previous request. When the client sees the utterance, it
1561
+ # should stop the playback and immediately get ready for receiving the responses
1562
+ # for the current request. The barge-in handling requires the client to start
1563
+ # streaming audio input as soon as it starts playing back the audio from the
1564
+ # previous response. The playback is modeled into two phases: * No barge-in
1565
+ # phase: which goes first and during which speech detection should not be
1566
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
1567
+ # which the API starts speech detection and may inform the client that an
1568
+ # utterance has been detected. Note that no-speech event is not expected in this
1569
+ # phase. The client provides this configuration in terms of the durations of
1570
+ # those two phases. The durations are measured in terms of the audio length
1571
+ # fromt the the start of the input audio. The flow goes like below: --> Time
1572
+ # without speech detection | utterance only | utterance or no-speech event | | +-
1573
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
1574
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
1575
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
1576
+ # any transcript following up.
1577
+ # Corresponds to the JSON property `bargeInConfig`
1578
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3BargeInConfig]
1579
+ attr_accessor :barge_in_config
1580
+
1515
1581
  # Optional. If `true`, Dialogflow returns SpeechWordInfo in
1516
1582
  # StreamingRecognitionResult with information about the recognized speech words,
1517
1583
  # e.g. start and end time offsets. If false or unspecified, Speech doesn't
@@ -1574,6 +1640,7 @@ module Google
1574
1640
  # Update properties of this object
1575
1641
  def update!(**args)
1576
1642
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
1643
+ @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
1577
1644
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
1578
1645
  @model = args[:model] if args.key?(:model)
1579
1646
  @model_variant = args[:model_variant] if args.key?(:model_variant)
@@ -3673,6 +3740,49 @@ module Google
3673
3740
  end
3674
3741
  end
3675
3742
 
3743
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
3744
+ # detected utterance at a proper time while the client is playing back the
3745
+ # response audio from a previous request. When the client sees the utterance, it
3746
+ # should stop the playback and immediately get ready for receiving the responses
3747
+ # for the current request. The barge-in handling requires the client to start
3748
+ # streaming audio input as soon as it starts playing back the audio from the
3749
+ # previous response. The playback is modeled into two phases: * No barge-in
3750
+ # phase: which goes first and during which speech detection should not be
3751
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
3752
+ # which the API starts speech detection and may inform the client that an
3753
+ # utterance has been detected. Note that no-speech event is not expected in this
3754
+ # phase. The client provides this configuration in terms of the durations of
3755
+ # those two phases. The durations are measured in terms of the audio length
3756
+ # fromt the the start of the input audio. The flow goes like below: --> Time
3757
+ # without speech detection | utterance only | utterance or no-speech event | | +-
3758
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
3759
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
3760
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
3761
+ # any transcript following up.
3762
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
3763
+ include Google::Apis::Core::Hashable
3764
+
3765
+ # Duration that is not eligible for barge-in at the beginning of the input audio.
3766
+ # Corresponds to the JSON property `noBargeInDuration`
3767
+ # @return [String]
3768
+ attr_accessor :no_barge_in_duration
3769
+
3770
+ # Total duration for the playback at the beginning of the input audio.
3771
+ # Corresponds to the JSON property `totalDuration`
3772
+ # @return [String]
3773
+ attr_accessor :total_duration
3774
+
3775
+ def initialize(**args)
3776
+ update!(**args)
3777
+ end
3778
+
3779
+ # Update properties of this object
3780
+ def update!(**args)
3781
+ @no_barge_in_duration = args[:no_barge_in_duration] if args.key?(:no_barge_in_duration)
3782
+ @total_duration = args[:total_duration] if args.key?(:total_duration)
3783
+ end
3784
+ end
3785
+
3676
3786
  # Metadata returned for the TestCases.BatchRunTestCases long running operation.
3677
3787
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
3678
3788
  include Google::Apis::Core::Hashable
@@ -5030,6 +5140,29 @@ module Google
5030
5140
  # @return [String]
5031
5141
  attr_accessor :audio_encoding
5032
5142
 
5143
+ # Configuration of the barge-in behavior. Barge-in instructs the API to return a
5144
+ # detected utterance at a proper time while the client is playing back the
5145
+ # response audio from a previous request. When the client sees the utterance, it
5146
+ # should stop the playback and immediately get ready for receiving the responses
5147
+ # for the current request. The barge-in handling requires the client to start
5148
+ # streaming audio input as soon as it starts playing back the audio from the
5149
+ # previous response. The playback is modeled into two phases: * No barge-in
5150
+ # phase: which goes first and during which speech detection should not be
5151
+ # carried out. * Barge-in phase: which follows the no barge-in phase and during
5152
+ # which the API starts speech detection and may inform the client that an
5153
+ # utterance has been detected. Note that no-speech event is not expected in this
5154
+ # phase. The client provides this configuration in terms of the durations of
5155
+ # those two phases. The durations are measured in terms of the audio length
5156
+ # fromt the the start of the input audio. The flow goes like below: --> Time
5157
+ # without speech detection | utterance only | utterance or no-speech event | | +-
5158
+ # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
5159
+ # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
5160
+ # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
5161
+ # any transcript following up.
5162
+ # Corresponds to the JSON property `bargeInConfig`
5163
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1BargeInConfig]
5164
+ attr_accessor :barge_in_config
5165
+
5033
5166
  # Optional. If `true`, Dialogflow returns SpeechWordInfo in
5034
5167
  # StreamingRecognitionResult with information about the recognized speech words,
5035
5168
  # e.g. start and end time offsets. If false or unspecified, Speech doesn't
@@ -5092,6 +5225,7 @@ module Google
5092
5225
  # Update properties of this object
5093
5226
  def update!(**args)
5094
5227
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
5228
+ @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
5095
5229
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
5096
5230
  @model = args[:model] if args.key?(:model)
5097
5231
  @model_variant = args[:model_variant] if args.key?(:model_variant)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2beta1
18
18
  # Version of the google-apis-dialogflow_v2beta1 gem
19
- GEM_VERSION = "0.70.0"
19
+ GEM_VERSION = "0.71.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231019"
25
+ REVISION = "20231109"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GoogleCloudDialogflowCxV3BargeInConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -634,6 +640,12 @@ module Google
634
640
  include Google::Apis::Core::JsonObjectSupport
635
641
  end
636
642
 
643
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
637
649
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
638
650
  class Representation < Google::Apis::Core::JsonRepresentation; end
639
651
 
@@ -3138,6 +3150,14 @@ module Google
3138
3150
  end
3139
3151
  end
3140
3152
 
3153
+ class GoogleCloudDialogflowCxV3BargeInConfig
3154
+ # @private
3155
+ class Representation < Google::Apis::Core::JsonRepresentation
3156
+ property :no_barge_in_duration, as: 'noBargeInDuration'
3157
+ property :total_duration, as: 'totalDuration'
3158
+ end
3159
+ end
3160
+
3141
3161
  class GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
3142
3162
  # @private
3143
3163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3545,6 +3565,8 @@ module Google
3545
3565
  # @private
3546
3566
  class Representation < Google::Apis::Core::JsonRepresentation
3547
3567
  property :audio_encoding, as: 'audioEncoding'
3568
+ property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3BargeInConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3BargeInConfig::Representation
3569
+
3548
3570
  property :enable_word_info, as: 'enableWordInfo'
3549
3571
  property :model, as: 'model'
3550
3572
  property :model_variant, as: 'modelVariant'
@@ -4104,6 +4126,14 @@ module Google
4104
4126
  end
4105
4127
  end
4106
4128
 
4129
+ class GoogleCloudDialogflowCxV3beta1BargeInConfig
4130
+ # @private
4131
+ class Representation < Google::Apis::Core::JsonRepresentation
4132
+ property :no_barge_in_duration, as: 'noBargeInDuration'
4133
+ property :total_duration, as: 'totalDuration'
4134
+ end
4135
+ end
4136
+
4107
4137
  class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
4108
4138
  # @private
4109
4139
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4511,6 +4541,8 @@ module Google
4511
4541
  # @private
4512
4542
  class Representation < Google::Apis::Core::JsonRepresentation
4513
4543
  property :audio_encoding, as: 'audioEncoding'
4544
+ property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1BargeInConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1BargeInConfig::Representation
4545
+
4514
4546
  property :enable_word_info, as: 'enableWordInfo'
4515
4547
  property :model, as: 'model'
4516
4548
  property :model_variant, as: 'modelVariant'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.0
4
+ version: 0.71.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-29 00:00:00.000000000 Z
11
+ date: 2023-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.70.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.71.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []