google-apis-texttospeech_v1beta1 0.37.0 → 0.39.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: 04aebfcb5349032ddb9f887adea59ff29615ba4cb3657088d05e04b5f2a89be8
4
- data.tar.gz: 579d230cdead14bb4b5cace0c318bf396e1b80badba5004b42edb650cb8472aa
3
+ metadata.gz: d613030968e0c592502bfdf604b3f498cb6a80a60e1e0546e624b18573858a15
4
+ data.tar.gz: c2c22e132660ed1a79fbcb1cb7cfc2f8ca275f6ab76b7ff183a63d4b2259cb4e
5
5
  SHA512:
6
- metadata.gz: 8190e4e9d4afb72f56b7b3a3d050963caaa71ac949e6e90e491e259e69d4caaf5b2782588ce8533d11e6a80340126f84fdd5172bf38350758b3c2e88c3818d75
7
- data.tar.gz: 22cac5579bc76ef312017ff3af75fca34a4ececca69fba6819deea7dd66cf180da9a1cf02edcbe7fa31d1c37003faf0753a38e534d1ebb4841f306227a02bc26
6
+ metadata.gz: 293200781855a900d1c61a98c36ae2029e9ebe83becf0b8c0800e0a424381e8e71aea998b34ace05ad2ddec0109a9b789736948636e5d0904a9161500717644d
7
+ data.tar.gz: 770a424ae3b4ab242417c1fea3ae52e2c631374d1c21b1a850deda3dab97a0a11d24ece00535ef0b794171db5cf2f72aafb015caa2890f747153341052a1d6ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-texttospeech_v1beta1
2
2
 
3
+ ### v0.39.0 (2025-10-12)
4
+
5
+ * Regenerated from discovery document revision 20251001
6
+
7
+ ### v0.38.0 (2025-09-28)
8
+
9
+ * Regenerated from discovery document revision 20250923
10
+
3
11
  ### v0.37.0 (2025-09-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20250903
@@ -236,6 +236,13 @@ module Google
236
236
  # @return [Array<Google::Apis::TexttospeechV1beta1::Operation>]
237
237
  attr_accessor :operations
238
238
 
239
+ # Unordered list. Unreachable resources. Populated when the request sets `
240
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
241
+ # when attempting to list all resources across all supported locations.
242
+ # Corresponds to the JSON property `unreachable`
243
+ # @return [Array<String>]
244
+ attr_accessor :unreachable
245
+
239
246
  def initialize(**args)
240
247
  update!(**args)
241
248
  end
@@ -244,6 +251,7 @@ module Google
244
251
  def update!(**args)
245
252
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
246
253
  @operations = args[:operations] if args.key?(:operations)
254
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
247
255
  end
248
256
  end
249
257
 
@@ -285,6 +293,55 @@ module Google
285
293
  end
286
294
  end
287
295
 
296
+ # Configuration for a multi-speaker text-to-speech setup. Enables the use of up
297
+ # to two distinct voices in a single synthesis request.
298
+ class MultiSpeakerVoiceConfig
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Required. A list of configurations for the voices of the speakers. Exactly two
302
+ # speaker voice configurations must be provided.
303
+ # Corresponds to the JSON property `speakerVoiceConfigs`
304
+ # @return [Array<Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice>]
305
+ attr_accessor :speaker_voice_configs
306
+
307
+ def initialize(**args)
308
+ update!(**args)
309
+ end
310
+
311
+ # Update properties of this object
312
+ def update!(**args)
313
+ @speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs)
314
+ end
315
+ end
316
+
317
+ # Configuration for a single speaker in a Gemini TTS multi-speaker setup.
318
+ # Enables dialogue between two speakers.
319
+ class MultispeakerPrebuiltVoice
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # Required. The speaker alias of the voice. This is the user-chosen speaker name
323
+ # that is used in the multispeaker text input, such as "Speaker1".
324
+ # Corresponds to the JSON property `speakerAlias`
325
+ # @return [String]
326
+ attr_accessor :speaker_alias
327
+
328
+ # Required. The speaker ID of the voice. See https://cloud.google.com/text-to-
329
+ # speech/docs/gemini-tts#voice_options for available values.
330
+ # Corresponds to the JSON property `speakerId`
331
+ # @return [String]
332
+ attr_accessor :speaker_id
333
+
334
+ def initialize(**args)
335
+ update!(**args)
336
+ end
337
+
338
+ # Update properties of this object
339
+ def update!(**args)
340
+ @speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias)
341
+ @speaker_id = args[:speaker_id] if args.key?(:speaker_id)
342
+ end
343
+ end
344
+
288
345
  # This resource represents a long-running operation that is the result of a
289
346
  # network API call.
290
347
  class Operation
@@ -408,9 +465,10 @@ module Google
408
465
  # @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup]
409
466
  attr_accessor :multi_speaker_markup
410
467
 
411
- # This is system instruction supported only for controllable voice models. If
412
- # used, we will pass text to Flash TTS as is. Can only used with Flash TTS. What
413
- # AI Studio calls Style Instructions.
468
+ # This system instruction is supported only for controllable/promptable voice
469
+ # models. If this system instruction is used, we pass the unedited text to
470
+ # Gemini-TTS. Otherwise, a default system instruction is used. AI Studio calls
471
+ # this system instruction, Style Instructions.
414
472
  # Corresponds to the JSON property `prompt`
415
473
  # @return [String]
416
474
  attr_accessor :prompt
@@ -735,6 +793,12 @@ module Google
735
793
  # @return [String]
736
794
  attr_accessor :model_name
737
795
 
796
+ # Configuration for a multi-speaker text-to-speech setup. Enables the use of up
797
+ # to two distinct voices in a single synthesis request.
798
+ # Corresponds to the JSON property `multiSpeakerVoiceConfig`
799
+ # @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig]
800
+ attr_accessor :multi_speaker_voice_config
801
+
738
802
  # The name of the voice. If both the name and the gender are not set, the
739
803
  # service will choose a voice based on the other parameters such as
740
804
  # language_code.
@@ -765,6 +829,7 @@ module Google
765
829
  @custom_voice = args[:custom_voice] if args.key?(:custom_voice)
766
830
  @language_code = args[:language_code] if args.key?(:language_code)
767
831
  @model_name = args[:model_name] if args.key?(:model_name)
832
+ @multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config)
768
833
  @name = args[:name] if args.key?(:name)
769
834
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
770
835
  @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.37.0"
19
+ GEM_VERSION = "0.39.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 = "20250903"
25
+ REVISION = "20251001"
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
 
@@ -207,6 +219,7 @@ module Google
207
219
  property :next_page_token, as: 'nextPageToken'
208
220
  collection :operations, as: 'operations', class: Google::Apis::TexttospeechV1beta1::Operation, decorator: Google::Apis::TexttospeechV1beta1::Operation::Representation
209
221
 
222
+ collection :unreachable, as: 'unreachable'
210
223
  end
211
224
  end
212
225
 
@@ -226,6 +239,22 @@ module Google
226
239
  end
227
240
  end
228
241
 
242
+ class MultiSpeakerVoiceConfig
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice::Representation
246
+
247
+ end
248
+ end
249
+
250
+ class MultispeakerPrebuiltVoice
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :speaker_alias, as: 'speakerAlias'
254
+ property :speaker_id, as: 'speakerId'
255
+ end
256
+ end
257
+
229
258
  class Operation
230
259
  # @private
231
260
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -349,6 +378,8 @@ module Google
349
378
 
350
379
  property :language_code, as: 'languageCode'
351
380
  property :model_name, as: 'modelName'
381
+ property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig::Representation
382
+
352
383
  property :name, as: 'name'
353
384
  property :ssml_gender, as: 'ssmlGender'
354
385
  property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1beta1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceCloneParams::Representation
@@ -125,6 +125,13 @@ module Google
125
125
  # The standard list page size.
126
126
  # @param [String] page_token
127
127
  # The standard list page token.
128
+ # @param [Boolean] return_partial_success
129
+ # When set to `true`, operations that are reachable are returned as normal, and
130
+ # those that are unreachable are returned in the [ListOperationsResponse.
131
+ # unreachable] field. This can only be `true` when reading across collections e.
132
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
133
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
134
+ # explicitly documented otherwise in service or product specific documentation.
128
135
  # @param [String] fields
129
136
  # Selector specifying which fields to include in a partial response.
130
137
  # @param [String] quota_user
@@ -142,7 +149,7 @@ module Google
142
149
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
150
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
151
  # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
152
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
146
153
  command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
147
154
  command.response_representation = Google::Apis::TexttospeechV1beta1::ListOperationsResponse::Representation
148
155
  command.response_class = Google::Apis::TexttospeechV1beta1::ListOperationsResponse
@@ -150,6 +157,7 @@ module Google
150
157
  command.query['filter'] = filter unless filter.nil?
151
158
  command.query['pageSize'] = page_size unless page_size.nil?
152
159
  command.query['pageToken'] = page_token unless page_token.nil?
160
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
153
161
  command.query['fields'] = fields unless fields.nil?
154
162
  command.query['quotaUser'] = quota_user unless quota_user.nil?
155
163
  execute_or_queue_command(command, &block)
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.37.0
4
+ version: 0.39.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.37.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.39.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: