google-apis-dialogflow_v2 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8dba1540e54c59774910e8f9c3ee28bd42de2bb6ed814228e736a17dcbd0afa
|
4
|
+
data.tar.gz: 9dc797324e777face90a73d76351a017828a0589d1516c714b3c1c4231d3effb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a91da83321bbfba77b1415d7ddf04682061138c8c3545318622c7d310ddf4f1cb63580f898b6e4362c4126f90b427e303ec8d5a9fc802e9521fd9a56a54a33dc
|
7
|
+
data.tar.gz: 61d89509ce8f28f46aa1c9ee48ce2783e1ebf8d2962933604f3aa7ccccdb7ac6e7832a7b394706bfcf5f93b312a29b6f3b515402517a23229f7a165d9ba340ae
|
data/CHANGELOG.md
CHANGED
@@ -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::DialogflowV2::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::DialogflowV2::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 DialogflowV2
|
18
18
|
# Version of the google-apis-dialogflow_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.72.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 = "
|
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
|
|
@@ -3120,6 +3132,14 @@ module Google
|
|
3120
3132
|
end
|
3121
3133
|
end
|
3122
3134
|
|
3135
|
+
class GoogleCloudDialogflowCxV3BargeInConfig
|
3136
|
+
# @private
|
3137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3138
|
+
property :no_barge_in_duration, as: 'noBargeInDuration'
|
3139
|
+
property :total_duration, as: 'totalDuration'
|
3140
|
+
end
|
3141
|
+
end
|
3142
|
+
|
3123
3143
|
class GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
|
3124
3144
|
# @private
|
3125
3145
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3527,6 +3547,8 @@ module Google
|
|
3527
3547
|
# @private
|
3528
3548
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3529
3549
|
property :audio_encoding, as: 'audioEncoding'
|
3550
|
+
property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3BargeInConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3BargeInConfig::Representation
|
3551
|
+
|
3530
3552
|
property :enable_word_info, as: 'enableWordInfo'
|
3531
3553
|
property :model, as: 'model'
|
3532
3554
|
property :model_variant, as: 'modelVariant'
|
@@ -4086,6 +4108,14 @@ module Google
|
|
4086
4108
|
end
|
4087
4109
|
end
|
4088
4110
|
|
4111
|
+
class GoogleCloudDialogflowCxV3beta1BargeInConfig
|
4112
|
+
# @private
|
4113
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4114
|
+
property :no_barge_in_duration, as: 'noBargeInDuration'
|
4115
|
+
property :total_duration, as: 'totalDuration'
|
4116
|
+
end
|
4117
|
+
end
|
4118
|
+
|
4089
4119
|
class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
|
4090
4120
|
# @private
|
4091
4121
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4493,6 +4523,8 @@ module Google
|
|
4493
4523
|
# @private
|
4494
4524
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4495
4525
|
property :audio_encoding, as: 'audioEncoding'
|
4526
|
+
property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1BargeInConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1BargeInConfig::Representation
|
4527
|
+
|
4496
4528
|
property :enable_word_info, as: 'enableWordInfo'
|
4497
4529
|
property :model, as: 'model'
|
4498
4530
|
property :model_variant, as: 'modelVariant'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.72.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-
|
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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.72.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|