google-cloud-text_to_speech 1.3.0 → 1.4.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/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/text_to_speech/version.rb +1 -1
- data/lib/google/cloud/text_to_speech.rb +30 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a20efb33ca575ac1f4d2c45f355d6db1e617c0dea20aea7999bf80076d42b3
|
4
|
+
data.tar.gz: 60bde975ef0b3cef0b3bcc5b50fc563863e05ea45175fca6fadeb8c52e961648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3a07483359fa76cde2fb7fb774d4ec22c307cf16d5c38ac72076b72a144ba4d0125476e559660f630b032c49eb8c02eca9484fdd54de76da59fe8cf824c082d
|
7
|
+
data.tar.gz: 7dce4aaaa029eae904bcfd179fa19cc82dabed4e505170bc867cc46b8acd4a039ef2aa71f452ca02179a0e6e7e9fa0e743af69b0683e9aea66d9f9138720a9de
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
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/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -74,6 +74,36 @@ module Google
|
|
74
74
|
package_module.const_get(:TextToSpeech).const_get(:Client).new(&block)
|
75
75
|
end
|
76
76
|
|
77
|
+
##
|
78
|
+
# Create a new client object for TextToSpeechLongAudioSynthesize.
|
79
|
+
#
|
80
|
+
# By default, this returns an instance of
|
81
|
+
# [Google::Cloud::TextToSpeech::V1::TextToSpeechLongAudioSynthesize::Client](https://googleapis.dev/ruby/google-cloud-text_to_speech-v1/latest/Google/Cloud/TextToSpeech/V1/TextToSpeechLongAudioSynthesize/Client.html)
|
82
|
+
# for version V1 of the API.
|
83
|
+
# However, you can specify specify a different API version by passing it in the
|
84
|
+
# `version` parameter. If the TextToSpeechLongAudioSynthesize service is
|
85
|
+
# supported by that API version, and the corresponding gem is available, the
|
86
|
+
# appropriate versioned client will be returned.
|
87
|
+
#
|
88
|
+
# ## About TextToSpeechLongAudioSynthesize
|
89
|
+
#
|
90
|
+
# Service that implements Google Cloud Text-to-Speech API.
|
91
|
+
#
|
92
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
93
|
+
# Defaults to `:v1`.
|
94
|
+
# @return [TextToSpeechLongAudioSynthesize::Client] A client object for the specified version.
|
95
|
+
#
|
96
|
+
def self.text_to_speech_long_audio_synthesize version: :v1, &block
|
97
|
+
require "google/cloud/text_to_speech/#{version.to_s.downcase}"
|
98
|
+
|
99
|
+
package_name = Google::Cloud::TextToSpeech
|
100
|
+
.constants
|
101
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
102
|
+
.first
|
103
|
+
package_module = Google::Cloud::TextToSpeech.const_get package_name
|
104
|
+
package_module.const_get(:TextToSpeechLongAudioSynthesize).const_get(:Client).new(&block)
|
105
|
+
end
|
106
|
+
|
77
107
|
##
|
78
108
|
# Configure the google-cloud-text_to_speech library.
|
79
109
|
#
|
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: 1.
|
4
|
+
version: 1.4.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: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.8'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.8'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.9'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.9'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|