google-cloud-speech 0.40.2 → 0.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/speech.rb +1 -1
- data/lib/google/cloud/speech/v1.rb +1 -1
- data/lib/google/cloud/speech/v1/speech_client.rb +3 -0
- data/lib/google/cloud/speech/v1p1beta1.rb +1 -1
- data/lib/google/cloud/speech/v1p1beta1/speech_client.rb +3 -0
- data/lib/google/cloud/speech/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54f8b1b7ebf85be4bad01e62e62d35a23efd5a338ec4401200074cff5393ea88
|
4
|
+
data.tar.gz: 279da371cc10451b5515800134e575b66392184ded1164069cb99dfc7bd8d52f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a06a740357974addd1a827100724e596c69a0269e26ccaae480d09f3462c90e2fffd2a507fafc650cf9159b8e3fa7d58b8cef9108456016cf8be5fd67f27ae0
|
7
|
+
data.tar.gz: c6c41704c03b227f8e7f70969c39f6ec97fe88eb0718833420fb1b5b222f1b34404caf18deb388e823406542e6b04148c173cc91342eb9ae7ccfb35d18246054
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby Client for Cloud Speech-to-Text API
|
1
|
+
# Ruby Client for Cloud Speech-to-Text API
|
2
2
|
|
3
3
|
[Cloud Speech-to-Text API][Product Documentation]:
|
4
4
|
Converts audio to text by applying powerful neural network models.
|
data/lib/google/cloud/speech.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Speech-to-Text API
|
24
|
+
# # Ruby Client for Cloud Speech-to-Text API
|
25
25
|
#
|
26
26
|
# [Cloud Speech-to-Text API][Product Documentation]:
|
27
27
|
# Converts audio to text by applying powerful neural network models.
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Cloud Speech-to-Text API
|
26
|
+
# # Ruby Client for Cloud Speech-to-Text API
|
27
27
|
#
|
28
28
|
# [Cloud Speech-to-Text API][Product Documentation]:
|
29
29
|
# Converts audio to text by applying powerful neural network models.
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"speech_client_config.json"
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Cloud Speech-to-Text API
|
26
|
+
# # Ruby Client for Cloud Speech-to-Text API
|
27
27
|
#
|
28
28
|
# [Cloud Speech-to-Text API][Product Documentation]:
|
29
29
|
# Converts audio to text by applying powerful neural network models.
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"speech_client_config.json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-speech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.41.0
|
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-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|