google-apis-texttospeech_v1 0.33.0 → 0.34.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: 44e66db44d98cdcb0811f45564d1094f27217a46db0aca127c33369fd3c87a28
4
- data.tar.gz: 168ba1ad431a5cd820e51a7929fbfa89494bc2c2777e9afe9ede97e28b35ac4c
3
+ metadata.gz: 881d8a76ab548234a4b3d8e52813e4a5ccc660d98c2e9761f7a7a277f6451687
4
+ data.tar.gz: 4a80b1ab02b13ff10ff8cbe5adab3e3074b5fcf36b5a3cf0f21c102e25f7d7e0
5
5
  SHA512:
6
- metadata.gz: ecbf365b4b4770c440e576ee2f9dbc07eeb1432a7fc930c50c3d20395b1bb182c1f15e1b9e54a70a85f483b8877bd48940aeb06c1d175c962c0f06f3bcb18a06
7
- data.tar.gz: db9a11b0658e75ba716c033b8da5ec22bc44fdbd29d947ba707bad4e8bf2156d16730e57810f2546c19a58d8ea54fc155291c95a407657eed046c2a100ea37ef
6
+ metadata.gz: c86f86a081a9fb118e0be29cdba376341839ae2c5a3b2503b5c934fa4ea5b672e67aeaadea8acf1e106ea44f834d4501e91bf18b66c3516aa228f211821b737d
7
+ data.tar.gz: e061b4b5100fceaeeba6a1e95e2aee2a606272684e06a83fee6c245e947dd573aa698705b690efc01a271e2e746419bcbf2a3568c747a3fffe9d1a39ae4099ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.34.0 (2024-11-03)
4
+
5
+ * Regenerated from discovery document revision 20241026
6
+
3
7
  ### v0.33.0 (2024-10-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20241008
@@ -26,7 +26,7 @@ module Google
26
26
  class AdvancedVoiceOptions
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Only for Jounrney voices. If false, the synthesis will be context aware and
29
+ # Only for Journey voices. If false, the synthesis will be context aware and
30
30
  # have higher latency.
31
31
  # Corresponds to the JSON property `lowLatencyJourneySynthesis`
32
32
  # @return [Boolean]
@@ -296,6 +296,25 @@ module Google
296
296
  end
297
297
  end
298
298
 
299
+ # A collection of turns for multi-speaker synthesis.
300
+ class MultiSpeakerMarkup
301
+ include Google::Apis::Core::Hashable
302
+
303
+ # Required. Speaker turns.
304
+ # Corresponds to the JSON property `turns`
305
+ # @return [Array<Google::Apis::TexttospeechV1::Turn>]
306
+ attr_accessor :turns
307
+
308
+ def initialize(**args)
309
+ update!(**args)
310
+ end
311
+
312
+ # Update properties of this object
313
+ def update!(**args)
314
+ @turns = args[:turns] if args.key?(:turns)
315
+ end
316
+ end
317
+
299
318
  # This resource represents a long-running operation that is the result of a
300
319
  # network API call.
301
320
  class Operation
@@ -408,6 +427,11 @@ module Google
408
427
  # @return [Google::Apis::TexttospeechV1::CustomPronunciations]
409
428
  attr_accessor :custom_pronunciations
410
429
 
430
+ # A collection of turns for multi-speaker synthesis.
431
+ # Corresponds to the JSON property `multiSpeakerMarkup`
432
+ # @return [Google::Apis::TexttospeechV1::MultiSpeakerMarkup]
433
+ attr_accessor :multi_speaker_markup
434
+
411
435
  # The SSML document to be synthesized. The SSML document must be valid and well-
412
436
  # formed. Otherwise the RPC will fail and return google.rpc.Code.
413
437
  # INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
@@ -428,6 +452,7 @@ module Google
428
452
  # Update properties of this object
429
453
  def update!(**args)
430
454
  @custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
455
+ @multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
431
456
  @ssml = args[:ssml] if args.key?(:ssml)
432
457
  @text = args[:text] if args.key?(:text)
433
458
  end
@@ -568,6 +593,32 @@ module Google
568
593
  end
569
594
  end
570
595
 
596
+ # A Multi-speaker turn.
597
+ class Turn
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to
601
+ # documentation for available speakers.
602
+ # Corresponds to the JSON property `speaker`
603
+ # @return [String]
604
+ attr_accessor :speaker
605
+
606
+ # Required. The text to speak.
607
+ # Corresponds to the JSON property `text`
608
+ # @return [String]
609
+ attr_accessor :text
610
+
611
+ def initialize(**args)
612
+ update!(**args)
613
+ end
614
+
615
+ # Update properties of this object
616
+ def update!(**args)
617
+ @speaker = args[:speaker] if args.key?(:speaker)
618
+ @text = args[:text] if args.key?(:text)
619
+ end
620
+ end
621
+
571
622
  # Description of a voice supported by the TTS service.
572
623
  class Voice
573
624
  include Google::Apis::Core::Hashable
@@ -606,6 +657,25 @@ module Google
606
657
  end
607
658
  end
608
659
 
660
+ # The configuration of Voice Clone feature.
661
+ class VoiceCloneParams
662
+ include Google::Apis::Core::Hashable
663
+
664
+ # Required. Created by GenerateVoiceCloningKey.
665
+ # Corresponds to the JSON property `voiceCloningKey`
666
+ # @return [String]
667
+ attr_accessor :voice_cloning_key
668
+
669
+ def initialize(**args)
670
+ update!(**args)
671
+ end
672
+
673
+ # Update properties of this object
674
+ def update!(**args)
675
+ @voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
676
+ end
677
+ end
678
+
609
679
  # Description of which voice to use for a synthesis request.
610
680
  class VoiceSelectionParams
611
681
  include Google::Apis::Core::Hashable
@@ -645,6 +715,11 @@ module Google
645
715
  # @return [String]
646
716
  attr_accessor :ssml_gender
647
717
 
718
+ # The configuration of Voice Clone feature.
719
+ # Corresponds to the JSON property `voiceClone`
720
+ # @return [Google::Apis::TexttospeechV1::VoiceCloneParams]
721
+ attr_accessor :voice_clone
722
+
648
723
  def initialize(**args)
649
724
  update!(**args)
650
725
  end
@@ -655,6 +730,7 @@ module Google
655
730
  @language_code = args[:language_code] if args.key?(:language_code)
656
731
  @name = args[:name] if args.key?(:name)
657
732
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
733
+ @voice_clone = args[:voice_clone] if args.key?(:voice_clone)
658
734
  end
659
735
  end
660
736
  end
@@ -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.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241008"
25
+ REVISION = "20241026"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class MultiSpeakerMarkup
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Operation
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -124,12 +130,24 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class Turn
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class Voice
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
130
142
  include Google::Apis::Core::JsonObjectSupport
131
143
  end
132
144
 
145
+ class VoiceCloneParams
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
133
151
  class VoiceSelectionParams
134
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
153
 
@@ -218,6 +236,14 @@ module Google
218
236
  end
219
237
  end
220
238
 
239
+ class MultiSpeakerMarkup
240
+ # @private
241
+ class Representation < Google::Apis::Core::JsonRepresentation
242
+ collection :turns, as: 'turns', class: Google::Apis::TexttospeechV1::Turn, decorator: Google::Apis::TexttospeechV1::Turn::Representation
243
+
244
+ end
245
+ end
246
+
221
247
  class Operation
222
248
  # @private
223
249
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -244,6 +270,8 @@ module Google
244
270
  class Representation < Google::Apis::Core::JsonRepresentation
245
271
  property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1::CustomPronunciations::Representation
246
272
 
273
+ property :multi_speaker_markup, as: 'multiSpeakerMarkup', class: Google::Apis::TexttospeechV1::MultiSpeakerMarkup, decorator: Google::Apis::TexttospeechV1::MultiSpeakerMarkup::Representation
274
+
247
275
  property :ssml, as: 'ssml'
248
276
  property :text, as: 'text'
249
277
  end
@@ -292,6 +320,14 @@ module Google
292
320
  end
293
321
  end
294
322
 
323
+ class Turn
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :speaker, as: 'speaker'
327
+ property :text, as: 'text'
328
+ end
329
+ end
330
+
295
331
  class Voice
296
332
  # @private
297
333
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -302,6 +338,13 @@ module Google
302
338
  end
303
339
  end
304
340
 
341
+ class VoiceCloneParams
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ property :voice_cloning_key, as: 'voiceCloningKey'
345
+ end
346
+ end
347
+
305
348
  class VoiceSelectionParams
306
349
  # @private
307
350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -310,6 +353,8 @@ module Google
310
353
  property :language_code, as: 'languageCode'
311
354
  property :name, as: 'name'
312
355
  property :ssml_gender, as: 'ssmlGender'
356
+ property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
357
+
313
358
  end
314
359
  end
315
360
  end
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.33.0
4
+ version: 0.34.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-10-27 00:00:00.000000000 Z
11
+ date: 2024-11-03 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.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.34.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: []