Skip to content

Commit 809103d

Browse files
feat: Automated regeneration of texttospeech v1 client (googleapis#20511)
Auto-created at 2024-11-03 09:53:47 +0000 using the toys pull request generator.
1 parent d015193 commit 809103d

File tree

5 files changed

+135
-3
lines changed

5 files changed

+135
-3
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319260,6 +319260,9 @@
319260319260
"/texttospeech:v1/ListVoicesResponse": list_voices_response
319261319261
"/texttospeech:v1/ListVoicesResponse/voices": voices
319262319262
"/texttospeech:v1/ListVoicesResponse/voices/voice": voice
319263+
"/texttospeech:v1/MultiSpeakerMarkup": multi_speaker_markup
319264+
"/texttospeech:v1/MultiSpeakerMarkup/turns": turns
319265+
"/texttospeech:v1/MultiSpeakerMarkup/turns/turn": turn
319263319266
"/texttospeech:v1/Operation": operation
319264319267
"/texttospeech:v1/Operation/done": done
319265319268
"/texttospeech:v1/Operation/error": error
@@ -319276,6 +319279,7 @@
319276319279
"/texttospeech:v1/Status/message": message
319277319280
"/texttospeech:v1/SynthesisInput": synthesis_input
319278319281
"/texttospeech:v1/SynthesisInput/customPronunciations": custom_pronunciations
319282+
"/texttospeech:v1/SynthesisInput/multiSpeakerMarkup": multi_speaker_markup
319279319283
"/texttospeech:v1/SynthesisInput/ssml": ssml
319280319284
"/texttospeech:v1/SynthesisInput/text": text
319281319285
"/texttospeech:v1/SynthesizeLongAudioMetadata": synthesize_long_audio_metadata
@@ -319294,6 +319298,9 @@
319294319298
"/texttospeech:v1/SynthesizeSpeechRequest/voice": voice
319295319299
"/texttospeech:v1/SynthesizeSpeechResponse": synthesize_speech_response
319296319300
"/texttospeech:v1/SynthesizeSpeechResponse/audioContent": audio_content
319301+
"/texttospeech:v1/Turn": turn
319302+
"/texttospeech:v1/Turn/speaker": speaker
319303+
"/texttospeech:v1/Turn/text": text
319297319304
"/texttospeech:v1/Voice": voice
319298319305
"/texttospeech:v1/Voice/languageCodes": language_codes
319299319306
"/texttospeech:v1/Voice/languageCodes/language_code": language_code

generated/google-apis-texttospeech_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-texttospeech_v1
22

3+
### v0.34.0 (2024-11-03)
4+
5+
* Regenerated from discovery document revision 20241026
6+
37
### v0.33.0 (2024-10-20)
48

59
* Regenerated from discovery document revision 20241008

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module TexttospeechV1
2626
class AdvancedVoiceOptions
2727
include Google::Apis::Core::Hashable
2828

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
3030
# have higher latency.
3131
# Corresponds to the JSON property `lowLatencyJourneySynthesis`
3232
# @return [Boolean]
@@ -296,6 +296,25 @@ def update!(**args)
296296
end
297297
end
298298

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+
299318
# This resource represents a long-running operation that is the result of a
300319
# network API call.
301320
class Operation
@@ -408,6 +427,11 @@ class SynthesisInput
408427
# @return [Google::Apis::TexttospeechV1::CustomPronunciations]
409428
attr_accessor :custom_pronunciations
410429

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+
411435
# The SSML document to be synthesized. The SSML document must be valid and well-
412436
# formed. Otherwise the RPC will fail and return google.rpc.Code.
413437
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
@@ -428,6 +452,7 @@ def initialize(**args)
428452
# Update properties of this object
429453
def update!(**args)
430454
@custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
455+
@multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
431456
@ssml = args[:ssml] if args.key?(:ssml)
432457
@text = args[:text] if args.key?(:text)
433458
end
@@ -568,6 +593,32 @@ def update!(**args)
568593
end
569594
end
570595

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+
571622
# Description of a voice supported by the TTS service.
572623
class Voice
573624
include Google::Apis::Core::Hashable
@@ -606,6 +657,25 @@ def update!(**args)
606657
end
607658
end
608659

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+
609679
# Description of which voice to use for a synthesis request.
610680
class VoiceSelectionParams
611681
include Google::Apis::Core::Hashable
@@ -645,6 +715,11 @@ class VoiceSelectionParams
645715
# @return [String]
646716
attr_accessor :ssml_gender
647717

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+
648723
def initialize(**args)
649724
update!(**args)
650725
end
@@ -655,6 +730,7 @@ def update!(**args)
655730
@language_code = args[:language_code] if args.key?(:language_code)
656731
@name = args[:name] if args.key?(:name)
657732
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
733+
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
658734
end
659735
end
660736
end

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TexttospeechV1
1818
# Version of the google-apis-texttospeech_v1 gem
19-
GEM_VERSION = "0.33.0"
19+
GEM_VERSION = "0.34.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241008"
25+
REVISION = "20241026"
2626
end
2727
end
2828
end

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class MultiSpeakerMarkup
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class Operation
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -124,12 +130,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124130
include Google::Apis::Core::JsonObjectSupport
125131
end
126132

133+
class Turn
134+
class Representation < Google::Apis::Core::JsonRepresentation; end
135+
136+
include Google::Apis::Core::JsonObjectSupport
137+
end
138+
127139
class Voice
128140
class Representation < Google::Apis::Core::JsonRepresentation; end
129141

130142
include Google::Apis::Core::JsonObjectSupport
131143
end
132144

145+
class VoiceCloneParams
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
133151
class VoiceSelectionParams
134152
class Representation < Google::Apis::Core::JsonRepresentation; end
135153

@@ -218,6 +236,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
218236
end
219237
end
220238

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+
221247
class Operation
222248
# @private
223249
class Representation < Google::Apis::Core::JsonRepresentation
@@ -244,6 +270,8 @@ class SynthesisInput
244270
class Representation < Google::Apis::Core::JsonRepresentation
245271
property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1::CustomPronunciations::Representation
246272

273+
property :multi_speaker_markup, as: 'multiSpeakerMarkup', class: Google::Apis::TexttospeechV1::MultiSpeakerMarkup, decorator: Google::Apis::TexttospeechV1::MultiSpeakerMarkup::Representation
274+
247275
property :ssml, as: 'ssml'
248276
property :text, as: 'text'
249277
end
@@ -292,6 +320,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
292320
end
293321
end
294322

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+
295331
class Voice
296332
# @private
297333
class Representation < Google::Apis::Core::JsonRepresentation
@@ -302,6 +338,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
302338
end
303339
end
304340

341+
class VoiceCloneParams
342+
# @private
343+
class Representation < Google::Apis::Core::JsonRepresentation
344+
property :voice_cloning_key, as: 'voiceCloningKey'
345+
end
346+
end
347+
305348
class VoiceSelectionParams
306349
# @private
307350
class Representation < Google::Apis::Core::JsonRepresentation
@@ -310,6 +353,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
310353
property :language_code, as: 'languageCode'
311354
property :name, as: 'name'
312355
property :ssml_gender, as: 'ssmlGender'
356+
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
357+
313358
end
314359
end
315360
end

0 commit comments

Comments
 (0)