google-apis-texttospeech_v1 0.31.0 → 0.33.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: 91672866d5e87b923f0c0375f786e3c25725f1680b2bf4bff591891bd5c77853
4
- data.tar.gz: d34913d3003943c8257264783b8a5400f3a0da88af71919b7a4395ef9740eba2
3
+ metadata.gz: 44e66db44d98cdcb0811f45564d1094f27217a46db0aca127c33369fd3c87a28
4
+ data.tar.gz: 168ba1ad431a5cd820e51a7929fbfa89494bc2c2777e9afe9ede97e28b35ac4c
5
5
  SHA512:
6
- metadata.gz: 5e7c1c0a968f528846f0db354517a72f637c27443e0ad75992af037f601fca06b06cdd2613b00d34c73867d21a8ae7246726c84a18b9f87650109f843ef5cf07
7
- data.tar.gz: 30edb21063b2d79f2d90d487bf73de1576613af769d3a0038b307cc902fde8d77cbc0b691f0dd4fb1d8abaf0621e266a9956574ab3d29d5e25497be642e8ce88
6
+ metadata.gz: ecbf365b4b4770c440e576ee2f9dbc07eeb1432a7fc930c50c3d20395b1bb182c1f15e1b9e54a70a85f483b8877bd48940aeb06c1d175c962c0f06f3bcb18a06
7
+ data.tar.gz: db9a11b0658e75ba716c033b8da5ec22bc44fdbd29d947ba707bad4e8bf2156d16730e57810f2546c19a58d8ea54fc155291c95a407657eed046c2a100ea37ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.33.0 (2024-10-20)
4
+
5
+ * Regenerated from discovery document revision 20241008
6
+
7
+ ### v0.32.0 (2024-10-06)
8
+
9
+ * Regenerated from discovery document revision 20241001
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.31.0 (2024-05-19)
4
13
 
5
14
  * Regenerated using generator version 0.15.0
@@ -22,6 +22,27 @@ module Google
22
22
  module Apis
23
23
  module TexttospeechV1
24
24
 
25
+ # Used for advanced voice options.
26
+ class AdvancedVoiceOptions
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Only for Jounrney voices. If false, the synthesis will be context aware and
30
+ # have higher latency.
31
+ # Corresponds to the JSON property `lowLatencyJourneySynthesis`
32
+ # @return [Boolean]
33
+ attr_accessor :low_latency_journey_synthesis
34
+ alias_method :low_latency_journey_synthesis?, :low_latency_journey_synthesis
35
+
36
+ def initialize(**args)
37
+ update!(**args)
38
+ end
39
+
40
+ # Update properties of this object
41
+ def update!(**args)
42
+ @low_latency_journey_synthesis = args[:low_latency_journey_synthesis] if args.key?(:low_latency_journey_synthesis)
43
+ end
44
+ end
45
+
25
46
  # Description of audio data to be synthesized.
26
47
  class AudioConfig
27
48
  include Google::Apis::Core::Hashable
@@ -106,6 +127,59 @@ module Google
106
127
  end
107
128
  end
108
129
 
130
+ # Pronunciation customization for a phrase.
131
+ class CustomPronunciationParams
132
+ include Google::Apis::Core::Hashable
133
+
134
+ # The phonetic encoding of the phrase.
135
+ # Corresponds to the JSON property `phoneticEncoding`
136
+ # @return [String]
137
+ attr_accessor :phonetic_encoding
138
+
139
+ # The phrase to which the customization will be applied. The phrase can be
140
+ # multiple words (in the case of proper nouns etc), but should not span to a
141
+ # whole sentence.
142
+ # Corresponds to the JSON property `phrase`
143
+ # @return [String]
144
+ attr_accessor :phrase
145
+
146
+ # The pronunciation of the phrase. This must be in the phonetic encoding
147
+ # specified above.
148
+ # Corresponds to the JSON property `pronunciation`
149
+ # @return [String]
150
+ attr_accessor :pronunciation
151
+
152
+ def initialize(**args)
153
+ update!(**args)
154
+ end
155
+
156
+ # Update properties of this object
157
+ def update!(**args)
158
+ @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
159
+ @phrase = args[:phrase] if args.key?(:phrase)
160
+ @pronunciation = args[:pronunciation] if args.key?(:pronunciation)
161
+ end
162
+ end
163
+
164
+ # A collection of pronunciation customizations.
165
+ class CustomPronunciations
166
+ include Google::Apis::Core::Hashable
167
+
168
+ # The pronunciation customizations to be applied.
169
+ # Corresponds to the JSON property `pronunciations`
170
+ # @return [Array<Google::Apis::TexttospeechV1::CustomPronunciationParams>]
171
+ attr_accessor :pronunciations
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @pronunciations = args[:pronunciations] if args.key?(:pronunciations)
180
+ end
181
+ end
182
+
109
183
  # Description of the custom voice to be synthesized.
110
184
  class CustomVoiceParams
111
185
  include Google::Apis::Core::Hashable
@@ -329,6 +403,11 @@ module Google
329
403
  class SynthesisInput
330
404
  include Google::Apis::Core::Hashable
331
405
 
406
+ # A collection of pronunciation customizations.
407
+ # Corresponds to the JSON property `customPronunciations`
408
+ # @return [Google::Apis::TexttospeechV1::CustomPronunciations]
409
+ attr_accessor :custom_pronunciations
410
+
332
411
  # The SSML document to be synthesized. The SSML document must be valid and well-
333
412
  # formed. Otherwise the RPC will fail and return google.rpc.Code.
334
413
  # INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
@@ -348,6 +427,7 @@ module Google
348
427
 
349
428
  # Update properties of this object
350
429
  def update!(**args)
430
+ @custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
351
431
  @ssml = args[:ssml] if args.key?(:ssml)
352
432
  @text = args[:text] if args.key?(:text)
353
433
  end
@@ -429,6 +509,11 @@ module Google
429
509
  class SynthesizeSpeechRequest
430
510
  include Google::Apis::Core::Hashable
431
511
 
512
+ # Used for advanced voice options.
513
+ # Corresponds to the JSON property `advancedVoiceOptions`
514
+ # @return [Google::Apis::TexttospeechV1::AdvancedVoiceOptions]
515
+ attr_accessor :advanced_voice_options
516
+
432
517
  # Description of audio data to be synthesized.
433
518
  # Corresponds to the JSON property `audioConfig`
434
519
  # @return [Google::Apis::TexttospeechV1::AudioConfig]
@@ -452,6 +537,7 @@ module Google
452
537
 
453
538
  # Update properties of this object
454
539
  def update!(**args)
540
+ @advanced_voice_options = args[:advanced_voice_options] if args.key?(:advanced_voice_options)
455
541
  @audio_config = args[:audio_config] if args.key?(:audio_config)
456
542
  @input = args[:input] if args.key?(:input)
457
543
  @voice = args[:voice] if args.key?(:voice)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TexttospeechV1
18
18
  # Version of the google-apis-texttospeech_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240419"
25
+ REVISION = "20241008"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module TexttospeechV1
24
24
 
25
+ class AdvancedVoiceOptions
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AudioConfig
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -34,6 +40,18 @@ module Google
34
40
  include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
43
+ class CustomPronunciationParams
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CustomPronunciations
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
37
55
  class CustomVoiceParams
38
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
57
 
@@ -118,6 +136,13 @@ module Google
118
136
  include Google::Apis::Core::JsonObjectSupport
119
137
  end
120
138
 
139
+ class AdvancedVoiceOptions
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :low_latency_journey_synthesis, as: 'lowLatencyJourneySynthesis'
143
+ end
144
+ end
145
+
121
146
  class AudioConfig
122
147
  # @private
123
148
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -136,6 +161,23 @@ module Google
136
161
  end
137
162
  end
138
163
 
164
+ class CustomPronunciationParams
165
+ # @private
166
+ class Representation < Google::Apis::Core::JsonRepresentation
167
+ property :phonetic_encoding, as: 'phoneticEncoding'
168
+ property :phrase, as: 'phrase'
169
+ property :pronunciation, as: 'pronunciation'
170
+ end
171
+ end
172
+
173
+ class CustomPronunciations
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ collection :pronunciations, as: 'pronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciationParams, decorator: Google::Apis::TexttospeechV1::CustomPronunciationParams::Representation
177
+
178
+ end
179
+ end
180
+
139
181
  class CustomVoiceParams
140
182
  # @private
141
183
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -200,6 +242,8 @@ module Google
200
242
  class SynthesisInput
201
243
  # @private
202
244
  class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1::CustomPronunciations::Representation
246
+
203
247
  property :ssml, as: 'ssml'
204
248
  property :text, as: 'text'
205
249
  end
@@ -230,6 +274,8 @@ module Google
230
274
  class SynthesizeSpeechRequest
231
275
  # @private
232
276
  class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :advanced_voice_options, as: 'advancedVoiceOptions', class: Google::Apis::TexttospeechV1::AdvancedVoiceOptions, decorator: Google::Apis::TexttospeechV1::AdvancedVoiceOptions::Representation
278
+
233
279
  property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::AudioConfig, decorator: Google::Apis::TexttospeechV1::AudioConfig::Representation
234
280
 
235
281
  property :input, as: 'input', class: Google::Apis::TexttospeechV1::SynthesisInput, decorator: Google::Apis::TexttospeechV1::SynthesisInput::Representation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-texttospeech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.33.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: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Text-to-Speech API V1