google-cloud-text_to_speech-v1 1.18.0 → 1.19.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb +3 -1
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/rest/client.rb +3 -1
- data/lib/google/cloud/text_to_speech/v1/text_to_speech_long_audio_synthesize/client.rb +2 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech_long_audio_synthesize/operations.rb +2 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech_long_audio_synthesize/rest/client.rb +2 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech_long_audio_synthesize/rest/operations.rb +2 -0
- data/lib/google/cloud/text_to_speech/v1/version.rb +1 -1
- data/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb +5 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb +82 -9
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dff86dd1bc8a80b00bb24e940f6debeec5b52aab1f50fa68e4c732d1295ddd94
|
|
4
|
+
data.tar.gz: dfcad3ba47113a3bc30421f8684e05ad48aaff2eadec6971602bf7456c98867c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 694e09eb2c9385ae8a7d8cdf7ebc321df150b2ca1242e15c3da57b90ec607484d78119adb33febc10436ed9b42527cd4fa86c071dcafd914d7fb4d6de4a0cc28
|
|
7
|
+
data.tar.gz: 492e5bdba4513ec1c4e912c202f91a3dc6c0df394d4a76f2f8ac6389a9316e3d4f9f2f29db2dfcd3dfbdf19fdd86adc40a8b556fab6072cc56a57cfbcb40d06d
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -298,7 +298,7 @@ module Google
|
|
|
298
298
|
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
|
|
299
299
|
# Required. The configuration of the synthesized audio.
|
|
300
300
|
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
|
|
301
|
-
# Advanced voice options.
|
|
301
|
+
# Optional. Advanced voice options.
|
|
302
302
|
#
|
|
303
303
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
304
304
|
# @yieldparam response [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
|
|
@@ -531,6 +531,7 @@ module Google
|
|
|
531
531
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
532
532
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
533
533
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
534
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
534
535
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
535
536
|
# trigger a retry.
|
|
536
537
|
# @return [::Hash]
|
|
@@ -614,6 +615,7 @@ module Google
|
|
|
614
615
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
615
616
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
616
617
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
618
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
617
619
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
618
620
|
# trigger a retry.
|
|
619
621
|
#
|
|
@@ -292,7 +292,7 @@ module Google
|
|
|
292
292
|
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
|
|
293
293
|
# Required. The configuration of the synthesized audio.
|
|
294
294
|
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
|
|
295
|
-
# Advanced voice options.
|
|
295
|
+
# Optional. Advanced voice options.
|
|
296
296
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
297
297
|
# @yieldparam result [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
|
|
298
298
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -421,6 +421,7 @@ module Google
|
|
|
421
421
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
422
422
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
423
423
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
424
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
424
425
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
425
426
|
# trigger a retry.
|
|
426
427
|
# @return [::Hash]
|
|
@@ -493,6 +494,7 @@ module Google
|
|
|
493
494
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
494
495
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
495
496
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
497
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
496
498
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
497
499
|
# trigger a retry.
|
|
498
500
|
#
|
|
@@ -400,6 +400,7 @@ module Google
|
|
|
400
400
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
401
401
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
402
402
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
403
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
403
404
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
404
405
|
# trigger a retry.
|
|
405
406
|
# @return [::Hash]
|
|
@@ -483,6 +484,7 @@ module Google
|
|
|
483
484
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
484
485
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
485
486
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
487
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
486
488
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
487
489
|
# trigger a retry.
|
|
488
490
|
#
|
|
@@ -703,6 +703,7 @@ module Google
|
|
|
703
703
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
704
704
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
705
705
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
706
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
706
707
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
707
708
|
# trigger a retry.
|
|
708
709
|
# @return [::Hash]
|
|
@@ -786,6 +787,7 @@ module Google
|
|
|
786
787
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
787
788
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
788
789
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
790
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
789
791
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
790
792
|
# trigger a retry.
|
|
791
793
|
#
|
|
@@ -360,6 +360,7 @@ module Google
|
|
|
360
360
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
361
361
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
362
362
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
363
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
363
364
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
364
365
|
# trigger a retry.
|
|
365
366
|
# @return [::Hash]
|
|
@@ -432,6 +433,7 @@ module Google
|
|
|
432
433
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
433
434
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
434
435
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
436
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
435
437
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
436
438
|
# trigger a retry.
|
|
437
439
|
#
|
data/lib/google/cloud/text_to_speech/v1/text_to_speech_long_audio_synthesize/rest/operations.rb
CHANGED
|
@@ -541,6 +541,7 @@ module Google
|
|
|
541
541
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
542
542
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
543
543
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
544
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
544
545
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
545
546
|
# trigger a retry.
|
|
546
547
|
# @return [::Hash]
|
|
@@ -613,6 +614,7 @@ module Google
|
|
|
613
614
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
614
615
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
615
616
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
617
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
616
618
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
617
619
|
# trigger a retry.
|
|
618
620
|
#
|
|
@@ -10,7 +10,7 @@ require 'google/api/field_behavior_pb'
|
|
|
10
10
|
require 'google/api/resource_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice\"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\
|
|
13
|
+
descriptor_data = "\n,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice\"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xa3\x07\n\x14\x41\x64vancedVoiceOptions\x12*\n\x1dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12&\n\x14relax_safety_filters\x18\x08 \x01(\x08\x42\x08\x18\x01\xe0\x41\x04\xe0\x41\x01\x12\x62\n\x0fsafety_settings\x18\t \x01(\x0b\x32\x41.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettingsB\x06\xe0\x41\x04\xe0\x41\x01\x12!\n\x0f\x65nable_textnorm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x1a\xbc\x01\n\rSafetySetting\x12Q\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32?.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory\x12X\n\tthreshold\x18\x02 \x01(\x0e\x32\x45.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold\x1a\x64\n\x0eSafetySettings\x12R\n\x08settings\x18\x01 \x03(\x0b\x32@.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting\"\xb4\x01\n\x0cHarmCategory\x12\x1d\n\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\n\x1fHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1c\n\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\n\x1fHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\"\x9d\x01\n\x12HarmBlockThreshold\x12$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x01\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\n\x0f\x42LOCK_ONLY_HIGH\x10\x03\x12\x0e\n\nBLOCK_NONE\x10\x04\x12\x07\n\x03OFF\x10\x05\x42 \n\x1e_low_latency_journey_synthesisB\x12\n\x10_enable_textnorm\"\xe2\x02\n\x17SynthesizeSpeechRequest\x12@\n\x05input\x18\x01 \x01(\x0b\x32,.google.cloud.texttospeech.v1.SynthesisInputB\x03\xe0\x41\x02\x12\x46\n\x05voice\x18\x02 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\x44\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32).google.cloud.texttospeech.v1.AudioConfigB\x03\xe0\x41\x02\x12\\\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xa2\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12h\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32H.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1a\n\rpronunciation\x18\x03 \x01(\tH\x02\x88\x01\x01\"\xb6\x01\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12\'\n#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1c\n\x18PHONETIC_ENCODING_PINYIN\x10\x04\x42\t\n\x07_phraseB\x14\n\x12_phonetic_encodingB\x10\n\x0e_pronunciation\"g\n\x14\x43ustomPronunciations\x12O\n\x0epronunciations\x18\x01 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.CustomPronunciationParams\"\x90\x01\n\x12MultiSpeakerMarkup\x12I\n\x05turns\x18\x01 \x03(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\x03\xe0\x41\x02\x1a/\n\x04Turn\x12\x14\n\x07speaker\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"P\n\x19MultispeakerPrebuiltVoice\x12\x1a\n\rspeaker_alias\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nspeaker_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"v\n\x17MultiSpeakerVoiceConfig\x12[\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\x9c\x02\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12V\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\x8e\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12\x45\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32/.google.cloud.texttospeech.v1.CustomVoiceParams\x12H\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32..google.cloud.texttospeech.v1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12^\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf1\x01\n\x0b\x41udioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1d\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x15\n\x05pitch\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x0evolume_gain_db\x18\x04 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xf1\x01\n\x11\x43ustomVoiceParams\x12\x32\n\x05model\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\\\n\x0ereported_usage\x18\x03 \x01(\x0e\x32=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xe0\x41\x01\"J\n\rReportedUsage\x12\x1e\n\x1aREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REALTIME\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\"2\n\x10VoiceCloneParams\x12\x1e\n\x11voice_cloning_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\"\x9f\x01\n\x14StreamingAudioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\rspeaking_rate\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\"\x8d\x03\n\x19StreamingSynthesizeConfig\x12\x46\n\x05voice\x18\x01 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12W\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.StreamingAudioConfigB\x03\xe0\x41\x01\x12V\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\x12\\\n\x16\x61\x64vanced_voice_options\x18\x07 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xbd\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xce\x01\n\x1aStreamingSynthesizeRequest\x12S\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\x00\x12\x46\n\x05input\x18\x02 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.StreamingSynthesisInputH\x00\x42\x13\n\x11streaming_request\"4\n\x1bStreamingSynthesizeResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*{\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x12\t\n\x05MULAW\x10\x05\x12\x08\n\x04\x41LAW\x10\x06\x12\x07\n\x03PCM\x10\x07\x12\x07\n\x03M4A\x10\x08\x32\xc7\x04\n\x0cTextToSpeech\x12\x93\x01\n\nListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1a\x30.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/voices\x12\xbc\x01\n\x10SynthesizeSpeech\x12\x35.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1a\x36.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"9\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*\x12\x90\x01\n\x13StreamingSynthesize\x12\x38.google.cloud.texttospeech.v1.StreamingSynthesizeRequest\x1a\x39.google.cloud.texttospeech.v1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbc\x02\n com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZDcloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02\x1cGoogle.Cloud.TextToSpeech.V1\xca\x02\x1cGoogle\\Cloud\\TextToSpeech\\V1\xea\x02\x1fGoogle::Cloud::TextToSpeech::V1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -23,6 +23,10 @@ module Google
|
|
|
23
23
|
ListVoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesResponse").msgclass
|
|
24
24
|
Voice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.Voice").msgclass
|
|
25
25
|
AdvancedVoiceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions").msgclass
|
|
26
|
+
AdvancedVoiceOptions::SafetySetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting").msgclass
|
|
27
|
+
AdvancedVoiceOptions::SafetySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings").msgclass
|
|
28
|
+
AdvancedVoiceOptions::HarmCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory").enummodule
|
|
29
|
+
AdvancedVoiceOptions::HarmBlockThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold").enummodule
|
|
26
30
|
SynthesizeSpeechRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechRequest").msgclass
|
|
27
31
|
CustomPronunciationParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomPronunciationParams").msgclass
|
|
28
32
|
CustomPronunciationParams::PhoneticEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding").enummodule
|
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
# @!attribute [rw] selective_gapic_generation
|
|
32
32
|
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
33
|
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
34
|
+
#
|
|
35
|
+
# Note: This field should not be used in most cases.
|
|
34
36
|
class CommonLanguageSettings
|
|
35
37
|
include ::Google::Protobuf::MessageExts
|
|
36
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -441,6 +443,8 @@ module Google
|
|
|
441
443
|
|
|
442
444
|
# This message is used to configure the generation of a subset of the RPCs in
|
|
443
445
|
# a service for client libraries.
|
|
446
|
+
#
|
|
447
|
+
# Note: This feature should not be used in most cases.
|
|
444
448
|
# @!attribute [rw] methods
|
|
445
449
|
# @return [::Array<::String>]
|
|
446
450
|
# An allowlist of the fully qualified names of RPCs that should be included
|
|
@@ -72,14 +72,84 @@ module Google
|
|
|
72
72
|
# Only for Journey voices. If false, the synthesis is context aware
|
|
73
73
|
# and has a higher latency.
|
|
74
74
|
# @!attribute [rw] relax_safety_filters
|
|
75
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
75
76
|
# @return [::Boolean]
|
|
76
|
-
# Optional. Input only.
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
77
|
+
# Optional. Input only. Deprecated, use safety_settings instead.
|
|
78
|
+
# If true, relaxes safety filters for Gemini TTS.
|
|
79
|
+
# @!attribute [rw] safety_settings
|
|
80
|
+
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::SafetySettings]
|
|
81
|
+
# Optional. Input only. This applies to Gemini TTS only. If set, the category
|
|
82
|
+
# specified in the safety setting will be blocked if the harm probability is
|
|
83
|
+
# above the threshold. Otherwise, the safety filter will be disabled by
|
|
84
|
+
# default.
|
|
85
|
+
# @!attribute [rw] enable_textnorm
|
|
86
|
+
# @return [::Boolean]
|
|
87
|
+
# Optional. If true, textnorm will be applied to text input. This feature is
|
|
88
|
+
# enabled by default. Only applies for Gemini TTS.
|
|
80
89
|
class AdvancedVoiceOptions
|
|
81
90
|
include ::Google::Protobuf::MessageExts
|
|
82
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
92
|
+
|
|
93
|
+
# Safety setting for a single harm category.
|
|
94
|
+
# @!attribute [rw] category
|
|
95
|
+
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory]
|
|
96
|
+
# The harm category to apply the safety setting to.
|
|
97
|
+
# @!attribute [rw] threshold
|
|
98
|
+
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold]
|
|
99
|
+
# The harm block threshold for the safety setting.
|
|
100
|
+
class SafetySetting
|
|
101
|
+
include ::Google::Protobuf::MessageExts
|
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Safety settings for the request.
|
|
106
|
+
# @!attribute [rw] settings
|
|
107
|
+
# @return [::Array<::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::SafetySetting>]
|
|
108
|
+
# The safety settings for the request.
|
|
109
|
+
class SafetySettings
|
|
110
|
+
include ::Google::Protobuf::MessageExts
|
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Harm categories that will block the content.
|
|
115
|
+
module HarmCategory
|
|
116
|
+
# Default value. This value is unused.
|
|
117
|
+
HARM_CATEGORY_UNSPECIFIED = 0
|
|
118
|
+
|
|
119
|
+
# Content that promotes violence or incites hatred against individuals or
|
|
120
|
+
# groups based on certain attributes.
|
|
121
|
+
HARM_CATEGORY_HATE_SPEECH = 1
|
|
122
|
+
|
|
123
|
+
# Content that promotes, facilitates, or enables dangerous activities.
|
|
124
|
+
HARM_CATEGORY_DANGEROUS_CONTENT = 2
|
|
125
|
+
|
|
126
|
+
# Abusive, threatening, or content intended to bully, torment, or ridicule.
|
|
127
|
+
HARM_CATEGORY_HARASSMENT = 3
|
|
128
|
+
|
|
129
|
+
# Content that contains sexually explicit material.
|
|
130
|
+
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Harm block thresholds for the safety settings.
|
|
134
|
+
module HarmBlockThreshold
|
|
135
|
+
# The harm block threshold is unspecified.
|
|
136
|
+
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
|
|
137
|
+
|
|
138
|
+
# Block content with a low harm probability or higher.
|
|
139
|
+
BLOCK_LOW_AND_ABOVE = 1
|
|
140
|
+
|
|
141
|
+
# Block content with a medium harm probability or higher.
|
|
142
|
+
BLOCK_MEDIUM_AND_ABOVE = 2
|
|
143
|
+
|
|
144
|
+
# Block content with a high harm probability.
|
|
145
|
+
BLOCK_ONLY_HIGH = 3
|
|
146
|
+
|
|
147
|
+
# Do not block any content, regardless of its harm probability.
|
|
148
|
+
BLOCK_NONE = 4
|
|
149
|
+
|
|
150
|
+
# Turn off the safety filter entirely.
|
|
151
|
+
OFF = 5
|
|
152
|
+
end
|
|
83
153
|
end
|
|
84
154
|
|
|
85
155
|
# The top-level message sent by the client for the `SynthesizeSpeech` method.
|
|
@@ -94,7 +164,7 @@ module Google
|
|
|
94
164
|
# Required. The configuration of the synthesized audio.
|
|
95
165
|
# @!attribute [rw] advanced_voice_options
|
|
96
166
|
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions]
|
|
97
|
-
# Advanced voice options.
|
|
167
|
+
# Optional. Advanced voice options.
|
|
98
168
|
class SynthesizeSpeechRequest
|
|
99
169
|
include ::Google::Protobuf::MessageExts
|
|
100
170
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -224,8 +294,8 @@ module Google
|
|
|
224
294
|
# Note: The following fields are mutually exclusive: `text`, `markup`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
225
295
|
# @!attribute [rw] markup
|
|
226
296
|
# @return [::String]
|
|
227
|
-
# Markup for HD voices specifically. This field may not be used
|
|
228
|
-
# other voices.
|
|
297
|
+
# Markup for Chirp 3: HD voices specifically. This field may not be used
|
|
298
|
+
# with any other voices.
|
|
229
299
|
#
|
|
230
300
|
# Note: The following fields are mutually exclusive: `markup`, `text`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
231
301
|
# @!attribute [rw] ssml
|
|
@@ -453,6 +523,9 @@ module Google
|
|
|
453
523
|
# In order to customize the pronunciation of a phrase, there must be an exact
|
|
454
524
|
# match of the phrase in the input types. If using SSML, the phrase must not
|
|
455
525
|
# be inside a phoneme tag.
|
|
526
|
+
# @!attribute [rw] advanced_voice_options
|
|
527
|
+
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions]
|
|
528
|
+
# Optional. Advanced voice options.
|
|
456
529
|
class StreamingSynthesizeConfig
|
|
457
530
|
include ::Google::Protobuf::MessageExts
|
|
458
531
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -468,8 +541,8 @@ module Google
|
|
|
468
541
|
# Note: The following fields are mutually exclusive: `text`, `markup`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
469
542
|
# @!attribute [rw] markup
|
|
470
543
|
# @return [::String]
|
|
471
|
-
# Markup for HD voices specifically. This field may not be used
|
|
472
|
-
# other voices.
|
|
544
|
+
# Markup for Chirp 3: HD voices specifically. This field may not be used
|
|
545
|
+
# with any other voices.
|
|
473
546
|
#
|
|
474
547
|
# Note: The following fields are mutually exclusive: `markup`, `text`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
475
548
|
# @!attribute [rw] multi_speaker_markup
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-text_to_speech-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|