google-cloud-text_to_speech-v1beta1 0.28.0 → 0.29.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/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1beta1/version.rb +1 -1
- data/lib/google/cloud/texttospeech/v1beta1/cloud_tts_pb.rb +5 -1
- data/proto_docs/google/api/client.rb +145 -29
- data/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb +82 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 173236ade4118a4a210a9c08ae740182b2e33731c091b63fcd50ef19b8406c34
|
|
4
|
+
data.tar.gz: 47812c4dad315e007e999ee35c7363bdb8629d8fbe4bb740004a307e5ed4c1e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd9862a0f3aa8fb4158b03fa99f8e93f314ae9b141d366599328acba7b12f038e4e5c76aeab9e27a124efd67a49d022eeba23bef15d260724659feddec673e63
|
|
7
|
+
data.tar.gz: 95c86c0e0d41b226dfff8177f4536e63c3d816b7526bf95a737e53ec9c7da19d477abb7c1379890405f48fd61bcaf4c382c16e7ba13d72db31edd18dabfb9823
|
|
@@ -300,7 +300,7 @@ module Google
|
|
|
300
300
|
# @param enable_time_pointing [::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>]
|
|
301
301
|
# Whether and what timepoints are returned in the response.
|
|
302
302
|
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions, ::Hash]
|
|
303
|
-
# Advanced voice options.
|
|
303
|
+
# Optional. Advanced voice options.
|
|
304
304
|
#
|
|
305
305
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
306
306
|
# @yieldparam response [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
|
|
@@ -294,7 +294,7 @@ module Google
|
|
|
294
294
|
# @param enable_time_pointing [::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>]
|
|
295
295
|
# Whether and what timepoints are returned in the response.
|
|
296
296
|
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions, ::Hash]
|
|
297
|
-
# Advanced voice options.
|
|
297
|
+
# Optional. Advanced voice options.
|
|
298
298
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
299
299
|
# @yieldparam result [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
|
|
300
300
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -10,7 +10,7 @@ require 'google/api/field_behavior_pb'
|
|
|
10
10
|
require 'google/api/resource_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n1google/cloud/texttospeech/v1beta1/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\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\"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice\"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\x8a\x01\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\x06\xe0\x41\x04\xe0\x41\x01\x42 \n\x1e_low_latency_journey_synthesis\"\x99\x04\n\x17SynthesizeSpeechRequest\x12\x45\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInputB\x03\xe0\x41\x02\x12K\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12I\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfigB\x03\xe0\x41\x02\x12\x66\n\x14\x65nable_time_pointing\x18\x04 \x03(\x0e\x32H.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType\x12\\\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsH\x00\x88\x01\x01\">\n\rTimepointType\x12\x1e\n\x1aTIMEPOINT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSSML_MARK\x10\x01\x42\x19\n\x17_advanced_voice_options\"\xa7\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12m\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32M.google.cloud.texttospeech.v1beta1.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\"l\n\x14\x43ustomPronunciations\x12T\n\x0epronunciations\x18\x01 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.CustomPronunciationParams\"\x95\x01\n\x12MultiSpeakerMarkup\x12N\n\x05turns\x18\x01 \x03(\x0b\x32:.google.cloud.texttospeech.v1beta1.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\"{\n\x17MultiSpeakerVoiceConfig\x12`\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\xa6\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\x12U\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12[\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xa2\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12J\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32\x34.google.cloud.texttospeech.v1beta1.CustomVoiceParams\x12M\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32\x33.google.cloud.texttospeech.v1beta1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf6\x01\n\x0b\x41udioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.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\"\xf6\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\x61\n\x0ereported_usage\x18\x03 \x01(\x0e\x32\x42.google.cloud.texttospeech.v1beta1.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\"\xb9\x01\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\x12@\n\ntimepoints\x18\x02 \x03(\x0b\x32,.google.cloud.texttospeech.v1beta1.Timepoint\x12\x44\n\x0c\x61udio_config\x18\x04 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n\tTimepoint\x12\x11\n\tmark_name\x18\x04 \x01(\t\x12\x14\n\x0ctime_seconds\x18\x03 \x01(\x01\"\xa4\x01\n\x14StreamingAudioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.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\"\xa3\x02\n\x19StreamingSynthesizeConfig\x12K\n\x05voice\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\\\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.StreamingAudioConfigB\x03\xe0\x41\x01\x12[\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\"\xc2\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xd8\x01\n\x1aStreamingSynthesizeRequest\x12X\n\x10streaming_config\x18\x01 \x01(\x0b\x32<.google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfigH\x00\x12K\n\x05input\x18\x02 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.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*\x8c\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0f\n\x0bMP3_64_KBPS\x10\x04\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\xef\x04\n\x0cTextToSpeech\x12\xa2\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse\"\'\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xcb\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse\">\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/text:synthesize:\x01*\x12\x9a\x01\n\x13StreamingSynthesize\x12=.google.cloud.texttospeech.v1beta1.StreamingSynthesizeRequest\x1a>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd5\x02\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZIcloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02!Google.Cloud.TextToSpeech.V1Beta1\xca\x02!Google\\Cloud\\TextToSpeech\\V1beta1\xea\x02$Google::Cloud::TextToSpeech::V1beta1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
|
|
13
|
+
descriptor_data = "\n1google/cloud/texttospeech/v1beta1/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\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\"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice\"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xb7\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\x12g\n\x0fsafety_settings\x18\t \x01(\x0b\x32\x46.google.cloud.texttospeech.v1beta1.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\xc6\x01\n\rSafetySetting\x12V\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x44.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory\x12]\n\tthreshold\x18\x02 \x01(\x0e\x32J.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold\x1ai\n\x0eSafetySettings\x12W\n\x08settings\x18\x01 \x03(\x0b\x32\x45.google.cloud.texttospeech.v1beta1.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\"\x9e\x04\n\x17SynthesizeSpeechRequest\x12\x45\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInputB\x03\xe0\x41\x02\x12K\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12I\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfigB\x03\xe0\x41\x02\x12\x66\n\x14\x65nable_time_pointing\x18\x04 \x03(\x0e\x32H.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType\x12\x61\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\">\n\rTimepointType\x12\x1e\n\x1aTIMEPOINT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSSML_MARK\x10\x01\x42\x19\n\x17_advanced_voice_options\"\xa7\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12m\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32M.google.cloud.texttospeech.v1beta1.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\"l\n\x14\x43ustomPronunciations\x12T\n\x0epronunciations\x18\x01 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.CustomPronunciationParams\"\x95\x01\n\x12MultiSpeakerMarkup\x12N\n\x05turns\x18\x01 \x03(\x0b\x32:.google.cloud.texttospeech.v1beta1.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\"{\n\x17MultiSpeakerVoiceConfig\x12`\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\xa6\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\x12U\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12[\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xa2\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12J\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32\x34.google.cloud.texttospeech.v1beta1.CustomVoiceParams\x12M\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32\x33.google.cloud.texttospeech.v1beta1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf6\x01\n\x0b\x41udioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.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\"\xf6\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\x61\n\x0ereported_usage\x18\x03 \x01(\x0e\x32\x42.google.cloud.texttospeech.v1beta1.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\"\xb9\x01\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\x12@\n\ntimepoints\x18\x02 \x03(\x0b\x32,.google.cloud.texttospeech.v1beta1.Timepoint\x12\x44\n\x0c\x61udio_config\x18\x04 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n\tTimepoint\x12\x11\n\tmark_name\x18\x04 \x01(\t\x12\x14\n\x0ctime_seconds\x18\x03 \x01(\x01\"\xa4\x01\n\x14StreamingAudioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.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\"\xa1\x03\n\x19StreamingSynthesizeConfig\x12K\n\x05voice\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\\\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.StreamingAudioConfigB\x03\xe0\x41\x01\x12[\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x12\x61\n\x16\x61\x64vanced_voice_options\x18\x07 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xc2\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xd8\x01\n\x1aStreamingSynthesizeRequest\x12X\n\x10streaming_config\x18\x01 \x01(\x0b\x32<.google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfigH\x00\x12K\n\x05input\x18\x02 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.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*\x8c\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0f\n\x0bMP3_64_KBPS\x10\x04\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\xef\x04\n\x0cTextToSpeech\x12\xa2\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse\"\'\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xcb\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse\">\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/text:synthesize:\x01*\x12\x9a\x01\n\x13StreamingSynthesize\x12=.google.cloud.texttospeech.v1beta1.StreamingSynthesizeRequest\x1a>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd5\x02\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZIcloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02!Google.Cloud.TextToSpeech.V1Beta1\xca\x02!Google\\Cloud\\TextToSpeech\\V1beta1\xea\x02$Google::Cloud::TextToSpeech::V1beta1\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.v1beta1.ListVoicesResponse").msgclass
|
|
24
24
|
Voice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.Voice").msgclass
|
|
25
25
|
AdvancedVoiceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions").msgclass
|
|
26
|
+
AdvancedVoiceOptions::SafetySetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting").msgclass
|
|
27
|
+
AdvancedVoiceOptions::SafetySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettings").msgclass
|
|
28
|
+
AdvancedVoiceOptions::HarmCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory").enummodule
|
|
29
|
+
AdvancedVoiceOptions::HarmBlockThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold").enummodule
|
|
26
30
|
SynthesizeSpeechRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest").msgclass
|
|
27
31
|
SynthesizeSpeechRequest::TimepointType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType").enummodule
|
|
28
32
|
CustomPronunciationParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.CustomPronunciationParams").msgclass
|
|
@@ -141,9 +141,10 @@ module Google
|
|
|
141
141
|
#
|
|
142
142
|
# Example of a YAML configuration::
|
|
143
143
|
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
144
|
+
# publishing:
|
|
145
|
+
# library_settings:
|
|
146
|
+
# java_settings:
|
|
147
|
+
# library_package: com.google.cloud.pubsub.v1
|
|
147
148
|
# @!attribute [rw] service_class_names
|
|
148
149
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
149
150
|
# Configure the Java class name to use instead of the service's for its
|
|
@@ -155,11 +156,11 @@ module Google
|
|
|
155
156
|
#
|
|
156
157
|
# Example of a YAML configuration::
|
|
157
158
|
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
159
|
+
# publishing:
|
|
160
|
+
# java_settings:
|
|
161
|
+
# service_class_names:
|
|
162
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
|
163
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
163
164
|
# @!attribute [rw] common
|
|
164
165
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
165
166
|
# Some settings.
|
|
@@ -190,6 +191,20 @@ module Google
|
|
|
190
191
|
# @!attribute [rw] common
|
|
191
192
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
192
193
|
# Some settings.
|
|
194
|
+
# @!attribute [rw] library_package
|
|
195
|
+
# @return [::String]
|
|
196
|
+
# The package name to use in Php. Clobbers the php_namespace option
|
|
197
|
+
# set in the protobuf. This should be used **only** by APIs
|
|
198
|
+
# who have already set the language_settings.php.package_name" field
|
|
199
|
+
# in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
200
|
+
# where possible.
|
|
201
|
+
#
|
|
202
|
+
# Example of a YAML configuration::
|
|
203
|
+
#
|
|
204
|
+
# publishing:
|
|
205
|
+
# library_settings:
|
|
206
|
+
# php_settings:
|
|
207
|
+
# library_package: Google\Cloud\PubSub\V1
|
|
193
208
|
class PhpSettings
|
|
194
209
|
include ::Google::Protobuf::MessageExts
|
|
195
210
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -318,10 +333,12 @@ module Google
|
|
|
318
333
|
# service names and values are the name to be used for the service client
|
|
319
334
|
# and call options.
|
|
320
335
|
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
336
|
+
# Example:
|
|
337
|
+
#
|
|
338
|
+
# publishing:
|
|
339
|
+
# go_settings:
|
|
340
|
+
# renamed_services:
|
|
341
|
+
# Publisher: TopicAdmin
|
|
325
342
|
class GoSettings
|
|
326
343
|
include ::Google::Protobuf::MessageExts
|
|
327
344
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -344,10 +361,10 @@ module Google
|
|
|
344
361
|
#
|
|
345
362
|
# Example:
|
|
346
363
|
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
364
|
+
# publishing:
|
|
365
|
+
# method_settings:
|
|
366
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
367
|
+
# # method settings for CreateFolder...
|
|
351
368
|
# @!attribute [rw] long_running
|
|
352
369
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
353
370
|
# Describes settings to use for long-running operations when generating
|
|
@@ -356,14 +373,14 @@ module Google
|
|
|
356
373
|
#
|
|
357
374
|
# Example of a YAML configuration::
|
|
358
375
|
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
376
|
+
# publishing:
|
|
377
|
+
# method_settings:
|
|
378
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
379
|
+
# long_running:
|
|
380
|
+
# initial_poll_delay: 60s # 1 minute
|
|
381
|
+
# poll_delay_multiplier: 1.5
|
|
382
|
+
# max_poll_delay: 360s # 6 minutes
|
|
383
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
367
384
|
# @!attribute [rw] auto_populated_fields
|
|
368
385
|
# @return [::Array<::String>]
|
|
369
386
|
# List of top-level fields of the request message, that should be
|
|
@@ -372,11 +389,24 @@ module Google
|
|
|
372
389
|
#
|
|
373
390
|
# Example of a YAML configuration:
|
|
374
391
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
#
|
|
378
|
-
#
|
|
379
|
-
#
|
|
392
|
+
# publishing:
|
|
393
|
+
# method_settings:
|
|
394
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
395
|
+
# auto_populated_fields:
|
|
396
|
+
# - request_id
|
|
397
|
+
# @!attribute [rw] batching
|
|
398
|
+
# @return [::Google::Api::BatchingConfigProto]
|
|
399
|
+
# Batching configuration for an API method in client libraries.
|
|
400
|
+
#
|
|
401
|
+
# Example of a YAML configuration:
|
|
402
|
+
#
|
|
403
|
+
# publishing:
|
|
404
|
+
# method_settings:
|
|
405
|
+
# - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
406
|
+
# batching:
|
|
407
|
+
# element_count_threshold: 1000
|
|
408
|
+
# request_byte_threshold: 100000000
|
|
409
|
+
# delay_threshold_millis: 10
|
|
380
410
|
class MethodSettings
|
|
381
411
|
include ::Google::Protobuf::MessageExts
|
|
382
412
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -428,6 +458,77 @@ module Google
|
|
|
428
458
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
459
|
end
|
|
430
460
|
|
|
461
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
462
|
+
# @!attribute [rw] thresholds
|
|
463
|
+
# @return [::Google::Api::BatchingSettingsProto]
|
|
464
|
+
# The thresholds which trigger a batched request to be sent.
|
|
465
|
+
# @!attribute [rw] batch_descriptor
|
|
466
|
+
# @return [::Google::Api::BatchingDescriptorProto]
|
|
467
|
+
# The request and response fields used in batching.
|
|
468
|
+
class BatchingConfigProto
|
|
469
|
+
include ::Google::Protobuf::MessageExts
|
|
470
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
474
|
+
# which acts as a trigger to send a batch of messages as a request. At least
|
|
475
|
+
# one threshold must be positive nonzero.
|
|
476
|
+
# @!attribute [rw] element_count_threshold
|
|
477
|
+
# @return [::Integer]
|
|
478
|
+
# The number of elements of a field collected into a batch which, if
|
|
479
|
+
# exceeded, causes the batch to be sent.
|
|
480
|
+
# @!attribute [rw] request_byte_threshold
|
|
481
|
+
# @return [::Integer]
|
|
482
|
+
# The aggregated size of the batched field which, if exceeded, causes the
|
|
483
|
+
# batch to be sent. This size is computed by aggregating the sizes of the
|
|
484
|
+
# request field to be batched, not of the entire request message.
|
|
485
|
+
# @!attribute [rw] delay_threshold
|
|
486
|
+
# @return [::Google::Protobuf::Duration]
|
|
487
|
+
# The duration after which a batch should be sent, starting from the addition
|
|
488
|
+
# of the first message to that batch.
|
|
489
|
+
# @!attribute [rw] element_count_limit
|
|
490
|
+
# @return [::Integer]
|
|
491
|
+
# The maximum number of elements collected in a batch that could be accepted
|
|
492
|
+
# by server.
|
|
493
|
+
# @!attribute [rw] request_byte_limit
|
|
494
|
+
# @return [::Integer]
|
|
495
|
+
# The maximum size of the request that could be accepted by server.
|
|
496
|
+
# @!attribute [rw] flow_control_element_limit
|
|
497
|
+
# @return [::Integer]
|
|
498
|
+
# The maximum number of elements allowed by flow control.
|
|
499
|
+
# @!attribute [rw] flow_control_byte_limit
|
|
500
|
+
# @return [::Integer]
|
|
501
|
+
# The maximum size of data allowed by flow control.
|
|
502
|
+
# @!attribute [rw] flow_control_limit_exceeded_behavior
|
|
503
|
+
# @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
|
|
504
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
505
|
+
class BatchingSettingsProto
|
|
506
|
+
include ::Google::Protobuf::MessageExts
|
|
507
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
511
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
512
|
+
# used for demultiplexing.
|
|
513
|
+
# @!attribute [rw] batched_field
|
|
514
|
+
# @return [::String]
|
|
515
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
516
|
+
# @!attribute [rw] discriminator_fields
|
|
517
|
+
# @return [::Array<::String>]
|
|
518
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
519
|
+
# together only if the values of every field specified in
|
|
520
|
+
# `request_discriminator_fields` is equal between the two requests.
|
|
521
|
+
# @!attribute [rw] subresponse_field
|
|
522
|
+
# @return [::String]
|
|
523
|
+
# Optional. When present, indicates the field in the response message to be
|
|
524
|
+
# used to demultiplex the response into multiple response messages, in
|
|
525
|
+
# correspondence with the multiple request messages originally batched
|
|
526
|
+
# together.
|
|
527
|
+
class BatchingDescriptorProto
|
|
528
|
+
include ::Google::Protobuf::MessageExts
|
|
529
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
530
|
+
end
|
|
531
|
+
|
|
431
532
|
# The organization for which the client libraries are being published.
|
|
432
533
|
# Affects the url where generated docs are published, etc.
|
|
433
534
|
module ClientLibraryOrganization
|
|
@@ -469,5 +570,20 @@ module Google
|
|
|
469
570
|
# Publish the library to package managers like nuget.org and npmjs.com.
|
|
470
571
|
PACKAGE_MANAGER = 20
|
|
471
572
|
end
|
|
573
|
+
|
|
574
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
575
|
+
module FlowControlLimitExceededBehaviorProto
|
|
576
|
+
# Default behavior, system-defined.
|
|
577
|
+
UNSET_BEHAVIOR = 0
|
|
578
|
+
|
|
579
|
+
# Stop operation, raise error.
|
|
580
|
+
THROW_EXCEPTION = 1
|
|
581
|
+
|
|
582
|
+
# Pause operation until limit clears.
|
|
583
|
+
BLOCK = 2
|
|
584
|
+
|
|
585
|
+
# Continue operation, disregard limit.
|
|
586
|
+
IGNORE = 3
|
|
587
|
+
end
|
|
472
588
|
end
|
|
473
589
|
end
|
|
@@ -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::V1beta1::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::V1beta1::AdvancedVoiceOptions::HarmCategory]
|
|
96
|
+
# The harm category to apply the safety setting to.
|
|
97
|
+
# @!attribute [rw] threshold
|
|
98
|
+
# @return [::Google::Cloud::TextToSpeech::V1beta1::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::V1beta1::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.
|
|
@@ -97,7 +167,7 @@ module Google
|
|
|
97
167
|
# Whether and what timepoints are returned in the response.
|
|
98
168
|
# @!attribute [rw] advanced_voice_options
|
|
99
169
|
# @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions]
|
|
100
|
-
# Advanced voice options.
|
|
170
|
+
# Optional. Advanced voice options.
|
|
101
171
|
class SynthesizeSpeechRequest
|
|
102
172
|
include ::Google::Protobuf::MessageExts
|
|
103
173
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -236,8 +306,8 @@ module Google
|
|
|
236
306
|
# 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.
|
|
237
307
|
# @!attribute [rw] markup
|
|
238
308
|
# @return [::String]
|
|
239
|
-
# Markup for HD voices specifically. This field may not be used
|
|
240
|
-
# other voices.
|
|
309
|
+
# Markup for Chirp 3: HD voices specifically. This field may not be used
|
|
310
|
+
# with any other voices.
|
|
241
311
|
#
|
|
242
312
|
# 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.
|
|
243
313
|
# @!attribute [rw] ssml
|
|
@@ -485,6 +555,9 @@ module Google
|
|
|
485
555
|
# In order to customize the pronunciation of a phrase, there must be an exact
|
|
486
556
|
# match of the phrase in the input types. If using SSML, the phrase must not
|
|
487
557
|
# be inside a phoneme tag.
|
|
558
|
+
# @!attribute [rw] advanced_voice_options
|
|
559
|
+
# @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions]
|
|
560
|
+
# Optional. Advanced voice options.
|
|
488
561
|
class StreamingSynthesizeConfig
|
|
489
562
|
include ::Google::Protobuf::MessageExts
|
|
490
563
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -500,8 +573,8 @@ module Google
|
|
|
500
573
|
# 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.
|
|
501
574
|
# @!attribute [rw] markup
|
|
502
575
|
# @return [::String]
|
|
503
|
-
# Markup for HD voices specifically. This field may not be used
|
|
504
|
-
# other voices.
|
|
576
|
+
# Markup for Chirp 3: HD voices specifically. This field may not be used
|
|
577
|
+
# with any other voices.
|
|
505
578
|
#
|
|
506
579
|
# 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.
|
|
507
580
|
# @!attribute [rw] multi_speaker_markup
|