google-apis-texttospeech_v1 0.32.0 → 0.33.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: f700a3f8560abf9b80877dcecb6a3402a3a718101302ddc2b37f1c3b3e4e1c31
4
- data.tar.gz: 38839ecd1730441dc50849d11dd9ce97b590443ec73a8f8e90188259c3515503
3
+ metadata.gz: 44e66db44d98cdcb0811f45564d1094f27217a46db0aca127c33369fd3c87a28
4
+ data.tar.gz: 168ba1ad431a5cd820e51a7929fbfa89494bc2c2777e9afe9ede97e28b35ac4c
5
5
  SHA512:
6
- metadata.gz: 4ab393a0727618b3c0bc6d356a9e833e99261148861e2d2af150a4a94716ae9a23dcaaf69f46054a0b2f94c1c32b4b8882e9603192aac8dab3278479bc3dee35
7
- data.tar.gz: e0ce9aa975b440cd21cc590ab07897ecc851bc8b8e480776d83a031e1525fca62c94be8c28c41895f0c3cb4b4caf6e7c677f0ecdc67917a552f35a7fe2f15aea
6
+ metadata.gz: ecbf365b4b4770c440e576ee2f9dbc07eeb1432a7fc930c50c3d20395b1bb182c1f15e1b9e54a70a85f483b8877bd48940aeb06c1d175c962c0f06f3bcb18a06
7
+ data.tar.gz: db9a11b0658e75ba716c033b8da5ec22bc44fdbd29d947ba707bad4e8bf2156d16730e57810f2546c19a58d8ea54fc155291c95a407657eed046c2a100ea37ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.33.0 (2024-10-20)
4
+
5
+ * Regenerated from discovery document revision 20241008
6
+
3
7
  ### v0.32.0 (2024-10-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20241001
@@ -221,68 +221,6 @@ module Google
221
221
  end
222
222
  end
223
223
 
224
- # Request message for the `GenerateVoiceCloningKey` method.
225
- class GenerateVoiceCloningKeyRequest
226
- include Google::Apis::Core::Hashable
227
-
228
- # Required. The script used for the voice talent statement. The script will be
229
- # provided to the caller through other channels. It must be returned unchanged
230
- # in this field.
231
- # Corresponds to the JSON property `consentScript`
232
- # @return [String]
233
- attr_accessor :consent_script
234
-
235
- # Required. The language of the supplied audio as a [BCP-47](https://www.rfc-
236
- # editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language
237
- # Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of
238
- # the currently supported language codes.
239
- # Corresponds to the JSON property `languageCode`
240
- # @return [String]
241
- attr_accessor :language_code
242
-
243
- # Holds audio content and config.
244
- # Corresponds to the JSON property `referenceAudio`
245
- # @return [Google::Apis::TexttospeechV1::InputAudio]
246
- attr_accessor :reference_audio
247
-
248
- # Holds audio content and config.
249
- # Corresponds to the JSON property `voiceTalentConsent`
250
- # @return [Google::Apis::TexttospeechV1::InputAudio]
251
- attr_accessor :voice_talent_consent
252
-
253
- def initialize(**args)
254
- update!(**args)
255
- end
256
-
257
- # Update properties of this object
258
- def update!(**args)
259
- @consent_script = args[:consent_script] if args.key?(:consent_script)
260
- @language_code = args[:language_code] if args.key?(:language_code)
261
- @reference_audio = args[:reference_audio] if args.key?(:reference_audio)
262
- @voice_talent_consent = args[:voice_talent_consent] if args.key?(:voice_talent_consent)
263
- end
264
- end
265
-
266
- # Response message for the `GenerateVoiceCloningKey` method.
267
- class GenerateVoiceCloningKeyResponse
268
- include Google::Apis::Core::Hashable
269
-
270
- # The voice clone key. Use it in the SynthesizeSpeechRequest by setting [voice.
271
- # voice_clone.voice_cloning_key].
272
- # Corresponds to the JSON property `voiceCloningKey`
273
- # @return [String]
274
- attr_accessor :voice_cloning_key
275
-
276
- def initialize(**args)
277
- update!(**args)
278
- end
279
-
280
- # Update properties of this object
281
- def update!(**args)
282
- @voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
283
- end
284
- end
285
-
286
224
  # Metadata for response returned by the `SynthesizeLongAudio` method.
287
225
  class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
288
226
  include Google::Apis::Core::Hashable
@@ -314,60 +252,6 @@ module Google
314
252
  end
315
253
  end
316
254
 
317
- # Holds audio content and config.
318
- class InputAudio
319
- include Google::Apis::Core::Hashable
320
-
321
- # Description of inputted audio data.
322
- # Corresponds to the JSON property `audioConfig`
323
- # @return [Google::Apis::TexttospeechV1::InputAudioConfig]
324
- attr_accessor :audio_config
325
-
326
- # Required. The audio data bytes encoded as specified in `InputAudioConfig`.
327
- # Note: as with all bytes fields, proto buffers use a pure binary representation,
328
- # whereas JSON representations use base64. Audio samples should be between 5-25
329
- # seconds in length.
330
- # Corresponds to the JSON property `content`
331
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
332
- # @return [String]
333
- attr_accessor :content
334
-
335
- def initialize(**args)
336
- update!(**args)
337
- end
338
-
339
- # Update properties of this object
340
- def update!(**args)
341
- @audio_config = args[:audio_config] if args.key?(:audio_config)
342
- @content = args[:content] if args.key?(:content)
343
- end
344
- end
345
-
346
- # Description of inputted audio data.
347
- class InputAudioConfig
348
- include Google::Apis::Core::Hashable
349
-
350
- # Required. The format of the audio byte stream.
351
- # Corresponds to the JSON property `audioEncoding`
352
- # @return [String]
353
- attr_accessor :audio_encoding
354
-
355
- # Required. The sample rate (in hertz) for this audio.
356
- # Corresponds to the JSON property `sampleRateHertz`
357
- # @return [Fixnum]
358
- attr_accessor :sample_rate_hertz
359
-
360
- def initialize(**args)
361
- update!(**args)
362
- end
363
-
364
- # Update properties of this object
365
- def update!(**args)
366
- @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
367
- @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
368
- end
369
- end
370
-
371
255
  # The response message for Operations.ListOperations.
372
256
  class ListOperationsResponse
373
257
  include Google::Apis::Core::Hashable
@@ -722,25 +606,6 @@ module Google
722
606
  end
723
607
  end
724
608
 
725
- # The configuration of Voice Clone feature.
726
- class VoiceCloneParams
727
- include Google::Apis::Core::Hashable
728
-
729
- # Required. Created by GenerateVoiceCloningKey.
730
- # Corresponds to the JSON property `voiceCloningKey`
731
- # @return [String]
732
- attr_accessor :voice_cloning_key
733
-
734
- def initialize(**args)
735
- update!(**args)
736
- end
737
-
738
- # Update properties of this object
739
- def update!(**args)
740
- @voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
741
- end
742
- end
743
-
744
609
  # Description of which voice to use for a synthesis request.
745
610
  class VoiceSelectionParams
746
611
  include Google::Apis::Core::Hashable
@@ -780,11 +645,6 @@ module Google
780
645
  # @return [String]
781
646
  attr_accessor :ssml_gender
782
647
 
783
- # The configuration of Voice Clone feature.
784
- # Corresponds to the JSON property `voiceClone`
785
- # @return [Google::Apis::TexttospeechV1::VoiceCloneParams]
786
- attr_accessor :voice_clone
787
-
788
648
  def initialize(**args)
789
649
  update!(**args)
790
650
  end
@@ -795,7 +655,6 @@ module Google
795
655
  @language_code = args[:language_code] if args.key?(:language_code)
796
656
  @name = args[:name] if args.key?(:name)
797
657
  @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
798
- @voice_clone = args[:voice_clone] if args.key?(:voice_clone)
799
658
  end
800
659
  end
801
660
  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.32.0"
19
+ GEM_VERSION = "0.33.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 = "20241001"
25
+ REVISION = "20241008"
26
26
  end
27
27
  end
28
28
  end
@@ -64,36 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class GenerateVoiceCloningKeyRequest
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class GenerateVoiceCloningKeyResponse
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
67
  class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
80
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
69
 
82
70
  include Google::Apis::Core::JsonObjectSupport
83
71
  end
84
72
 
85
- class InputAudio
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class InputAudioConfig
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
73
  class ListOperationsResponse
98
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
75
 
@@ -154,12 +130,6 @@ module Google
154
130
  include Google::Apis::Core::JsonObjectSupport
155
131
  end
156
132
 
157
- class VoiceCloneParams
158
- class Representation < Google::Apis::Core::JsonRepresentation; end
159
-
160
- include Google::Apis::Core::JsonObjectSupport
161
- end
162
-
163
133
  class VoiceSelectionParams
164
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
135
 
@@ -222,25 +192,6 @@ module Google
222
192
  end
223
193
  end
224
194
 
225
- class GenerateVoiceCloningKeyRequest
226
- # @private
227
- class Representation < Google::Apis::Core::JsonRepresentation
228
- property :consent_script, as: 'consentScript'
229
- property :language_code, as: 'languageCode'
230
- property :reference_audio, as: 'referenceAudio', class: Google::Apis::TexttospeechV1::InputAudio, decorator: Google::Apis::TexttospeechV1::InputAudio::Representation
231
-
232
- property :voice_talent_consent, as: 'voiceTalentConsent', class: Google::Apis::TexttospeechV1::InputAudio, decorator: Google::Apis::TexttospeechV1::InputAudio::Representation
233
-
234
- end
235
- end
236
-
237
- class GenerateVoiceCloningKeyResponse
238
- # @private
239
- class Representation < Google::Apis::Core::JsonRepresentation
240
- property :voice_cloning_key, as: 'voiceCloningKey'
241
- end
242
- end
243
-
244
195
  class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
245
196
  # @private
246
197
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -250,23 +201,6 @@ module Google
250
201
  end
251
202
  end
252
203
 
253
- class InputAudio
254
- # @private
255
- class Representation < Google::Apis::Core::JsonRepresentation
256
- property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::InputAudioConfig, decorator: Google::Apis::TexttospeechV1::InputAudioConfig::Representation
257
-
258
- property :content, :base64 => true, as: 'content'
259
- end
260
- end
261
-
262
- class InputAudioConfig
263
- # @private
264
- class Representation < Google::Apis::Core::JsonRepresentation
265
- property :audio_encoding, as: 'audioEncoding'
266
- property :sample_rate_hertz, as: 'sampleRateHertz'
267
- end
268
- end
269
-
270
204
  class ListOperationsResponse
271
205
  # @private
272
206
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -368,13 +302,6 @@ module Google
368
302
  end
369
303
  end
370
304
 
371
- class VoiceCloneParams
372
- # @private
373
- class Representation < Google::Apis::Core::JsonRepresentation
374
- property :voice_cloning_key, as: 'voiceCloningKey'
375
- end
376
- end
377
-
378
305
  class VoiceSelectionParams
379
306
  # @private
380
307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -383,8 +310,6 @@ module Google
383
310
  property :language_code, as: 'languageCode'
384
311
  property :name, as: 'name'
385
312
  property :ssml_gender, as: 'ssmlGender'
386
- property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
387
-
388
313
  end
389
314
  end
390
315
  end
@@ -259,38 +259,6 @@ module Google
259
259
  execute_or_queue_command(command, &block)
260
260
  end
261
261
 
262
- # Generates voice clone key given a short voice prompt. This method validates
263
- # the voice prompts with a series of checks against the voice talent statement
264
- # to verify the voice clone is safe to generate.
265
- # @param [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest] generate_voice_cloning_key_request_object
266
- # @param [String] fields
267
- # Selector specifying which fields to include in a partial response.
268
- # @param [String] quota_user
269
- # Available to use for quota purposes for server-side applications. Can be any
270
- # arbitrary string assigned to a user, but should not exceed 40 characters.
271
- # @param [Google::Apis::RequestOptions] options
272
- # Request-specific options
273
- #
274
- # @yield [result, err] Result & error if block supplied
275
- # @yieldparam result [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse] parsed result object
276
- # @yieldparam err [StandardError] error object if request failed
277
- #
278
- # @return [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse]
279
- #
280
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
- # @raise [Google::Apis::AuthorizationError] Authorization is required
283
- def generate_voice_cloning_key(generate_voice_cloning_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
284
- command = make_simple_command(:post, 'v1/voices:generateVoiceCloningKey', options)
285
- command.request_representation = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest::Representation
286
- command.request_object = generate_voice_cloning_key_request_object
287
- command.response_representation = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse::Representation
288
- command.response_class = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse
289
- command.query['fields'] = fields unless fields.nil?
290
- command.query['quotaUser'] = quota_user unless quota_user.nil?
291
- execute_or_queue_command(command, &block)
292
- end
293
-
294
262
  # Returns a list of Voice supported for synthesis.
295
263
  # @param [String] language_code
296
264
  # Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
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.32.0
4
+ version: 0.33.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-06 00:00:00.000000000 Z
11
+ date: 2024-10-27 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.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.33.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Text-to-Speech API V1