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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a779bf344aed7fb561e5d60ec31cc1fc8f11f8b7789511bae3ee3571ad3cee79
4
- data.tar.gz: 580a65f926e749ba5b7ec26b3fb58214249836f5cfc4a06e2e12bb9ee183ffdb
3
+ metadata.gz: 5dc7ae2eb522a3e3dd96b2bfe8970170db55fe20159366b81b8c28b1bfeabc77
4
+ data.tar.gz: bfb93583365406b9c8ae3db356a4edf5d53e8d864ee03a6b9efc85818d548634
5
5
  SHA512:
6
- metadata.gz: 3cb55f9ebb0486a5453566535714e73a4a9866396a94a2f1f58e1424611361c5a410cfec4049260801476df0c331ad9c0d161dcc60fe87021aed57fc37b8ff71
7
- data.tar.gz: 82925c6984d2e9596cbb27bb1edc5aeab5a7e52e1acab04e10a48d6873a8b7e341be661782b72b785962a7a31de0a436dab60784100aa5ee14073c9b47301409
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module TextToSpeech
19
- VERSION = "0.5.2".freeze
19
+ VERSION = "0.6.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.5.2
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-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax