google-cloud-speech-v1 0.2.0 → 0.2.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/v1/cloud_speech_services_pb.rb +3 -3
- data/lib/google/cloud/speech/v1/speech/client.rb +4 -4
- data/lib/google/cloud/speech/v1/speech/operations.rb +4 -2
- data/lib/google/cloud/speech/v1/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: eeb87044afa8a76e5b51c7943022ae8d80c420d0999779bfbb449451f3377441
|
4
|
+
data.tar.gz: b1fb098c5ba3b5308bd526a03b4e69ca2028c5eb2b7e32e3daf757a20f72452c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47da3f8cc5897177b264083d2978883404d175275cc0a18e298c37b9866d4554ebd1774b0001e91ef54c4d540285b5c6ae004d619079e9d79eea8b8137c381b
|
7
|
+
data.tar.gz: e48cbc056ade7f9a64b5f9d649d6f455f98746a64e928bdb91f4811711dea59dfdeff0db8f5337589225df53005f5b91bb647d9c4ec896a2240111a14967525c
|
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-v1/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.
|
@@ -36,17 +36,17 @@ module Google
|
|
36
36
|
|
37
37
|
# Performs synchronous speech recognition: receive results after all audio
|
38
38
|
# has been sent and processed.
|
39
|
-
rpc :Recognize, RecognizeRequest, RecognizeResponse
|
39
|
+
rpc :Recognize, Google::Cloud::Speech::V1::RecognizeRequest, Google::Cloud::Speech::V1::RecognizeResponse
|
40
40
|
# Performs asynchronous speech recognition: receive results via the
|
41
41
|
# google.longrunning.Operations interface. Returns either an
|
42
42
|
# `Operation.error` or an `Operation.response` which contains
|
43
43
|
# a `LongRunningRecognizeResponse` message.
|
44
44
|
# For more information on asynchronous speech recognition, see the
|
45
45
|
# [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
|
46
|
-
rpc :LongRunningRecognize, LongRunningRecognizeRequest, Google::Longrunning::Operation
|
46
|
+
rpc :LongRunningRecognize, Google::Cloud::Speech::V1::LongRunningRecognizeRequest, Google::Longrunning::Operation
|
47
47
|
# Performs bidirectional streaming speech recognition: receive results while
|
48
48
|
# sending audio. This method is only available via the gRPC API (not REST).
|
49
|
-
rpc :StreamingRecognize, stream(StreamingRecognizeRequest), stream(StreamingRecognizeResponse)
|
49
|
+
rpc :StreamingRecognize, stream(Google::Cloud::Speech::V1::StreamingRecognizeRequest), stream(Google::Cloud::Speech::V1::StreamingRecognizeResponse)
|
50
50
|
end
|
51
51
|
|
52
52
|
Stub = Service.rpc_stub_class
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
initial_delay: 0.1,
|
69
69
|
max_delay: 60.0,
|
70
70
|
multiplier: 1.3,
|
71
|
-
retry_codes: [
|
71
|
+
retry_codes: [14, 4]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config.rpcs.long_running_recognize.timeout = 5000.0
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
initial_delay: 0.1,
|
79
79
|
max_delay: 60.0,
|
80
80
|
multiplier: 1.3,
|
81
|
-
retry_codes: [
|
81
|
+
retry_codes: [14, 4]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config
|
@@ -443,7 +443,7 @@ module Google
|
|
443
443
|
|
444
444
|
config_attr :endpoint, "speech.googleapis.com", ::String
|
445
445
|
config_attr :credentials, nil do |value|
|
446
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
446
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
447
447
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
448
448
|
allowed.any? { |klass| klass === value }
|
449
449
|
end
|
@@ -471,7 +471,7 @@ module Google
|
|
471
471
|
def rpcs
|
472
472
|
@rpcs ||= begin
|
473
473
|
parent_rpcs = nil
|
474
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
474
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
475
475
|
Rpcs.new parent_rpcs
|
476
476
|
end
|
477
477
|
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-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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-v1.rb
|
169
|
-
- lib/google/cloud/common_resources_pb.rb
|
170
169
|
- lib/google/cloud/speech/v1.rb
|
171
170
|
- lib/google/cloud/speech/v1/cloud_speech_pb.rb
|
172
171
|
- lib/google/cloud/speech/v1/cloud_speech_services_pb.rb
|
@@ -204,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
203
|
- !ruby/object:Gem::Version
|
205
204
|
version: '0'
|
206
205
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.1.3
|
208
207
|
signing_key:
|
209
208
|
specification_version: 4
|
210
209
|
summary: API Client library for the Cloud Speech-to-Text V1 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
|