google-cloud-speech-v1 0.10.0 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech/v1/adaptation/client.rb +12 -14
- data/lib/google/cloud/speech/v1/speech/client.rb +11 -11
- data/lib/google/cloud/speech/v1/speech/operations.rb +12 -22
- data/lib/google/cloud/speech/v1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1/cloud_speech_adaptation.rb +4 -2
- data/proto_docs/google/cloud/speech/v1/resource.rb +6 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa57ce21e20c7785059e86d4b0b36ad548868caaafe891a851d4e39955d1a1b7
|
4
|
+
data.tar.gz: ef20b55561391caefc6d8b9b20c0472811e0d2f7077c61e154a89caea8b58f97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b53d12dc4213222ba181ab7469231bf9f86d6ba74dfec46d96ee3030363750d54cff3135948fa50f41b327b2fbc04b46c50f13ad8c0d6387271a802fd76d1e33
|
7
|
+
data.tar.gz: a9325ff0fa9e9aa3be49eaa59d43f3bb5a8dfb429dc822e88992e57fbea6466482aecdc14183fb512bfeb2af5bf85c7c626676095322f8633be6f2f734830559
|
@@ -165,7 +165,8 @@ module Google
|
|
165
165
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
166
|
#
|
167
167
|
# @param parent [::String]
|
168
|
-
# Required. The parent resource where this phrase set will be created.
|
168
|
+
# Required. The parent resource where this phrase set will be created.
|
169
|
+
# Format:
|
169
170
|
#
|
170
171
|
# `projects/{project}/locations/{location}/phraseSets`
|
171
172
|
#
|
@@ -400,13 +401,11 @@ module Google
|
|
400
401
|
# # Call the list_phrase_set method.
|
401
402
|
# result = client.list_phrase_set request
|
402
403
|
#
|
403
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
404
|
-
# #
|
405
|
-
#
|
406
|
-
# # methods are also available for managing paging directly.
|
407
|
-
# result.each do |response|
|
404
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
405
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
406
|
+
# result.each do |item|
|
408
407
|
# # Each element is of type ::Google::Cloud::Speech::V1::PhraseSet.
|
409
|
-
# p
|
408
|
+
# p item
|
410
409
|
# end
|
411
410
|
#
|
412
411
|
def list_phrase_set request, options = nil
|
@@ -655,7 +654,8 @@ module Google
|
|
655
654
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
656
655
|
#
|
657
656
|
# @param parent [::String]
|
658
|
-
# Required. The parent resource where this custom class will be created.
|
657
|
+
# Required. The parent resource where this custom class will be created.
|
658
|
+
# Format:
|
659
659
|
#
|
660
660
|
# `projects/{project}/locations/{location}/customClasses`
|
661
661
|
#
|
@@ -884,13 +884,11 @@ module Google
|
|
884
884
|
# # Call the list_custom_classes method.
|
885
885
|
# result = client.list_custom_classes request
|
886
886
|
#
|
887
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
888
|
-
# #
|
889
|
-
#
|
890
|
-
# # methods are also available for managing paging directly.
|
891
|
-
# result.each do |response|
|
887
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
888
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
889
|
+
# result.each do |item|
|
892
890
|
# # Each element is of type ::Google::Cloud::Speech::V1::CustomClass.
|
893
|
-
# p
|
891
|
+
# p item
|
894
892
|
# end
|
895
893
|
#
|
896
894
|
def list_custom_classes request, options = nil
|
@@ -301,14 +301,14 @@ module Google
|
|
301
301
|
# # Call the long_running_recognize method.
|
302
302
|
# result = client.long_running_recognize request
|
303
303
|
#
|
304
|
-
# # The returned object is of type Gapic::Operation. You can use
|
305
|
-
# #
|
306
|
-
# #
|
304
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
305
|
+
# # check the status of an operation, cancel it, or wait for results.
|
306
|
+
# # Here is how to wait for a response.
|
307
307
|
# result.wait_until_done! timeout: 60
|
308
308
|
# if result.response?
|
309
309
|
# p result.response
|
310
310
|
# else
|
311
|
-
# puts "
|
311
|
+
# puts "No response received."
|
312
312
|
# end
|
313
313
|
#
|
314
314
|
def long_running_recognize request, options = nil
|
@@ -368,22 +368,22 @@ module Google
|
|
368
368
|
# # Create a client object. The client can be reused for multiple calls.
|
369
369
|
# client = Google::Cloud::Speech::V1::Speech::Client.new
|
370
370
|
#
|
371
|
-
# # Create an input stream
|
371
|
+
# # Create an input stream.
|
372
372
|
# input = Gapic::StreamInput.new
|
373
373
|
#
|
374
374
|
# # Call the streaming_recognize method to start streaming.
|
375
375
|
# output = client.streaming_recognize input
|
376
376
|
#
|
377
|
-
# # Send requests on the stream. For each request,
|
378
|
-
# #
|
377
|
+
# # Send requests on the stream. For each request object, set fields by
|
378
|
+
# # passing keyword arguments. Be sure to close the stream when done.
|
379
379
|
# input << Google::Cloud::Speech::V1::StreamingRecognizeRequest.new
|
380
380
|
# input << Google::Cloud::Speech::V1::StreamingRecognizeRequest.new
|
381
381
|
# input.close
|
382
382
|
#
|
383
|
-
# #
|
384
|
-
# #
|
385
|
-
# output.each do |
|
386
|
-
# p
|
383
|
+
# # The returned object is a streamed enumerable yielding elements of type
|
384
|
+
# # ::Google::Cloud::Speech::V1::StreamingRecognizeResponse
|
385
|
+
# output.each do |current_response|
|
386
|
+
# p current_response
|
387
387
|
# end
|
388
388
|
#
|
389
389
|
def streaming_recognize request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -184,14 +182,6 @@ module Google
|
|
184
182
|
gapic_version: ::Google::Cloud::Speech::V1::VERSION
|
185
183
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
186
184
|
|
187
|
-
header_params = {}
|
188
|
-
if request.name
|
189
|
-
header_params["name"] = request.name
|
190
|
-
end
|
191
|
-
|
192
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
193
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
194
|
-
|
195
185
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
196
186
|
metadata: metadata,
|
197
187
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
@@ -253,14 +243,14 @@ module Google
|
|
253
243
|
# # Call the get_operation method.
|
254
244
|
# result = client.get_operation request
|
255
245
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
246
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
247
|
+
# # check the status of an operation, cancel it, or wait for results.
|
248
|
+
# # Here is how to wait for a response.
|
259
249
|
# result.wait_until_done! timeout: 60
|
260
250
|
# if result.response?
|
261
251
|
# p result.response
|
262
252
|
# else
|
263
|
-
# puts "
|
253
|
+
# puts "No response received."
|
264
254
|
# end
|
265
255
|
#
|
266
256
|
def get_operation request, options = nil
|
@@ -540,14 +530,14 @@ module Google
|
|
540
530
|
# # Call the wait_operation method.
|
541
531
|
# result = client.wait_operation request
|
542
532
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
533
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
534
|
+
# # check the status of an operation, cancel it, or wait for results.
|
535
|
+
# # Here is how to wait for a response.
|
546
536
|
# result.wait_until_done! timeout: 60
|
547
537
|
# if result.response?
|
548
538
|
# p result.response
|
549
539
|
# else
|
550
|
-
# puts "
|
540
|
+
# puts "No response received."
|
551
541
|
# end
|
552
542
|
#
|
553
543
|
def wait_operation request, options = nil
|
@@ -24,7 +24,8 @@ 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.
|
27
|
+
# Required. The parent resource where this phrase set will be created.
|
28
|
+
# Format:
|
28
29
|
#
|
29
30
|
# `projects/{project}/locations/{location}/phraseSets`
|
30
31
|
#
|
@@ -145,7 +146,8 @@ module Google
|
|
145
146
|
# Message sent by the client for the `CreateCustomClass` method.
|
146
147
|
# @!attribute [rw] parent
|
147
148
|
# @return [::String]
|
148
|
-
# Required. The parent resource where this custom class will be created.
|
149
|
+
# Required. The parent resource where this custom class will be created.
|
150
|
+
# Format:
|
149
151
|
#
|
150
152
|
# `projects/{project}/locations/{location}/customClasses`
|
151
153
|
#
|
@@ -65,8 +65,8 @@ module Google
|
|
65
65
|
# enabled, so negative boost will simply be ignored. Though `boost` can
|
66
66
|
# accept a wide range of positive values, most use cases are best served with
|
67
67
|
# values between 0 (exclusive) and 20. We recommend using a binary search
|
68
|
-
# approach to finding the optimal value for your use case
|
69
|
-
#
|
68
|
+
# approach to finding the optimal value for your use case as well as adding
|
69
|
+
# phrases both with and without boost to your requests.
|
70
70
|
class PhraseSet
|
71
71
|
include ::Google::Protobuf::MessageExts
|
72
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -94,8 +94,8 @@ module Google
|
|
94
94
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
95
95
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
96
96
|
# endpoint, use the `global` location. To specify a region, use a
|
97
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
98
|
-
# `eu` location value.
|
97
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
98
|
+
# with matching `us` or `eu` location value.
|
99
99
|
# @!attribute [rw] value
|
100
100
|
# @return [::String]
|
101
101
|
# The phrase itself.
|
@@ -108,8 +108,8 @@ module Google
|
|
108
108
|
# boost will simply be ignored. Though `boost` can accept a wide range of
|
109
109
|
# positive values, most use cases are best served
|
110
110
|
# with values between 0 and 20. We recommend using a binary search approach
|
111
|
-
# to finding the optimal value for your use case
|
112
|
-
#
|
111
|
+
# to finding the optimal value for your use case as well as adding
|
112
|
+
# phrases both with and without boost to your requests.
|
113
113
|
class Phrase
|
114
114
|
include ::Google::Protobuf::MessageExts
|
115
115
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
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-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.17.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.4.2
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: API Client library for the Cloud Speech-to-Text V1 API
|