google-cloud-text_to_speech 0.1.0 → 0.1.1

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: 527b560618a264d0555ddd08853f4ef2ca82c4d5d26411e4678add5a4f4ea159
4
- data.tar.gz: df1aadbbe9e68756e1c7aa75f8b4ecea5b45e91d081760390a4c94a7235cf01b
3
+ metadata.gz: 61bbf22f9cde7db75fdd83befdd82c425eb1dbce47950a9b63bc53ac2a4e9d6d
4
+ data.tar.gz: c167fbe67d0c9a68ce547f5200d805b73be19914fc87e6c5b17e485cad703d73
5
5
  SHA512:
6
- metadata.gz: e68ed94038d5748144cecaf6d118781ebdb05cd1b284a1727f34511446a6ec007b3eaeade4087931199de977c09aa2d50ad04ac9bc55a4cd68efeaba877e73e0
7
- data.tar.gz: 024b2529e17b877b0e69bddf8d41d16a7cd2ce83587ee0013d6fa7d910edab599ee27d4d4cf1fe20087a4008946f882715e092c6ca80f9ddfa3b8e32c2fe94ef
6
+ metadata.gz: '03842897634ca56925d10c20d9217b7e6863368110975a4933da3ef0fc9dc15b56b1ea2e3cc90ab8d15882c1f9bc5c13ab103d04cdf914b558c8436cafa0c35c'
7
+ data.tar.gz: 0c6ccc7a05db9eec30f24f7c358618d7d4341814855a0ef6c7967dfb03654b03e21fc9d0186ee3e0a308b55e3e2a0cbba82efa9ecc5534ec97b576f96f85619f
data/.yardopts CHANGED
@@ -2,6 +2,7 @@
2
2
  --title=Cloud Text-to-Speech API
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
+ --markup-provider redcarpet
5
6
 
6
7
  ./lib/**/*.rb
7
8
  -
data/README.md CHANGED
@@ -12,7 +12,7 @@ steps:
12
12
 
13
13
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
14
14
  2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
15
- 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/api/texttospeech)
15
+ 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com)
16
16
  4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
17
17
 
18
18
  ### Installation
@@ -59,11 +59,11 @@ end
59
59
 
60
60
  ## Supported Ruby Versions
61
61
 
62
- This library is supported on Ruby 2.0+.
62
+ This library is supported on Ruby 2.3+.
63
63
 
64
- However, Ruby 2.3 or later is strongly recommended, as earlier releases have
65
- reached or are nearing end-of-life. After June 1, 2018, Google will provide
66
- official support only for Ruby versions that are considered current and
67
- supported by Ruby Core (that is, Ruby versions that are either in normal
68
- maintenance or in security maintenance).
69
- See https://www.ruby-lang.org/en/downloads/branches/ for further details.
64
+ Google provides official support for Ruby versions that are actively supported
65
+ by Ruby Core—that is, Ruby versions that are either in normal maintenance or
66
+ in security maintenance, and not end of life. Currently, this means Ruby 2.3
67
+ and later. Older versions of Ruby _may_ still work, but are unsupported and not
68
+ recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
69
+ about the Ruby support schedule.
@@ -33,7 +33,7 @@ module Google
33
33
  #
34
34
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
35
35
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
36
- # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/api/texttospeech)
36
+ # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com)
37
37
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
38
  #
39
39
  # ### Next Steps
@@ -16,60 +16,60 @@ require "google/cloud/text_to_speech/v1/text_to_speech_client"
16
16
 
17
17
  module Google
18
18
  module Cloud
19
- # rubocop:disable LineLength
20
-
21
- ##
22
- # # Ruby Client for Cloud Text-to-Speech API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
23
- #
24
- # [Cloud Text-to-Speech API][Product Documentation]:
25
- # Synthesizes natural-sounding speech by applying powerful neural network
26
- # models.
27
- # - [Product Documentation][]
28
- #
29
- # ## Quick Start
30
- # In order to use this library, you first need to go through the following
31
- # steps:
32
- #
33
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
34
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
35
- # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/api/texttospeech)
36
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
37
- #
38
- # ### Next Steps
39
- # - Read the [Cloud Text-to-Speech API Product documentation][Product Documentation]
40
- # to learn more about the product and see How-to Guides.
41
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
42
- # to see the full list of Cloud APIs that we cover.
43
- #
44
- # [Product Documentation]: https://cloud.google.com/texttospeech
45
- #
46
- # ## Enabling Logging
47
- #
48
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
50
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
51
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
- #
54
- # Configuring a Ruby stdlib logger:
55
- #
56
- # ```ruby
57
- # require "logger"
58
- #
59
- # module MyLogger
60
- # LOGGER = Logger.new $stderr, level: Logger::WARN
61
- # def logger
62
- # LOGGER
63
- # end
64
- # end
65
- #
66
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- # module GRPC
68
- # extend MyLogger
69
- # end
70
- # ```
71
- #
72
19
  module TextToSpeech
20
+ # rubocop:disable LineLength
21
+
22
+ ##
23
+ # # Ruby Client for Cloud Text-to-Speech API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
+ #
25
+ # [Cloud Text-to-Speech API][Product Documentation]:
26
+ # Synthesizes natural-sounding speech by applying powerful neural network
27
+ # models.
28
+ # - [Product Documentation][]
29
+ #
30
+ # ## Quick Start
31
+ # In order to use this library, you first need to go through the following
32
+ # steps:
33
+ #
34
+ # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
35
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
36
+ # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com)
37
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
+ #
39
+ # ### Next Steps
40
+ # - Read the [Cloud Text-to-Speech API Product documentation][Product Documentation]
41
+ # to learn more about the product and see How-to Guides.
42
+ # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
43
+ # to see the full list of Cloud APIs that we cover.
44
+ #
45
+ # [Product Documentation]: https://cloud.google.com/texttospeech
46
+ #
47
+ # ## Enabling Logging
48
+ #
49
+ # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
50
+ # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
51
+ # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
52
+ # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
53
+ # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
54
+ #
55
+ # Configuring a Ruby stdlib logger:
56
+ #
57
+ # ```ruby
58
+ # require "logger"
59
+ #
60
+ # module MyLogger
61
+ # LOGGER = Logger.new $stderr, level: Logger::WARN
62
+ # def logger
63
+ # LOGGER
64
+ # end
65
+ # end
66
+ #
67
+ # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
68
+ # module GRPC
69
+ # extend MyLogger
70
+ # end
71
+ # ```
72
+ #
73
73
  module V1
74
74
  # rubocop:enable LineLength
75
75
 
@@ -22,8 +22,16 @@ module Google
22
22
  SCOPE = [
23
23
  "https://www.googleapis.com/auth/cloud-platform"
24
24
  ].freeze
25
- PATH_ENV_VARS = %w(TEXTTOSPEECH_KEYFILE GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE)
26
- JSON_ENV_VARS = %w(TEXTTOSPEECH_KEYFILE_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON)
25
+ PATH_ENV_VARS = %w(TEXTTOSPEECH_CREDENTIALS
26
+ TEXTTOSPEECH_KEYFILE
27
+ GOOGLE_CLOUD_CREDENTIALS
28
+ GOOGLE_CLOUD_KEYFILE
29
+ GCLOUD_KEYFILE)
30
+ JSON_ENV_VARS = %w(TEXTTOSPEECH_CREDENTIALS_JSON
31
+ TEXTTOSPEECH_KEYFILE_JSON
32
+ GOOGLE_CLOUD_CREDENTIALS_JSON
33
+ GOOGLE_CLOUD_KEYFILE_JSON
34
+ GCLOUD_KEYFILE_JSON)
27
35
  DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
28
36
  end
29
37
  end
@@ -15,17 +15,6 @@
15
15
  module Google
16
16
  module Cloud
17
17
  module Texttospeech
18
- ##
19
- # # Cloud Text-to-Speech API Contents
20
- #
21
- # | Class | Description |
22
- # | ----- | ----------- |
23
- # | [TextToSpeechClient][] | Service that implements Google Cloud Text-to-Speech API. |
24
- # | [Data Types][] | Data types for Google::Cloud::TextToSpeech::V1 |
25
- #
26
- # [TextToSpeechClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-text_to_speech/latest/google/cloud/texttospeech/v1/texttospeechclient
27
- # [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-text_to_speech/latest/google/cloud/texttospeech/v1/datatypes
28
- #
29
18
  module V1
30
19
  # The top-level message sent by the client for the +ListVoices+ method.
31
20
  # @!attribute [rw] language_code
@@ -30,7 +30,7 @@ module Google
30
30
  #
31
31
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
32
32
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
33
- # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/api/texttospeech)
33
+ # 3. [Enable the Cloud Text-to-Speech API.](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com)
34
34
  # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
35
  #
36
36
  # ### Installation
@@ -193,9 +193,9 @@ module Google
193
193
  # @return [Google::Cloud::Texttospeech::V1::ListVoicesResponse]
194
194
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
195
195
  # @example
196
- # require "google/cloud/text_to_speech/v1"
196
+ # require "google/cloud/text_to_speech"
197
197
  #
198
- # text_to_speech_client = Google::Cloud::TextToSpeech::V1.new
198
+ # text_to_speech_client = Google::Cloud::TextToSpeech.new(version: :v1)
199
199
  # response = text_to_speech_client.list_voices
200
200
 
201
201
  def list_voices \
@@ -233,9 +233,9 @@ module Google
233
233
  # @return [Google::Cloud::Texttospeech::V1::SynthesizeSpeechResponse]
234
234
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
235
235
  # @example
236
- # require "google/cloud/text_to_speech/v1"
236
+ # require "google/cloud/text_to_speech"
237
237
  #
238
- # text_to_speech_client = Google::Cloud::TextToSpeech::V1.new
238
+ # text_to_speech_client = Google::Cloud::TextToSpeech.new(version: :v1)
239
239
  #
240
240
  # # TODO: Initialize +input+:
241
241
  # input = {}
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-09 00:00:00.000000000 Z
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: redcarpet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +80,20 @@ dependencies:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
69
97
  description: google-cloud-text_to_speech is the official library for Cloud Text-to-Speech
70
98
  API.
71
99
  email: googleapis-packages@google.com