google-apis-texttospeech_v1beta1 0.36.0 → 0.38.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c234b68842aa65484bbc747d8d30b006c9fc7201cc3d8031690a4b487b43a8cc
|
4
|
+
data.tar.gz: 280d3e76c337ebada1c08c8a70d45178a187d6720a30f2812d2a031e8a3adfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84273ea2af55aa82c925f5b8e4fb053bcfff9cae80a8e2a09a5af62c7a008fc4e549879b27489a2f6092b39cff6f3d2ae66981e701bc2f8a7ff9b009bd24f0e9
|
7
|
+
data.tar.gz: 633d6bf7a56a91acb53c3f49f1b6a6db66412c50f4947618f6f1d99c14a1f0f9bf66225c477f5c661e93965bb7f2ae7a02692c049053b41acbad77968b2fb177
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1beta1
|
2
2
|
|
3
|
+
### v0.38.0 (2025-09-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250923
|
6
|
+
|
7
|
+
### v0.37.0 (2025-09-07)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250903
|
10
|
+
|
3
11
|
### v0.36.0 (2025-08-10)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250805
|
@@ -285,6 +285,55 @@ module Google
|
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
288
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
289
|
+
# to two distinct voices in a single synthesis request.
|
290
|
+
class MultiSpeakerVoiceConfig
|
291
|
+
include Google::Apis::Core::Hashable
|
292
|
+
|
293
|
+
# Required. A list of configurations for the voices of the speakers. Exactly two
|
294
|
+
# speaker voice configurations must be provided.
|
295
|
+
# Corresponds to the JSON property `speakerVoiceConfigs`
|
296
|
+
# @return [Array<Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice>]
|
297
|
+
attr_accessor :speaker_voice_configs
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
@speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# Configuration for a single speaker in a Gemini TTS multi-speaker setup.
|
310
|
+
# Enables dialogue between two speakers.
|
311
|
+
class MultispeakerPrebuiltVoice
|
312
|
+
include Google::Apis::Core::Hashable
|
313
|
+
|
314
|
+
# Required. The speaker alias of the voice. This is the user-chosen speaker name
|
315
|
+
# that is used in the multispeaker text input, such as "Speaker1".
|
316
|
+
# Corresponds to the JSON property `speakerAlias`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :speaker_alias
|
319
|
+
|
320
|
+
# Required. The speaker ID of the voice. See https://cloud.google.com/text-to-
|
321
|
+
# speech/docs/gemini-tts#voice_options for available values.
|
322
|
+
# Corresponds to the JSON property `speakerId`
|
323
|
+
# @return [String]
|
324
|
+
attr_accessor :speaker_id
|
325
|
+
|
326
|
+
def initialize(**args)
|
327
|
+
update!(**args)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Update properties of this object
|
331
|
+
def update!(**args)
|
332
|
+
@speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias)
|
333
|
+
@speaker_id = args[:speaker_id] if args.key?(:speaker_id)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
288
337
|
# This resource represents a long-running operation that is the result of a
|
289
338
|
# network API call.
|
290
339
|
class Operation
|
@@ -408,6 +457,14 @@ module Google
|
|
408
457
|
# @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup]
|
409
458
|
attr_accessor :multi_speaker_markup
|
410
459
|
|
460
|
+
# This system instruction is supported only for controllable/promptable voice
|
461
|
+
# models. If this system instruction is used, we pass the unedited text to
|
462
|
+
# Gemini-TTS. Otherwise, a default system instruction is used. AI Studio calls
|
463
|
+
# this system instruction, Style Instructions.
|
464
|
+
# Corresponds to the JSON property `prompt`
|
465
|
+
# @return [String]
|
466
|
+
attr_accessor :prompt
|
467
|
+
|
411
468
|
# The SSML document to be synthesized. The SSML document must be valid and well-
|
412
469
|
# formed. Otherwise the RPC will fail and return google.rpc.Code.
|
413
470
|
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
|
@@ -430,6 +487,7 @@ module Google
|
|
430
487
|
@custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
|
431
488
|
@markup = args[:markup] if args.key?(:markup)
|
432
489
|
@multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
|
490
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
433
491
|
@ssml = args[:ssml] if args.key?(:ssml)
|
434
492
|
@text = args[:text] if args.key?(:text)
|
435
493
|
end
|
@@ -727,6 +785,12 @@ module Google
|
|
727
785
|
# @return [String]
|
728
786
|
attr_accessor :model_name
|
729
787
|
|
788
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
789
|
+
# to two distinct voices in a single synthesis request.
|
790
|
+
# Corresponds to the JSON property `multiSpeakerVoiceConfig`
|
791
|
+
# @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig]
|
792
|
+
attr_accessor :multi_speaker_voice_config
|
793
|
+
|
730
794
|
# The name of the voice. If both the name and the gender are not set, the
|
731
795
|
# service will choose a voice based on the other parameters such as
|
732
796
|
# language_code.
|
@@ -757,6 +821,7 @@ module Google
|
|
757
821
|
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
|
758
822
|
@language_code = args[:language_code] if args.key?(:language_code)
|
759
823
|
@model_name = args[:model_name] if args.key?(:model_name)
|
824
|
+
@multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config)
|
760
825
|
@name = args[:name] if args.key?(:name)
|
761
826
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
762
827
|
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.38.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250923"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,18 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class MultiSpeakerVoiceConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class MultispeakerPrebuiltVoice
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
79
91
|
class Operation
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
93
|
|
@@ -226,6 +238,22 @@ module Google
|
|
226
238
|
end
|
227
239
|
end
|
228
240
|
|
241
|
+
class MultiSpeakerVoiceConfig
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice::Representation
|
245
|
+
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class MultispeakerPrebuiltVoice
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
property :speaker_alias, as: 'speakerAlias'
|
253
|
+
property :speaker_id, as: 'speakerId'
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
229
257
|
class Operation
|
230
258
|
# @private
|
231
259
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -255,6 +283,7 @@ module Google
|
|
255
283
|
property :markup, as: 'markup'
|
256
284
|
property :multi_speaker_markup, as: 'multiSpeakerMarkup', class: Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup, decorator: Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup::Representation
|
257
285
|
|
286
|
+
property :prompt, as: 'prompt'
|
258
287
|
property :ssml, as: 'ssml'
|
259
288
|
property :text, as: 'text'
|
260
289
|
end
|
@@ -348,6 +377,8 @@ module Google
|
|
348
377
|
|
349
378
|
property :language_code, as: 'languageCode'
|
350
379
|
property :model_name, as: 'modelName'
|
380
|
+
property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig::Representation
|
381
|
+
|
351
382
|
property :name, as: 'name'
|
352
383
|
property :ssml_gender, as: 'ssmlGender'
|
353
384
|
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1beta1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceCloneParams::Representation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-texttospeech_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.38.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|