google-apis-texttospeech_v1beta1 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: 9d3ff9650a7eba27063e8f0a273bb6ff5564526ab83e06572c12f4040299ad61
4
- data.tar.gz: b79243519be3970d64ea2ccdeb8ed0b5c9e1d1368db609bb310b73a540794c0d
3
+ metadata.gz: d161e9971b8d43eb9b58ac9f4373bca0767e929395444563dd7795bb8159af8e
4
+ data.tar.gz: 24818673e90ddfbfeb5eee47c7be1bf91bf740b4354e256a0333f6d679f86cfd
5
5
  SHA512:
6
- metadata.gz: 231ddc8182fe22041657317a9e4a17e1c06e83aa8be377b2a5e4495ba26800e6fa13514ab306222d6eb71bcec775d4627d6ce794ffaf3846a80770d8553a02b0
7
- data.tar.gz: da3037a4aca4dbfe7df68ff0134d5249686c93065efa1584d29e9e298246def4f7a5298ff466fe850a22feaf500eb9c8251ba27ce8038ed110126141d81f2bb4
6
+ metadata.gz: fd292190e707acfaf65c5d201fe5b6737dc581df1b941a15c4729265a7521ef5957f93e43f0b9d4d541daa5afe53b2c4e3e9f901734269ce972053c97f50753e
7
+ data.tar.gz: 40eaff455fe12169731ac257a788ff63e1839d484f209b29ab10adfd82d6c74f7dc7f8be8652d0c3ac249692905704c750d1467a2daf8ce00fa19e621d352b50
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-texttospeech_v1beta1
2
2
 
3
+ ### v0.33.0 (2025-01-19)
4
+
5
+ * Regenerated from discovery document revision 20250114
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.32.0 (2024-12-02)
9
+
10
+ * Regenerated from discovery document revision 20241026
11
+ * Regenerated using generator version 0.15.1
12
+
3
13
  ### v0.31.0 (2024-05-19)
4
14
 
5
15
  * 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 is context aware and has a
30
+ # 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,58 @@ 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 is applied. The phrase can be multiple
127
+ # words, such as proper nouns, but shouldn't span the length of the sentence.
128
+ # Corresponds to the JSON property `phrase`
129
+ # @return [String]
130
+ attr_accessor :phrase
131
+
132
+ # The pronunciation of the phrase. This must be in the phonetic encoding
133
+ # specified above.
134
+ # Corresponds to the JSON property `pronunciation`
135
+ # @return [String]
136
+ attr_accessor :pronunciation
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
145
+ @phrase = args[:phrase] if args.key?(:phrase)
146
+ @pronunciation = args[:pronunciation] if args.key?(:pronunciation)
147
+ end
148
+ end
149
+
150
+ # A collection of pronunciation customizations.
151
+ class CustomPronunciations
152
+ include Google::Apis::Core::Hashable
153
+
154
+ # The pronunciation customizations are applied.
155
+ # Corresponds to the JSON property `pronunciations`
156
+ # @return [Array<Google::Apis::TexttospeechV1beta1::CustomPronunciationParams>]
157
+ attr_accessor :pronunciations
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @pronunciations = args[:pronunciations] if args.key?(:pronunciations)
166
+ end
167
+ end
168
+
96
169
  # Description of the custom voice to be synthesized.
97
170
  class CustomVoiceParams
98
171
  include Google::Apis::Core::Hashable
@@ -193,6 +266,25 @@ module Google
193
266
  end
194
267
  end
195
268
 
269
+ # A collection of turns for multi-speaker synthesis.
270
+ class MultiSpeakerMarkup
271
+ include Google::Apis::Core::Hashable
272
+
273
+ # Required. Speaker turns.
274
+ # Corresponds to the JSON property `turns`
275
+ # @return [Array<Google::Apis::TexttospeechV1beta1::Turn>]
276
+ attr_accessor :turns
277
+
278
+ def initialize(**args)
279
+ update!(**args)
280
+ end
281
+
282
+ # Update properties of this object
283
+ def update!(**args)
284
+ @turns = args[:turns] if args.key?(:turns)
285
+ end
286
+ end
287
+
196
288
  # This resource represents a long-running operation that is the result of a
197
289
  # network API call.
198
290
  class Operation
@@ -300,6 +392,16 @@ module Google
300
392
  class SynthesisInput
301
393
  include Google::Apis::Core::Hashable
302
394
 
395
+ # A collection of pronunciation customizations.
396
+ # Corresponds to the JSON property `customPronunciations`
397
+ # @return [Google::Apis::TexttospeechV1beta1::CustomPronunciations]
398
+ attr_accessor :custom_pronunciations
399
+
400
+ # A collection of turns for multi-speaker synthesis.
401
+ # Corresponds to the JSON property `multiSpeakerMarkup`
402
+ # @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup]
403
+ attr_accessor :multi_speaker_markup
404
+
303
405
  # The SSML document to be synthesized. The SSML document must be valid and well-
304
406
  # formed. Otherwise the RPC will fail and return google.rpc.Code.
305
407
  # INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
@@ -319,6 +421,8 @@ module Google
319
421
 
320
422
  # Update properties of this object
321
423
  def update!(**args)
424
+ @custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
425
+ @multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
322
426
  @ssml = args[:ssml] if args.key?(:ssml)
323
427
  @text = args[:text] if args.key?(:text)
324
428
  end
@@ -400,6 +504,11 @@ module Google
400
504
  class SynthesizeSpeechRequest
401
505
  include Google::Apis::Core::Hashable
402
506
 
507
+ # Used for advanced voice options.
508
+ # Corresponds to the JSON property `advancedVoiceOptions`
509
+ # @return [Google::Apis::TexttospeechV1beta1::AdvancedVoiceOptions]
510
+ attr_accessor :advanced_voice_options
511
+
403
512
  # Description of audio data to be synthesized.
404
513
  # Corresponds to the JSON property `audioConfig`
405
514
  # @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
@@ -428,6 +537,7 @@ module Google
428
537
 
429
538
  # Update properties of this object
430
539
  def update!(**args)
540
+ @advanced_voice_options = args[:advanced_voice_options] if args.key?(:advanced_voice_options)
431
541
  @audio_config = args[:audio_config] if args.key?(:audio_config)
432
542
  @enable_time_pointing = args[:enable_time_pointing] if args.key?(:enable_time_pointing)
433
543
  @input = args[:input] if args.key?(:input)
@@ -498,6 +608,32 @@ module Google
498
608
  end
499
609
  end
500
610
 
611
+ # A multi-speaker turn.
612
+ class Turn
613
+ include Google::Apis::Core::Hashable
614
+
615
+ # Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to
616
+ # documentation for available speakers.
617
+ # Corresponds to the JSON property `speaker`
618
+ # @return [String]
619
+ attr_accessor :speaker
620
+
621
+ # Required. The text to speak.
622
+ # Corresponds to the JSON property `text`
623
+ # @return [String]
624
+ attr_accessor :text
625
+
626
+ def initialize(**args)
627
+ update!(**args)
628
+ end
629
+
630
+ # Update properties of this object
631
+ def update!(**args)
632
+ @speaker = args[:speaker] if args.key?(:speaker)
633
+ @text = args[:text] if args.key?(:text)
634
+ end
635
+ end
636
+
501
637
  # Description of a voice supported by the TTS service.
502
638
  class Voice
503
639
  include Google::Apis::Core::Hashable
@@ -536,6 +672,25 @@ module Google
536
672
  end
537
673
  end
538
674
 
675
+ # The configuration of Voice Clone feature.
676
+ class VoiceCloneParams
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # Required. Created by GenerateVoiceCloningKey.
680
+ # Corresponds to the JSON property `voiceCloningKey`
681
+ # @return [String]
682
+ attr_accessor :voice_cloning_key
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
691
+ end
692
+ end
693
+
539
694
  # Description of which voice to use for a synthesis request.
540
695
  class VoiceSelectionParams
541
696
  include Google::Apis::Core::Hashable
@@ -575,6 +730,11 @@ module Google
575
730
  # @return [String]
576
731
  attr_accessor :ssml_gender
577
732
 
733
+ # The configuration of Voice Clone feature.
734
+ # Corresponds to the JSON property `voiceClone`
735
+ # @return [Google::Apis::TexttospeechV1beta1::VoiceCloneParams]
736
+ attr_accessor :voice_clone
737
+
578
738
  def initialize(**args)
579
739
  update!(**args)
580
740
  end
@@ -585,6 +745,7 @@ module Google
585
745
  @language_code = args[:language_code] if args.key?(:language_code)
586
746
  @name = args[:name] if args.key?(:name)
587
747
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
748
+ @voice_clone = args[:voice_clone] if args.key?(:voice_clone)
588
749
  end
589
750
  end
590
751
  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.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.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240419"
25
+ REVISION = "20250114"
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,13 @@
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.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-05-26 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.33.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud Text-to-Speech API V1beta1
82
79
  test_files: []