google-apis-texttospeech_v1 0.41.0 → 0.43.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: 04475147fc85e6a1ae372176e9bcc4955fce00a212c04244855a80fd76be7cfd
4
- data.tar.gz: 10f0b5037046d1498f0948b0d5dda40f6b88ee1da9e53aa88c23034a47fc3186
3
+ metadata.gz: 78398c5ec7463f015b35eda5334b84c6003bff087f9efd772add8fee29e075e5
4
+ data.tar.gz: 7b573d0ee58b5b437e4776a4b25f1fb1a43c8a704b8cca2673795c622123ed38
5
5
  SHA512:
6
- metadata.gz: a09a99209df5ba6e2452adf644d7b46a7efcf587e6d4806daedf759160c1d130d2e254e38a8eb2c11c34ef3ac3eacb849b6ad7a9542da251db8075e6d6336c87
7
- data.tar.gz: 744fae60f1c721eceac13e4b69c4e9a7d99d228f03721c80610ecdc568911eb7a81d97f4d58ea897e2a046c3d25fd1941006c0134d0c1c3f0b194ac4a0a70460
6
+ metadata.gz: f9821d6d1a2fbd60a7a14215ea22c9fcc288e9c289f9bd3e67234411d4eca03ca376e121473ea4bcc3ba3a96d36fbe987df88bf963fb403009398fa15475a90d
7
+ data.tar.gz: 2d15e4126374c6a49b95d0bc24fef63d02323e74752d069facc9dfe6dd44ad52570351855732e2a192f7b5dd245b328ea6e9cfe56d8752b2d3b6a96b8a072b7b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.43.0 (2025-10-19)
4
+
5
+ * Regenerated from discovery document revision 20251014
6
+
7
+ ### v0.42.0 (2025-09-28)
8
+
9
+ * Regenerated from discovery document revision 20250923
10
+
3
11
  ### v0.41.0 (2025-09-21)
4
12
 
5
13
  * Regenerated from discovery document revision 20250912
@@ -33,6 +33,14 @@ module Google
33
33
  attr_accessor :low_latency_journey_synthesis
34
34
  alias_method :low_latency_journey_synthesis?, :low_latency_journey_synthesis
35
35
 
36
+ # Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
37
+ # supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
38
+ # Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT.
39
+ # Corresponds to the JSON property `relaxSafetyFilters`
40
+ # @return [Boolean]
41
+ attr_accessor :relax_safety_filters
42
+ alias_method :relax_safety_filters?, :relax_safety_filters
43
+
36
44
  def initialize(**args)
37
45
  update!(**args)
38
46
  end
@@ -40,6 +48,7 @@ module Google
40
48
  # Update properties of this object
41
49
  def update!(**args)
42
50
  @low_latency_journey_synthesis = args[:low_latency_journey_synthesis] if args.key?(:low_latency_journey_synthesis)
51
+ @relax_safety_filters = args[:relax_safety_filters] if args.key?(:relax_safety_filters)
43
52
  end
44
53
  end
45
54
 
@@ -265,6 +274,13 @@ module Google
265
274
  # @return [Array<Google::Apis::TexttospeechV1::Operation>]
266
275
  attr_accessor :operations
267
276
 
277
+ # Unordered list. Unreachable resources. Populated when the request sets `
278
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
279
+ # when attempting to list all resources across all supported locations.
280
+ # Corresponds to the JSON property `unreachable`
281
+ # @return [Array<String>]
282
+ attr_accessor :unreachable
283
+
268
284
  def initialize(**args)
269
285
  update!(**args)
270
286
  end
@@ -273,6 +289,7 @@ module Google
273
289
  def update!(**args)
274
290
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
275
291
  @operations = args[:operations] if args.key?(:operations)
292
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
276
293
  end
277
294
  end
278
295
 
@@ -314,6 +331,55 @@ module Google
314
331
  end
315
332
  end
316
333
 
334
+ # Configuration for a multi-speaker text-to-speech setup. Enables the use of up
335
+ # to two distinct voices in a single synthesis request.
336
+ class MultiSpeakerVoiceConfig
337
+ include Google::Apis::Core::Hashable
338
+
339
+ # Required. A list of configurations for the voices of the speakers. Exactly two
340
+ # speaker voice configurations must be provided.
341
+ # Corresponds to the JSON property `speakerVoiceConfigs`
342
+ # @return [Array<Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice>]
343
+ attr_accessor :speaker_voice_configs
344
+
345
+ def initialize(**args)
346
+ update!(**args)
347
+ end
348
+
349
+ # Update properties of this object
350
+ def update!(**args)
351
+ @speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs)
352
+ end
353
+ end
354
+
355
+ # Configuration for a single speaker in a Gemini TTS multi-speaker setup.
356
+ # Enables dialogue between two speakers.
357
+ class MultispeakerPrebuiltVoice
358
+ include Google::Apis::Core::Hashable
359
+
360
+ # Required. The speaker alias of the voice. This is the user-chosen speaker name
361
+ # that is used in the multispeaker text input, such as "Speaker1".
362
+ # Corresponds to the JSON property `speakerAlias`
363
+ # @return [String]
364
+ attr_accessor :speaker_alias
365
+
366
+ # Required. The speaker ID of the voice. See https://cloud.google.com/text-to-
367
+ # speech/docs/gemini-tts#voice_options for available values.
368
+ # Corresponds to the JSON property `speakerId`
369
+ # @return [String]
370
+ attr_accessor :speaker_id
371
+
372
+ def initialize(**args)
373
+ update!(**args)
374
+ end
375
+
376
+ # Update properties of this object
377
+ def update!(**args)
378
+ @speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias)
379
+ @speaker_id = args[:speaker_id] if args.key?(:speaker_id)
380
+ end
381
+ end
382
+
317
383
  # This resource represents a long-running operation that is the result of a
318
384
  # network API call.
319
385
  class Operation
@@ -720,6 +786,12 @@ module Google
720
786
  # @return [String]
721
787
  attr_accessor :model_name
722
788
 
789
+ # Configuration for a multi-speaker text-to-speech setup. Enables the use of up
790
+ # to two distinct voices in a single synthesis request.
791
+ # Corresponds to the JSON property `multiSpeakerVoiceConfig`
792
+ # @return [Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig]
793
+ attr_accessor :multi_speaker_voice_config
794
+
723
795
  # The name of the voice. If both the name and the gender are not set, the
724
796
  # service will choose a voice based on the other parameters such as
725
797
  # language_code.
@@ -750,6 +822,7 @@ module Google
750
822
  @custom_voice = args[:custom_voice] if args.key?(:custom_voice)
751
823
  @language_code = args[:language_code] if args.key?(:language_code)
752
824
  @model_name = args[:model_name] if args.key?(:model_name)
825
+ @multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config)
753
826
  @name = args[:name] if args.key?(:name)
754
827
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
755
828
  @voice_clone = args[:voice_clone] if args.key?(:voice_clone)
@@ -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.41.0"
19
+ GEM_VERSION = "0.43.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 = "20250912"
25
+ REVISION = "20251014"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,18 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class MultiSpeakerVoiceConfig
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class MultispeakerPrebuiltVoice
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class Operation
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -158,6 +170,7 @@ module Google
158
170
  # @private
159
171
  class Representation < Google::Apis::Core::JsonRepresentation
160
172
  property :low_latency_journey_synthesis, as: 'lowLatencyJourneySynthesis'
173
+ property :relax_safety_filters, as: 'relaxSafetyFilters'
161
174
  end
162
175
  end
163
176
 
@@ -225,6 +238,7 @@ module Google
225
238
  property :next_page_token, as: 'nextPageToken'
226
239
  collection :operations, as: 'operations', class: Google::Apis::TexttospeechV1::Operation, decorator: Google::Apis::TexttospeechV1::Operation::Representation
227
240
 
241
+ collection :unreachable, as: 'unreachable'
228
242
  end
229
243
  end
230
244
 
@@ -244,6 +258,22 @@ module Google
244
258
  end
245
259
  end
246
260
 
261
+ class MultiSpeakerVoiceConfig
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice::Representation
265
+
266
+ end
267
+ end
268
+
269
+ class MultispeakerPrebuiltVoice
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :speaker_alias, as: 'speakerAlias'
273
+ property :speaker_id, as: 'speakerId'
274
+ end
275
+ end
276
+
247
277
  class Operation
248
278
  # @private
249
279
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -354,6 +384,8 @@ module Google
354
384
 
355
385
  property :language_code, as: 'languageCode'
356
386
  property :model_name, as: 'modelName'
387
+ property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig::Representation
388
+
357
389
  property :name, as: 'name'
358
390
  property :ssml_gender, as: 'ssmlGender'
359
391
  property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
@@ -198,6 +198,13 @@ module Google
198
198
  # The standard list page size.
199
199
  # @param [String] page_token
200
200
  # The standard list page token.
201
+ # @param [Boolean] return_partial_success
202
+ # When set to `true`, operations that are reachable are returned as normal, and
203
+ # those that are unreachable are returned in the [ListOperationsResponse.
204
+ # unreachable] field. This can only be `true` when reading across collections e.
205
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
206
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
207
+ # explicitly documented otherwise in service or product specific documentation.
201
208
  # @param [String] fields
202
209
  # Selector specifying which fields to include in a partial response.
203
210
  # @param [String] quota_user
@@ -215,7 +222,7 @@ module Google
215
222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
218
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
225
+ 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)
219
226
  command = make_simple_command(:get, 'v1/{+name}/operations', options)
220
227
  command.response_representation = Google::Apis::TexttospeechV1::ListOperationsResponse::Representation
221
228
  command.response_class = Google::Apis::TexttospeechV1::ListOperationsResponse
@@ -223,6 +230,7 @@ module Google
223
230
  command.query['filter'] = filter unless filter.nil?
224
231
  command.query['pageSize'] = page_size unless page_size.nil?
225
232
  command.query['pageToken'] = page_token unless page_token.nil?
233
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
226
234
  command.query['fields'] = fields unless fields.nil?
227
235
  command.query['quotaUser'] = quota_user unless quota_user.nil?
228
236
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-texttospeech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.0
4
+ version: 0.43.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_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.41.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.43.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
62
62
  rdoc_options: []
63
63
  require_paths: