google-cloud-speech-v1 0.10.1 → 0.10.2
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: 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
|
@@ -401,13 +401,11 @@ module Google
|
|
401
401
|
# # Call the list_phrase_set method.
|
402
402
|
# result = client.list_phrase_set request
|
403
403
|
#
|
404
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
405
|
-
# #
|
406
|
-
#
|
407
|
-
# # methods are also available for managing paging directly.
|
408
|
-
# 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|
|
409
407
|
# # Each element is of type ::Google::Cloud::Speech::V1::PhraseSet.
|
410
|
-
# p
|
408
|
+
# p item
|
411
409
|
# end
|
412
410
|
#
|
413
411
|
def list_phrase_set request, options = nil
|
@@ -886,13 +884,11 @@ module Google
|
|
886
884
|
# # Call the list_custom_classes method.
|
887
885
|
# result = client.list_custom_classes request
|
888
886
|
#
|
889
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
890
|
-
# #
|
891
|
-
#
|
892
|
-
# # methods are also available for managing paging directly.
|
893
|
-
# 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|
|
894
890
|
# # Each element is of type ::Google::Cloud::Speech::V1::CustomClass.
|
895
|
-
# p
|
891
|
+
# p item
|
896
892
|
# end
|
897
893
|
#
|
898
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
|
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-02-
|
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
|