google-apis-texttospeech_v1beta1 0.31.0 → 0.32.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: 9d3ff9650a7eba27063e8f0a273bb6ff5564526ab83e06572c12f4040299ad61
4
- data.tar.gz: b79243519be3970d64ea2ccdeb8ed0b5c9e1d1368db609bb310b73a540794c0d
3
+ metadata.gz: 86f202c758dbfd93af47de1b296be21b6ccc2315053335798494ac0cd47433fb
4
+ data.tar.gz: 57fdb8d4916afde4c35f59cb8f5f9794ec9125ae4697e6e5c45225428b8b2918
5
5
  SHA512:
6
- metadata.gz: 231ddc8182fe22041657317a9e4a17e1c06e83aa8be377b2a5e4495ba26800e6fa13514ab306222d6eb71bcec775d4627d6ce794ffaf3846a80770d8553a02b0
7
- data.tar.gz: da3037a4aca4dbfe7df68ff0134d5249686c93065efa1584d29e9e298246def4f7a5298ff466fe850a22feaf500eb9c8251ba27ce8038ed110126141d81f2bb4
6
+ metadata.gz: c284d6ce471c125bddb97419711d99f2c0a43bdae24a8d95da1c7ac64c6852ad091521121b0b74b1d45508699793c7bd69b817a582fbafe69f8fa366f59a831a
7
+ data.tar.gz: 9833f56bb07e861ad01e89b8fb48d0a6d3c7fddfe149045850f88b7bca726f7ac291285ee7eeb440b82e4a93ed7766723439b1c2bfc5b7c0d9989a829a668ec2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-texttospeech_v1beta1
2
2
 
3
+ ### v0.32.0 (2024-12-02)
4
+
5
+ * Regenerated from discovery document revision 20241026
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.31.0 (2024-05-19)
4
9
 
5
10
  * Regenerated using generator version 0.15.0
@@ -22,6 +22,27 @@ module Google
22
22
  module Apis
23
23
  module TexttospeechV1beta1
24
24
 
25
+ # Used for advanced voice options.
26
+ class AdvancedVoiceOptions
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Only for Journey 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
@@ -93,6 +114,59 @@ module Google
93
114
  end
94
115
  end
95
116
 
117
+ # Pronunciation customization for a phrase.
118
+ class CustomPronunciationParams
119
+ include Google::Apis::Core::Hashable
120
+
121
+ # The phonetic encoding of the phrase.
122
+ # Corresponds to the JSON property `phoneticEncoding`
123
+ # @return [String]
124
+ attr_accessor :phonetic_encoding
125
+
126
+ # The phrase to which the customization will be applied. The phrase can be
127
+ # multiple words (in the case of proper nouns etc), but should not span to a
128
+ # whole sentence.
129
+ # Corresponds to the JSON property `phrase`
130
+ # @return [String]
131
+ attr_accessor :phrase
132
+
133
+ # The pronunciation of the phrase. This must be in the phonetic encoding
134
+ # specified above.
135
+ # Corresponds to the JSON property `pronunciation`
136
+ # @return [String]
137
+ attr_accessor :pronunciation
138
+
139
+ def initialize(**args)
140
+ update!(**args)
141
+ end
142
+
143
+ # Update properties of this object
144
+ def update!(**args)
145
+ @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
146
+ @phrase = args[:phrase] if args.key?(:phrase)
147
+ @pronunciation = args[:pronunciation] if args.key?(:pronunciation)
148
+ end
149
+ end
150
+
151
+ # A collection of pronunciation customizations.
152
+ class CustomPronunciations
153
+ include Google::Apis::Core::Hashable
154
+
155
+ # The pronunciation customizations to be applied.
156
+ # Corresponds to the JSON property `pronunciations`
157
+ # @return [Array<Google::Apis::TexttospeechV1beta1::CustomPronunciationParams>]
158
+ attr_accessor :pronunciations
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @pronunciations = args[:pronunciations] if args.key?(:pronunciations)
167
+ end
168
+ end
169
+
96
170
  # Description of the custom voice to be synthesized.
97
171
  class CustomVoiceParams
98
172
  include Google::Apis::Core::Hashable
@@ -193,6 +267,25 @@ module Google
193
267
  end
194
268
  end
195
269
 
270
+ # A collection of turns for multi-speaker synthesis.
271
+ class MultiSpeakerMarkup
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # Required. Speaker turns.
275
+ # Corresponds to the JSON property `turns`
276
+ # @return [Array<Google::Apis::TexttospeechV1beta1::Turn>]
277
+ attr_accessor :turns
278
+
279
+ def initialize(**args)
280
+ update!(**args)
281
+ end
282
+
283
+ # Update properties of this object
284
+ def update!(**args)
285
+ @turns = args[:turns] if args.key?(:turns)
286
+ end
287
+ end
288
+
196
289
  # This resource represents a long-running operation that is the result of a
197
290
  # network API call.
198
291
  class Operation
@@ -300,6 +393,16 @@ module Google
300
393
  class SynthesisInput
301
394
  include Google::Apis::Core::Hashable
302
395
 
396
+ # A collection of pronunciation customizations.
397
+ # Corresponds to the JSON property `customPronunciations`
398
+ # @return [Google::Apis::TexttospeechV1beta1::CustomPronunciations]
399
+ attr_accessor :custom_pronunciations
400
+
401
+ # A collection of turns for multi-speaker synthesis.
402
+ # Corresponds to the JSON property `multiSpeakerMarkup`
403
+ # @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup]
404
+ attr_accessor :multi_speaker_markup
405
+
303
406
  # The SSML document to be synthesized. The SSML document must be valid and well-
304
407
  # formed. Otherwise the RPC will fail and return google.rpc.Code.
305
408
  # INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
@@ -319,6 +422,8 @@ module Google
319
422
 
320
423
  # Update properties of this object
321
424
  def update!(**args)
425
+ @custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
426
+ @multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
322
427
  @ssml = args[:ssml] if args.key?(:ssml)
323
428
  @text = args[:text] if args.key?(:text)
324
429
  end
@@ -400,6 +505,11 @@ module Google
400
505
  class SynthesizeSpeechRequest
401
506
  include Google::Apis::Core::Hashable
402
507
 
508
+ # Used for advanced voice options.
509
+ # Corresponds to the JSON property `advancedVoiceOptions`
510
+ # @return [Google::Apis::TexttospeechV1beta1::AdvancedVoiceOptions]
511
+ attr_accessor :advanced_voice_options
512
+
403
513
  # Description of audio data to be synthesized.
404
514
  # Corresponds to the JSON property `audioConfig`
405
515
  # @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
@@ -428,6 +538,7 @@ module Google
428
538
 
429
539
  # Update properties of this object
430
540
  def update!(**args)
541
+ @advanced_voice_options = args[:advanced_voice_options] if args.key?(:advanced_voice_options)
431
542
  @audio_config = args[:audio_config] if args.key?(:audio_config)
432
543
  @enable_time_pointing = args[:enable_time_pointing] if args.key?(:enable_time_pointing)
433
544
  @input = args[:input] if args.key?(:input)
@@ -498,6 +609,32 @@ module Google
498
609
  end
499
610
  end
500
611
 
612
+ # A Multi-speaker turn.
613
+ class Turn
614
+ include Google::Apis::Core::Hashable
615
+
616
+ # Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to
617
+ # documentation for available speakers.
618
+ # Corresponds to the JSON property `speaker`
619
+ # @return [String]
620
+ attr_accessor :speaker
621
+
622
+ # Required. The text to speak.
623
+ # Corresponds to the JSON property `text`
624
+ # @return [String]
625
+ attr_accessor :text
626
+
627
+ def initialize(**args)
628
+ update!(**args)
629
+ end
630
+
631
+ # Update properties of this object
632
+ def update!(**args)
633
+ @speaker = args[:speaker] if args.key?(:speaker)
634
+ @text = args[:text] if args.key?(:text)
635
+ end
636
+ end
637
+
501
638
  # Description of a voice supported by the TTS service.
502
639
  class Voice
503
640
  include Google::Apis::Core::Hashable
@@ -536,6 +673,25 @@ module Google
536
673
  end
537
674
  end
538
675
 
676
+ # The configuration of Voice Clone feature.
677
+ class VoiceCloneParams
678
+ include Google::Apis::Core::Hashable
679
+
680
+ # Required. Created by GenerateVoiceCloningKey.
681
+ # Corresponds to the JSON property `voiceCloningKey`
682
+ # @return [String]
683
+ attr_accessor :voice_cloning_key
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
692
+ end
693
+ end
694
+
539
695
  # Description of which voice to use for a synthesis request.
540
696
  class VoiceSelectionParams
541
697
  include Google::Apis::Core::Hashable
@@ -575,6 +731,11 @@ module Google
575
731
  # @return [String]
576
732
  attr_accessor :ssml_gender
577
733
 
734
+ # The configuration of Voice Clone feature.
735
+ # Corresponds to the JSON property `voiceClone`
736
+ # @return [Google::Apis::TexttospeechV1beta1::VoiceCloneParams]
737
+ attr_accessor :voice_clone
738
+
578
739
  def initialize(**args)
579
740
  update!(**args)
580
741
  end
@@ -585,6 +746,7 @@ module Google
585
746
  @language_code = args[:language_code] if args.key?(:language_code)
586
747
  @name = args[:name] if args.key?(:name)
587
748
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
749
+ @voice_clone = args[:voice_clone] if args.key?(:voice_clone)
588
750
  end
589
751
  end
590
752
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TexttospeechV1beta1
18
18
  # Version of the google-apis-texttospeech_v1beta1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.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 = "20241026"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,30 @@ module Google
22
22
  module Apis
23
23
  module TexttospeechV1beta1
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
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
37
+ class CustomPronunciationParams
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CustomPronunciations
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
31
49
  class CustomVoiceParams
32
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
51
 
@@ -52,6 +70,12 @@ module Google
52
70
  include Google::Apis::Core::JsonObjectSupport
53
71
  end
54
72
 
73
+ class MultiSpeakerMarkup
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
55
79
  class Operation
56
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
81
 
@@ -100,18 +124,37 @@ module Google
100
124
  include Google::Apis::Core::JsonObjectSupport
101
125
  end
102
126
 
127
+ class Turn
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
103
133
  class Voice
104
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
135
 
106
136
  include Google::Apis::Core::JsonObjectSupport
107
137
  end
108
138
 
139
+ class VoiceCloneParams
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
109
145
  class VoiceSelectionParams
110
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
147
 
112
148
  include Google::Apis::Core::JsonObjectSupport
113
149
  end
114
150
 
151
+ class AdvancedVoiceOptions
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :low_latency_journey_synthesis, as: 'lowLatencyJourneySynthesis'
155
+ end
156
+ end
157
+
115
158
  class AudioConfig
116
159
  # @private
117
160
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -124,6 +167,23 @@ module Google
124
167
  end
125
168
  end
126
169
 
170
+ class CustomPronunciationParams
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ property :phonetic_encoding, as: 'phoneticEncoding'
174
+ property :phrase, as: 'phrase'
175
+ property :pronunciation, as: 'pronunciation'
176
+ end
177
+ end
178
+
179
+ class CustomPronunciations
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ collection :pronunciations, as: 'pronunciations', class: Google::Apis::TexttospeechV1beta1::CustomPronunciationParams, decorator: Google::Apis::TexttospeechV1beta1::CustomPronunciationParams::Representation
183
+
184
+ end
185
+ end
186
+
127
187
  class CustomVoiceParams
128
188
  # @private
129
189
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,6 +218,14 @@ module Google
158
218
  end
159
219
  end
160
220
 
221
+ class MultiSpeakerMarkup
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ collection :turns, as: 'turns', class: Google::Apis::TexttospeechV1beta1::Turn, decorator: Google::Apis::TexttospeechV1beta1::Turn::Representation
225
+
226
+ end
227
+ end
228
+
161
229
  class Operation
162
230
  # @private
163
231
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -182,6 +250,10 @@ module Google
182
250
  class SynthesisInput
183
251
  # @private
184
252
  class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1beta1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1beta1::CustomPronunciations::Representation
254
+
255
+ property :multi_speaker_markup, as: 'multiSpeakerMarkup', class: Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup, decorator: Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup::Representation
256
+
185
257
  property :ssml, as: 'ssml'
186
258
  property :text, as: 'text'
187
259
  end
@@ -212,6 +284,8 @@ module Google
212
284
  class SynthesizeSpeechRequest
213
285
  # @private
214
286
  class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :advanced_voice_options, as: 'advancedVoiceOptions', class: Google::Apis::TexttospeechV1beta1::AdvancedVoiceOptions, decorator: Google::Apis::TexttospeechV1beta1::AdvancedVoiceOptions::Representation
288
+
215
289
  property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation
216
290
 
217
291
  collection :enable_time_pointing, as: 'enableTimePointing'
@@ -241,6 +315,14 @@ module Google
241
315
  end
242
316
  end
243
317
 
318
+ class Turn
319
+ # @private
320
+ class Representation < Google::Apis::Core::JsonRepresentation
321
+ property :speaker, as: 'speaker'
322
+ property :text, as: 'text'
323
+ end
324
+ end
325
+
244
326
  class Voice
245
327
  # @private
246
328
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -251,6 +333,13 @@ module Google
251
333
  end
252
334
  end
253
335
 
336
+ class VoiceCloneParams
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :voice_cloning_key, as: 'voiceCloningKey'
340
+ end
341
+ end
342
+
254
343
  class VoiceSelectionParams
255
344
  # @private
256
345
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -259,6 +348,8 @@ module Google
259
348
  property :language_code, as: 'languageCode'
260
349
  property :name, as: 'name'
261
350
  property :ssml_gender, as: 'ssmlGender'
351
+ property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1beta1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceCloneParams::Representation
352
+
262
353
  end
263
354
  end
264
355
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-texttospeech_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.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-12-04 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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1
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.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Text-to-Speech API V1beta1