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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5771fc88dbca5a46bc79d091ba1f47c4abad1fbe506878a7689c54012d3378d
4
- data.tar.gz: 84deb2053613b535008d1c387b531d6eebeea4ca9eaded55682e21f98ff5883e
3
+ metadata.gz: 54f8b1b7ebf85be4bad01e62e62d35a23efd5a338ec4401200074cff5393ea88
4
+ data.tar.gz: 279da371cc10451b5515800134e575b66392184ded1164069cb99dfc7bd8d52f
5
5
  SHA512:
6
- metadata.gz: 3f8033f8188264aa6e63af0ac46a074b7b46cd19c28113289709d271475711f3b6660ed352f34f5cac3052ecd29143d267a981963037ada45eaeeacf1ef3f547
7
- data.tar.gz: 674a358627d71d7d5da7b8dedc5922733968aa895aeeb470aa1ea8a34981ab9605b6b3b696a267191be62e10c7fa97b4f31032c38cff3d075b4d1145c3eef49e
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Speech-to-Text API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Speech
19
- VERSION = "0.40.2".freeze
19
+ VERSION = "0.41.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-speech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.2
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-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