google-cloud-text_to_speech 0.1.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.
@@ -0,0 +1,36 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.texttospeech.v1.TextToSpeech": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "ListVoices": {
24
+ "timeout_millis": 30000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ },
28
+ "SynthesizeSpeech": {
29
+ "timeout_millis": 60000,
30
+ "retry_codes_name": "idempotent",
31
+ "retry_params_name": "default"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,77 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/texttospeech/v1/cloud_tts.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "google.cloud.texttospeech.v1.ListVoicesRequest" do
9
+ optional :language_code, :string, 1
10
+ end
11
+ add_message "google.cloud.texttospeech.v1.ListVoicesResponse" do
12
+ repeated :voices, :message, 1, "google.cloud.texttospeech.v1.Voice"
13
+ end
14
+ add_message "google.cloud.texttospeech.v1.Voice" do
15
+ repeated :language_codes, :string, 1
16
+ optional :name, :string, 2
17
+ optional :ssml_gender, :enum, 3, "google.cloud.texttospeech.v1.SsmlVoiceGender"
18
+ optional :natural_sample_rate_hertz, :int32, 4
19
+ end
20
+ add_message "google.cloud.texttospeech.v1.SynthesizeSpeechRequest" do
21
+ optional :input, :message, 1, "google.cloud.texttospeech.v1.SynthesisInput"
22
+ optional :voice, :message, 2, "google.cloud.texttospeech.v1.VoiceSelectionParams"
23
+ optional :audio_config, :message, 3, "google.cloud.texttospeech.v1.AudioConfig"
24
+ end
25
+ add_message "google.cloud.texttospeech.v1.SynthesisInput" do
26
+ oneof :input_source do
27
+ optional :text, :string, 1
28
+ optional :ssml, :string, 2
29
+ end
30
+ end
31
+ add_message "google.cloud.texttospeech.v1.VoiceSelectionParams" do
32
+ optional :language_code, :string, 1
33
+ optional :name, :string, 2
34
+ optional :ssml_gender, :enum, 3, "google.cloud.texttospeech.v1.SsmlVoiceGender"
35
+ end
36
+ add_message "google.cloud.texttospeech.v1.AudioConfig" do
37
+ optional :audio_encoding, :enum, 1, "google.cloud.texttospeech.v1.AudioEncoding"
38
+ optional :speaking_rate, :double, 2
39
+ optional :pitch, :double, 3
40
+ optional :volume_gain_db, :double, 4
41
+ optional :sample_rate_hertz, :int32, 5
42
+ end
43
+ add_message "google.cloud.texttospeech.v1.SynthesizeSpeechResponse" do
44
+ optional :audio_content, :bytes, 1
45
+ end
46
+ add_enum "google.cloud.texttospeech.v1.SsmlVoiceGender" do
47
+ value :SSML_VOICE_GENDER_UNSPECIFIED, 0
48
+ value :MALE, 1
49
+ value :FEMALE, 2
50
+ value :NEUTRAL, 3
51
+ end
52
+ add_enum "google.cloud.texttospeech.v1.AudioEncoding" do
53
+ value :AUDIO_ENCODING_UNSPECIFIED, 0
54
+ value :LINEAR16, 1
55
+ value :MP3, 2
56
+ value :OGG_OPUS, 3
57
+ end
58
+ end
59
+
60
+ module Google
61
+ module Cloud
62
+ module Texttospeech
63
+ module V1
64
+ ListVoicesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesRequest").msgclass
65
+ ListVoicesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesResponse").msgclass
66
+ Voice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.Voice").msgclass
67
+ SynthesizeSpeechRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechRequest").msgclass
68
+ SynthesisInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesisInput").msgclass
69
+ VoiceSelectionParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.VoiceSelectionParams").msgclass
70
+ AudioConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioConfig").msgclass
71
+ SynthesizeSpeechResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechResponse").msgclass
72
+ SsmlVoiceGender = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SsmlVoiceGender").enummodule
73
+ AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioEncoding").enummodule
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/texttospeech/v1/cloud_tts.proto for package 'google.cloud.texttospeech.v1'
3
+ # Original file comments:
4
+ # Copyright 2018 Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/texttospeech/v1/cloud_tts_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Texttospeech
25
+ module V1
26
+ module TextToSpeech
27
+ # Service that implements Google Cloud Text-to-Speech API.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.texttospeech.v1.TextToSpeech'
35
+
36
+ # Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
37
+ # supported for synthesis.
38
+ rpc :ListVoices, ListVoicesRequest, ListVoicesResponse
39
+ # Synthesizes speech synchronously: receive results after all text input
40
+ # has been processed.
41
+ rpc :SynthesizeSpeech, SynthesizeSpeechRequest, SynthesizeSpeechResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-text_to_speech
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-gax
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.50.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.50.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
69
+ description: google-cloud-text_to_speech is the official library for Cloud Text-to-Speech
70
+ API.
71
+ email: googleapis-packages@google.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".yardopts"
77
+ - LICENSE
78
+ - README.md
79
+ - lib/google/cloud/text_to_speech.rb
80
+ - lib/google/cloud/text_to_speech/v1.rb
81
+ - lib/google/cloud/text_to_speech/v1/credentials.rb
82
+ - lib/google/cloud/text_to_speech/v1/doc/google/cloud/texttospeech/v1/cloud_tts.rb
83
+ - lib/google/cloud/text_to_speech/v1/doc/overview.rb
84
+ - lib/google/cloud/text_to_speech/v1/text_to_speech_client.rb
85
+ - lib/google/cloud/text_to_speech/v1/text_to_speech_client_config.json
86
+ - lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb
87
+ - lib/google/cloud/texttospeech/v1/cloud_tts_services_pb.rb
88
+ homepage: https://github.com/googleapis/googleapis
89
+ licenses:
90
+ - Apache-2.0
91
+ metadata: {}
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 2.0.0
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubyforge_project:
108
+ rubygems_version: 2.7.7
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: API Client library for Cloud Text-to-Speech API
112
+ test_files: []