google-cloud-text_to_speech 0.5.2 → 0.6.0
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 +1 -1
- data/lib/google/cloud/text_to_speech.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1/text_to_speech_client.rb +3 -0
- data/lib/google/cloud/text_to_speech/v1beta1.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_client.rb +3 -0
- data/lib/google/cloud/text_to_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: 5dc7ae2eb522a3e3dd96b2bfe8970170db55fe20159366b81b8c28b1bfeabc77
|
|
4
|
+
data.tar.gz: bfb93583365406b9c8ae3db356a4edf5d53e8d864ee03a6b9efc85818d548634
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a647090b1d582bac4bf8f6515649d66d4ed5cc3fc25325cc65891e0d68044e00fed63ea83dad5167a21cb34e21b580aa4034ad068c6b740dda6d7f60a376928
|
|
7
|
+
data.tar.gz: ad8b1dd6be3b8fd1d4e60df095aa9f2f45911ca476a87f5e1619fc8874280b84feabae7856902349f7dbc8f5da5fcb7353de3fec60d9ae1eae51bb33b497308b
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Ruby Client for Cloud Text-to-Speech API
|
|
1
|
+
# Ruby Client for Cloud Text-to-Speech API
|
|
2
2
|
|
|
3
3
|
[Cloud Text-to-Speech API][Product Documentation]:
|
|
4
4
|
Synthesizes natural-sounding speech by applying powerful neural network
|
|
@@ -21,7 +21,7 @@ module Google
|
|
|
21
21
|
# rubocop:disable LineLength
|
|
22
22
|
|
|
23
23
|
##
|
|
24
|
-
# # Ruby Client for Cloud Text-to-Speech API
|
|
24
|
+
# # Ruby Client for Cloud Text-to-Speech API
|
|
25
25
|
#
|
|
26
26
|
# [Cloud Text-to-Speech API][Product Documentation]:
|
|
27
27
|
# Synthesizes natural-sounding speech by applying powerful neural network
|
|
@@ -21,7 +21,7 @@ module Google
|
|
|
21
21
|
# rubocop:disable LineLength
|
|
22
22
|
|
|
23
23
|
##
|
|
24
|
-
# # Ruby Client for Cloud Text-to-Speech API
|
|
24
|
+
# # Ruby Client for Cloud Text-to-Speech API
|
|
25
25
|
#
|
|
26
26
|
# [Cloud Text-to-Speech API][Product Documentation]:
|
|
27
27
|
# Synthesizes natural-sounding speech by applying powerful neural network
|
|
@@ -136,6 +136,9 @@ module Google
|
|
|
136
136
|
google_api_client.freeze
|
|
137
137
|
|
|
138
138
|
headers = { :"x-goog-api-client" => google_api_client }
|
|
139
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
|
140
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
|
141
|
+
end
|
|
139
142
|
headers.merge!(metadata) unless metadata.nil?
|
|
140
143
|
client_config_file = Pathname.new(__dir__).join(
|
|
141
144
|
"text_to_speech_client_config.json"
|
|
@@ -21,7 +21,7 @@ module Google
|
|
|
21
21
|
# rubocop:disable LineLength
|
|
22
22
|
|
|
23
23
|
##
|
|
24
|
-
# # Ruby Client for Cloud Text-to-Speech API
|
|
24
|
+
# # Ruby Client for Cloud Text-to-Speech API
|
|
25
25
|
#
|
|
26
26
|
# [Cloud Text-to-Speech API][Product Documentation]:
|
|
27
27
|
# Synthesizes natural-sounding speech by applying powerful neural network
|
|
@@ -136,6 +136,9 @@ module Google
|
|
|
136
136
|
google_api_client.freeze
|
|
137
137
|
|
|
138
138
|
headers = { :"x-goog-api-client" => google_api_client }
|
|
139
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
|
140
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
|
141
|
+
end
|
|
139
142
|
headers.merge!(metadata) unless metadata.nil?
|
|
140
143
|
client_config_file = Pathname.new(__dir__).join(
|
|
141
144
|
"text_to_speech_client_config.json"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-text_to_speech
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.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
|