google-cloud-speech-v1p1beta1 0.3.0 → 0.3.5
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 +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/speech/v1p1beta1/cloud_speech_services_pb.rb +3 -3
- data/lib/google/cloud/speech/v1p1beta1/speech/client.rb +4 -4
- data/lib/google/cloud/speech/v1p1beta1/speech/operations.rb +4 -2
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- metadata +5 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41600120202518e2ba93a66595eaadf732473c558c7cef08f54c0fa981818b7b
|
|
4
|
+
data.tar.gz: 2c4052c7904297e395c573eaba443339c3d970c1d80fb86d0bb7a426b4537fd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff741f8814600c43bde7efa47631c59949e1a2bebf7c3a752ffc5a382a002de0eaf81aea29c6048cb07c2b50624a052afaeb7a4fafe50d7b7f3076062bea812b
|
|
7
|
+
data.tar.gz: bb44a6084bc0002b5ce34393226624e35835c945aa6c43f278ff69c2107889a4b069bdc12e1e1f6cd7a125b0139f8a0faf82e2d24d6b605948231f21ebd4d2ce
|
data/README.md
CHANGED
|
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
18
18
|
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/speech.googleapis.com)
|
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
22
23
|
|
|
23
24
|
## Quick Start
|
|
@@ -33,6 +34,9 @@ response = client.recognize request
|
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-speech-v1p1beta1/latest)
|
|
34
35
|
for class and method documentation.
|
|
35
36
|
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/speech-to-text)
|
|
38
|
+
for general usage information.
|
|
39
|
+
|
|
36
40
|
## Enabling Logging
|
|
37
41
|
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
@@ -35,17 +35,17 @@ module Google
|
|
|
35
35
|
|
|
36
36
|
# Performs synchronous speech recognition: receive results after all audio
|
|
37
37
|
# has been sent and processed.
|
|
38
|
-
rpc :Recognize, RecognizeRequest, RecognizeResponse
|
|
38
|
+
rpc :Recognize, Google::Cloud::Speech::V1p1beta1::RecognizeRequest, Google::Cloud::Speech::V1p1beta1::RecognizeResponse
|
|
39
39
|
# Performs asynchronous speech recognition: receive results via the
|
|
40
40
|
# google.longrunning.Operations interface. Returns either an
|
|
41
41
|
# `Operation.error` or an `Operation.response` which contains
|
|
42
42
|
# a `LongRunningRecognizeResponse` message.
|
|
43
43
|
# For more information on asynchronous speech recognition, see the
|
|
44
44
|
# [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
|
|
45
|
-
rpc :LongRunningRecognize, LongRunningRecognizeRequest, Google::Longrunning::Operation
|
|
45
|
+
rpc :LongRunningRecognize, Google::Cloud::Speech::V1p1beta1::LongRunningRecognizeRequest, Google::Longrunning::Operation
|
|
46
46
|
# Performs bidirectional streaming speech recognition: receive results while
|
|
47
47
|
# sending audio. This method is only available via the gRPC API (not REST).
|
|
48
|
-
rpc :StreamingRecognize, stream(StreamingRecognizeRequest), stream(StreamingRecognizeResponse)
|
|
48
|
+
rpc :StreamingRecognize, stream(Google::Cloud::Speech::V1p1beta1::StreamingRecognizeRequest), stream(Google::Cloud::Speech::V1p1beta1::StreamingRecognizeResponse)
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
Stub = Service.rpc_stub_class
|
|
@@ -70,7 +70,7 @@ module Google
|
|
|
70
70
|
initial_delay: 0.1,
|
|
71
71
|
max_delay: 60.0,
|
|
72
72
|
multiplier: 1.3,
|
|
73
|
-
retry_codes: [
|
|
73
|
+
retry_codes: [4, 14]
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
default_config.rpcs.long_running_recognize.timeout = 5000.0
|
|
@@ -80,7 +80,7 @@ module Google
|
|
|
80
80
|
initial_delay: 0.1,
|
|
81
81
|
max_delay: 60.0,
|
|
82
82
|
multiplier: 1.3,
|
|
83
|
-
retry_codes: [
|
|
83
|
+
retry_codes: [4, 14]
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
default_config
|
|
@@ -445,7 +445,7 @@ module Google
|
|
|
445
445
|
|
|
446
446
|
config_attr :endpoint, "speech.googleapis.com", ::String
|
|
447
447
|
config_attr :credentials, nil do |value|
|
|
448
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
448
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
449
449
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
450
450
|
allowed.any? { |klass| klass === value }
|
|
451
451
|
end
|
|
@@ -473,7 +473,7 @@ module Google
|
|
|
473
473
|
def rpcs
|
|
474
474
|
@rpcs ||= begin
|
|
475
475
|
parent_rpcs = nil
|
|
476
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
|
476
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
|
477
477
|
Rpcs.new parent_rpcs
|
|
478
478
|
end
|
|
479
479
|
end
|
|
@@ -85,6 +85,8 @@ module Google
|
|
|
85
85
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
87
87
|
end
|
|
88
|
+
@quota_project_id = @config.quota_project
|
|
89
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
88
90
|
|
|
89
91
|
@operations_stub = ::Gapic::ServiceStub.new(
|
|
90
92
|
::Google::Longrunning::Operations::Stub,
|
|
@@ -473,7 +475,7 @@ module Google
|
|
|
473
475
|
|
|
474
476
|
config_attr :endpoint, "speech.googleapis.com", ::String
|
|
475
477
|
config_attr :credentials, nil do |value|
|
|
476
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
477
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
478
480
|
allowed.any? { |klass| klass === value }
|
|
479
481
|
end
|
|
@@ -501,7 +503,7 @@ module Google
|
|
|
501
503
|
def rpcs
|
|
502
504
|
@rpcs ||= begin
|
|
503
505
|
parent_rpcs = nil
|
|
504
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
|
505
507
|
Rpcs.new parent_rpcs
|
|
506
508
|
end
|
|
507
509
|
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.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
19
|
+
version: '0.3'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
26
|
+
version: '0.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: google-cloud-errors
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -166,7 +166,6 @@ files:
|
|
|
166
166
|
- LICENSE.md
|
|
167
167
|
- README.md
|
|
168
168
|
- lib/google-cloud-speech-v1p1beta1.rb
|
|
169
|
-
- lib/google/cloud/common_resources_pb.rb
|
|
170
169
|
- lib/google/cloud/speech/v1p1beta1.rb
|
|
171
170
|
- lib/google/cloud/speech/v1p1beta1/cloud_speech_pb.rb
|
|
172
171
|
- lib/google/cloud/speech/v1p1beta1/cloud_speech_services_pb.rb
|
|
@@ -207,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
207
206
|
- !ruby/object:Gem::Version
|
|
208
207
|
version: '0'
|
|
209
208
|
requirements: []
|
|
210
|
-
rubygems_version: 3.
|
|
209
|
+
rubygems_version: 3.1.3
|
|
211
210
|
signing_key:
|
|
212
211
|
specification_version: 4
|
|
213
212
|
summary: API Client library for the Cloud Speech-to-Text V1p1beta1 API
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
-
# source: google/cloud/common_resources.proto
|
|
3
|
-
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
|
-
require 'google/api/resource_pb'
|
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
module Google
|
|
13
|
-
module Cloud
|
|
14
|
-
end
|
|
15
|
-
end
|