google-cloud-speech-v1p1beta1 0.10.1 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +288 -56
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_adaptation_pb.rb +2 -2
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_adaptation_services_pb.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb +4 -2
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_services_pb.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/resource_pb.rb +13 -2
- data/lib/google/cloud/speech/v1p1beta1/speech/client.rb +62 -0
- data/lib/google/cloud/speech/v1p1beta1/speech/operations.rb +115 -12
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech.rb +16 -6
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +76 -26
- data/proto_docs/google/cloud/speech/v1p1beta1/resource.rb +38 -3
- metadata +3 -3
@@ -24,9 +24,15 @@ module Google
|
|
24
24
|
# Message sent by the client for the `CreatePhraseSet` method.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The parent resource where this phrase set will be created.
|
28
|
-
#
|
29
|
-
#
|
27
|
+
# Required. The parent resource where this phrase set will be created. Format:
|
28
|
+
#
|
29
|
+
# `projects/{project}/locations/{location}/phraseSets`
|
30
|
+
#
|
31
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
32
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
33
|
+
# endpoint, use the `global` location. To specify a region, use a
|
34
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
35
|
+
# `eu` location value.
|
30
36
|
# @!attribute [rw] phrase_set_id
|
31
37
|
# @return [::String]
|
32
38
|
# Required. The ID to use for the phrase set, which will become the final
|
@@ -49,7 +55,14 @@ module Google
|
|
49
55
|
#
|
50
56
|
# The phrase set's `name` field is used to identify the set to be
|
51
57
|
# updated. Format:
|
52
|
-
#
|
58
|
+
#
|
59
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
60
|
+
#
|
61
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
62
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
63
|
+
# endpoint, use the `global` location. To specify a region, use a
|
64
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
65
|
+
# `eu` location value.
|
53
66
|
# @!attribute [rw] update_mask
|
54
67
|
# @return [::Google::Protobuf::FieldMask]
|
55
68
|
# The list of fields to be updated.
|
@@ -61,9 +74,15 @@ module Google
|
|
61
74
|
# Message sent by the client for the `GetPhraseSet` method.
|
62
75
|
# @!attribute [rw] name
|
63
76
|
# @return [::String]
|
64
|
-
# Required. The name of the phrase set to retrieve.
|
65
|
-
#
|
66
|
-
#
|
77
|
+
# Required. The name of the phrase set to retrieve. Format:
|
78
|
+
#
|
79
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
80
|
+
#
|
81
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
82
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
83
|
+
# endpoint, use the `global` location. To specify a region, use a
|
84
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
85
|
+
# `eu` location value.
|
67
86
|
class GetPhraseSetRequest
|
68
87
|
include ::Google::Protobuf::MessageExts
|
69
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -72,9 +91,15 @@ module Google
|
|
72
91
|
# Message sent by the client for the `ListPhraseSet` method.
|
73
92
|
# @!attribute [rw] parent
|
74
93
|
# @return [::String]
|
75
|
-
# Required. The parent, which owns this collection of phrase set.
|
76
|
-
#
|
77
|
-
# projects
|
94
|
+
# Required. The parent, which owns this collection of phrase set. Format:
|
95
|
+
#
|
96
|
+
# `projects/{project}/locations/{location}`
|
97
|
+
#
|
98
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
99
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
100
|
+
# endpoint, use the `global` location. To specify a region, use a
|
101
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
102
|
+
# `eu` location value.
|
78
103
|
# @!attribute [rw] page_size
|
79
104
|
# @return [::Integer]
|
80
105
|
# The maximum number of phrase sets to return. The service may return
|
@@ -109,9 +134,9 @@ module Google
|
|
109
134
|
# Message sent by the client for the `DeletePhraseSet` method.
|
110
135
|
# @!attribute [rw] name
|
111
136
|
# @return [::String]
|
112
|
-
# Required. The name of the phrase set to delete.
|
113
|
-
#
|
114
|
-
#
|
137
|
+
# Required. The name of the phrase set to delete. Format:
|
138
|
+
#
|
139
|
+
# `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
|
115
140
|
class DeletePhraseSetRequest
|
116
141
|
include ::Google::Protobuf::MessageExts
|
117
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -120,9 +145,15 @@ module Google
|
|
120
145
|
# Message sent by the client for the `CreateCustomClass` method.
|
121
146
|
# @!attribute [rw] parent
|
122
147
|
# @return [::String]
|
123
|
-
# Required. The parent resource where this custom class will be created.
|
124
|
-
#
|
125
|
-
#
|
148
|
+
# Required. The parent resource where this custom class will be created. Format:
|
149
|
+
#
|
150
|
+
# `projects/{project}/locations/{location}/customClasses`
|
151
|
+
#
|
152
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
153
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
154
|
+
# endpoint, use the `global` location. To specify a region, use a
|
155
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
156
|
+
# `eu` location value.
|
126
157
|
# @!attribute [rw] custom_class_id
|
127
158
|
# @return [::String]
|
128
159
|
# Required. The ID to use for the custom class, which will become the final
|
@@ -145,7 +176,14 @@ module Google
|
|
145
176
|
#
|
146
177
|
# The custom class's `name` field is used to identify the custom class to be
|
147
178
|
# updated. Format:
|
148
|
-
#
|
179
|
+
#
|
180
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
181
|
+
#
|
182
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
183
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
184
|
+
# endpoint, use the `global` location. To specify a region, use a
|
185
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
186
|
+
# `eu` location value.
|
149
187
|
# @!attribute [rw] update_mask
|
150
188
|
# @return [::Google::Protobuf::FieldMask]
|
151
189
|
# The list of fields to be updated.
|
@@ -157,9 +195,9 @@ module Google
|
|
157
195
|
# Message sent by the client for the `GetCustomClass` method.
|
158
196
|
# @!attribute [rw] name
|
159
197
|
# @return [::String]
|
160
|
-
# Required. The name of the custom class to retrieve.
|
161
|
-
#
|
162
|
-
#
|
198
|
+
# Required. The name of the custom class to retrieve. Format:
|
199
|
+
#
|
200
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
163
201
|
class GetCustomClassRequest
|
164
202
|
include ::Google::Protobuf::MessageExts
|
165
203
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -168,9 +206,15 @@ module Google
|
|
168
206
|
# Message sent by the client for the `ListCustomClasses` method.
|
169
207
|
# @!attribute [rw] parent
|
170
208
|
# @return [::String]
|
171
|
-
# Required. The parent, which owns this collection of custom classes.
|
172
|
-
#
|
173
|
-
#
|
209
|
+
# Required. The parent, which owns this collection of custom classes. Format:
|
210
|
+
#
|
211
|
+
# `projects/{project}/locations/{location}/customClasses`
|
212
|
+
#
|
213
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
214
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
215
|
+
# endpoint, use the `global` location. To specify a region, use a
|
216
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
217
|
+
# `eu` location value.
|
174
218
|
# @!attribute [rw] page_size
|
175
219
|
# @return [::Integer]
|
176
220
|
# The maximum number of custom classes to return. The service may return
|
@@ -205,9 +249,15 @@ module Google
|
|
205
249
|
# Message sent by the client for the `DeleteCustomClass` method.
|
206
250
|
# @!attribute [rw] name
|
207
251
|
# @return [::String]
|
208
|
-
# Required. The name of the custom class to delete.
|
209
|
-
#
|
210
|
-
#
|
252
|
+
# Required. The name of the custom class to delete. Format:
|
253
|
+
#
|
254
|
+
# `projects/{project}/locations/{location}/customClasses/{custom_class}`
|
255
|
+
#
|
256
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
257
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
258
|
+
# endpoint, use the `global` location. To specify a region, use a
|
259
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
260
|
+
# `eu` location value.
|
211
261
|
class DeleteCustomClassRequest
|
212
262
|
include ::Google::Protobuf::MessageExts
|
213
263
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -90,6 +90,12 @@ module Google
|
|
90
90
|
# resources and inline classes. Then use the class' id wrapped in $`{...}`
|
91
91
|
# e.g. "$\\{my-months}". To refer to custom classes resources, use the class'
|
92
92
|
# id wrapped in `${}` (e.g. `${my-months}`).
|
93
|
+
#
|
94
|
+
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
95
|
+
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
96
|
+
# endpoint, use the `global` location. To specify a region, use a
|
97
|
+
# [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
|
98
|
+
# `eu` location value.
|
93
99
|
# @!attribute [rw] value
|
94
100
|
# @return [::String]
|
95
101
|
# The phrase itself.
|
@@ -99,9 +105,8 @@ module Google
|
|
99
105
|
# Positive value will increase the probability that a specific phrase will
|
100
106
|
# be recognized over other similar sounding phrases. The higher the boost,
|
101
107
|
# the higher the chance of false positive recognition as well. Negative
|
102
|
-
# boost
|
103
|
-
#
|
104
|
-
# accept a wide range of positive values, most use cases are best served
|
108
|
+
# boost will simply be ignored. Though `boost` can accept a wide range of
|
109
|
+
# positive values, most use cases are best served
|
105
110
|
# with values between 0 and 20. We recommend using a binary search approach
|
106
111
|
# to finding the optimal value for your use case. Speech recognition
|
107
112
|
# will skip PhraseSets with a boost value of 0.
|
@@ -130,6 +135,36 @@ module Google
|
|
130
135
|
include ::Google::Protobuf::MessageExts
|
131
136
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
137
|
end
|
138
|
+
|
139
|
+
# Transcription normalization configuration. Use transcription normalization
|
140
|
+
# to automatically replace parts of the transcript with phrases of your
|
141
|
+
# choosing. For StreamingRecognize, this normalization only applies to stable
|
142
|
+
# partial transcripts (stability > 0.8) and final transcripts.
|
143
|
+
# @!attribute [rw] entries
|
144
|
+
# @return [::Array<::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization::Entry>]
|
145
|
+
# A list of replacement entries. We will perform replacement with one entry
|
146
|
+
# at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
|
147
|
+
# => "mountain dog"] will never be applied because we will always process the
|
148
|
+
# first entry before it. At most 100 entries.
|
149
|
+
class TranscriptNormalization
|
150
|
+
include ::Google::Protobuf::MessageExts
|
151
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
152
|
+
|
153
|
+
# A single replacement configuration.
|
154
|
+
# @!attribute [rw] search
|
155
|
+
# @return [::String]
|
156
|
+
# What to replace. Max length is 100 characters.
|
157
|
+
# @!attribute [rw] replace
|
158
|
+
# @return [::String]
|
159
|
+
# What to replace with. Max length is 100 characters.
|
160
|
+
# @!attribute [rw] case_sensitive
|
161
|
+
# @return [::Boolean]
|
162
|
+
# Whether the search is case sensitive.
|
163
|
+
class Entry
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
|
+
end
|
167
|
+
end
|
133
168
|
end
|
134
169
|
end
|
135
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v1p1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
rubygems_version: 3.
|
226
|
+
rubygems_version: 3.3.4
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: API Client library for the Cloud Speech-to-Text V1p1beta1 API
|