diff --git a/TextToSpeech/metadata/V1/CloudTts.php b/TextToSpeech/metadata/V1/CloudTts.php index 6196fc83e23..09089fee21c 100644 --- a/TextToSpeech/metadata/V1/CloudTts.php +++ b/TextToSpeech/metadata/V1/CloudTts.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xF2'\x0A,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1Cgoogle.cloud.texttospeech.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"/\x0A\x11ListVoicesRequest\x12\x1A\x0A\x0Dlanguage_code\x18\x01 \x01(\x09B\x03\xE0A\x01\"I\x0A\x12ListVoicesResponse\x123\x0A\x06voices\x18\x01 \x03(\x0B2#.google.cloud.texttospeech.v1.Voice\"\x94\x01\x0A\x05Voice\x12\x16\x0A\x0Elanguage_codes\x18\x01 \x03(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12B\x0A\x0Bssml_gender\x18\x03 \x01(\x0E2-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\x0A\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\x8A\x01\x0A\x14AdvancedVoiceOptions\x12*\x0A\x1Dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\$\x0A\x14relax_safety_filters\x18\x08 \x01(\x08B\x06\xE0A\x04\xE0A\x01B \x0A\x1E_low_latency_journey_synthesis\"\xDD\x02\x0A\x17SynthesizeSpeechRequest\x12@\x0A\x05input\x18\x01 \x01(\x0B2,.google.cloud.texttospeech.v1.SynthesisInputB\x03\xE0A\x02\x12F\x0A\x05voice\x18\x02 \x01(\x0B22.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xE0A\x02\x12D\x0A\x0Caudio_config\x18\x03 \x01(\x0B2).google.cloud.texttospeech.v1.AudioConfigB\x03\xE0A\x02\x12W\x0A\x16advanced_voice_options\x18\x08 \x01(\x0B22.google.cloud.texttospeech.v1.AdvancedVoiceOptionsH\x00\x88\x01\x01B\x19\x0A\x17_advanced_voice_options\"\xA2\x03\x0A\x19CustomPronunciationParams\x12\x13\x0A\x06phrase\x18\x01 \x01(\x09H\x00\x88\x01\x01\x12h\x0A\x11phonetic_encoding\x18\x02 \x01(\x0E2H.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1A\x0A\x0Dpronunciation\x18\x03 \x01(\x09H\x02\x88\x01\x01\"\xB6\x01\x0A\x10PhoneticEncoding\x12!\x0A\x1DPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\x0A\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1D\x0A\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12'\x0A#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1C\x0A\x18PHONETIC_ENCODING_PINYIN\x10\x04B\x09\x0A\x07_phraseB\x14\x0A\x12_phonetic_encodingB\x10\x0A\x0E_pronunciation\"g\x0A\x14CustomPronunciations\x12O\x0A\x0Epronunciations\x18\x01 \x03(\x0B27.google.cloud.texttospeech.v1.CustomPronunciationParams\"\x90\x01\x0A\x12MultiSpeakerMarkup\x12I\x0A\x05turns\x18\x01 \x03(\x0B25.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\x03\xE0A\x02\x1A/\x0A\x04Turn\x12\x14\x0A\x07speaker\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x02\"P\x0A\x19MultispeakerPrebuiltVoice\x12\x1A\x0A\x0Dspeaker_alias\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aspeaker_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"v\x0A\x17MultiSpeakerVoiceConfig\x12[\x0A\x15speaker_voice_configs\x18\x02 \x03(\x0B27.google.cloud.texttospeech.v1.MultispeakerPrebuiltVoiceB\x03\xE0A\x02\"\x9C\x02\x0A\x0ESynthesisInput\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00\x12\x10\x0A\x06markup\x18\x05 \x01(\x09H\x00\x12\x0E\x0A\x04ssml\x18\x02 \x01(\x09H\x00\x12P\x0A\x14multi_speaker_markup\x18\x04 \x01(\x0B20.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\x0A\x06prompt\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12V\x0A\x15custom_pronunciations\x18\x03 \x01(\x0B22.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xE0A\x01B\x0E\x0A\x0Cinput_sourceB\x09\x0A\x07_prompt\"\x8E\x03\x0A\x14VoiceSelectionParams\x12\x1A\x0A\x0Dlanguage_code\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12B\x0A\x0Bssml_gender\x18\x03 \x01(\x0E2-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12E\x0A\x0Ccustom_voice\x18\x04 \x01(\x0B2/.google.cloud.texttospeech.v1.CustomVoiceParams\x12H\x0A\x0Bvoice_clone\x18\x05 \x01(\x0B2..google.cloud.texttospeech.v1.VoiceCloneParamsB\x03\xE0A\x01\x12\x17\x0A\x0Amodel_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12^\x0A\x1Amulti_speaker_voice_config\x18\x07 \x01(\x0B25.google.cloud.texttospeech.v1.MultiSpeakerVoiceConfigB\x03\xE0A\x01\"\xF1\x01\x0A\x0BAudioConfig\x12H\x0A\x0Eaudio_encoding\x18\x01 \x01(\x0E2+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xE0A\x02\x12\x1D\x0A\x0Dspeaking_rate\x18\x02 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x15\x0A\x05pitch\x18\x03 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x1E\x0A\x0Evolume_gain_db\x18\x04 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x1E\x0A\x11sample_rate_hertz\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\"\x0A\x12effects_profile_id\x18\x06 \x03(\x09B\x06\xE0A\x04\xE0A\x01\"\xF1\x01\x0A\x11CustomVoiceParams\x122\x0A\x05model\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bautoml.googleapis.com/Model\x12\\\x0A\x0Ereported_usage\x18\x03 \x01(\x0E2=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xE0A\x01\"J\x0A\x0DReportedUsage\x12\x1E\x0A\x1AREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REALTIME\x10\x01\x12\x0B\x0A\x07OFFLINE\x10\x02\"2\x0A\x10VoiceCloneParams\x12\x1E\x0A\x11voice_cloning_key\x18\x01 \x01(\x09B\x03\xE0A\x02\"1\x0A\x18SynthesizeSpeechResponse\x12\x15\x0A\x0Daudio_content\x18\x01 \x01(\x0C\"\x9F\x01\x0A\x14StreamingAudioConfig\x12H\x0A\x0Eaudio_encoding\x18\x01 \x01(\x0E2+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xE0A\x02\x12\x1E\x0A\x11sample_rate_hertz\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x1D\x0A\x0Dspeaking_rate\x18\x03 \x01(\x01B\x06\xE0A\x04\xE0A\x01\"\x94\x02\x0A\x19StreamingSynthesizeConfig\x12F\x0A\x05voice\x18\x01 \x01(\x0B22.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xE0A\x02\x12W\x0A\x16streaming_audio_config\x18\x04 \x01(\x0B22.google.cloud.texttospeech.v1.StreamingAudioConfigB\x03\xE0A\x01\x12V\x0A\x15custom_pronunciations\x18\x05 \x01(\x0B22.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xE0A\x01\"\xBD\x01\x0A\x17StreamingSynthesisInput\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00\x12\x10\x0A\x06markup\x18\x05 \x01(\x09H\x00\x12P\x0A\x14multi_speaker_markup\x18\x07 \x01(\x0B20.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\x0A\x06prompt\x18\x06 \x01(\x09H\x01\x88\x01\x01B\x0E\x0A\x0Cinput_sourceB\x09\x0A\x07_prompt\"\xCE\x01\x0A\x1AStreamingSynthesizeRequest\x12S\x0A\x10streaming_config\x18\x01 \x01(\x0B27.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\x00\x12F\x0A\x05input\x18\x02 \x01(\x0B25.google.cloud.texttospeech.v1.StreamingSynthesisInputH\x00B\x13\x0A\x11streaming_request\"4\x0A\x1BStreamingSynthesizeResponse\x12\x15\x0A\x0Daudio_content\x18\x01 \x01(\x0C*W\x0A\x0FSsmlVoiceGender\x12!\x0A\x1DSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\x0A\x04MALE\x10\x01\x12\x0A\x0A\x06FEMALE\x10\x02\x12\x0B\x0A\x07NEUTRAL\x10\x03*{\x0A\x0DAudioEncoding\x12\x1E\x0A\x1AAUDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08LINEAR16\x10\x01\x12\x07\x0A\x03MP3\x10\x02\x12\x0C\x0A\x08OGG_OPUS\x10\x03\x12\x09\x0A\x05MULAW\x10\x05\x12\x08\x0A\x04ALAW\x10\x06\x12\x07\x0A\x03PCM\x10\x07\x12\x07\x0A\x03M4A\x10\x082\xC7\x04\x0A\x0CTextToSpeech\x12\x93\x01\x0A\x0AListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1A0.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\xDAA\x0Dlanguage_code\x82\xD3\xE4\x93\x02\x0C\x12\x0A/v1/voices\x12\xBC\x01\x0A\x10SynthesizeSpeech\x125.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1A6.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"9\xDAA\x18input,voice,audio_config\x82\xD3\xE4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*\x12\x90\x01\x0A\x13StreamingSynthesize\x128.google.cloud.texttospeech.v1.StreamingSynthesizeRequest\x1A9.google.cloud.texttospeech.v1.StreamingSynthesizeResponse\"\x00(\x010\x01\x1AO\xCAA\x1Btexttospeech.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xBC\x02\x0A com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZDcloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb\xA2\x02\x04CTTS\xAA\x02\x1CGoogle.Cloud.TextToSpeech.V1\xCA\x02\x1CGoogle\\Cloud\\TextToSpeech\\V1\xEA\x02\x1FGoogle::Cloud::TextToSpeech::V1\xEAAU\x0A\x1Bautoml.googleapis.com/Model\x126projects/{project}/locations/{location}/models/{model}b\x06proto3" + "\x0A\x89/\x0A,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1Cgoogle.cloud.texttospeech.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"/\x0A\x11ListVoicesRequest\x12\x1A\x0A\x0Dlanguage_code\x18\x01 \x01(\x09B\x03\xE0A\x01\"I\x0A\x12ListVoicesResponse\x123\x0A\x06voices\x18\x01 \x03(\x0B2#.google.cloud.texttospeech.v1.Voice\"\x94\x01\x0A\x05Voice\x12\x16\x0A\x0Elanguage_codes\x18\x01 \x03(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12B\x0A\x0Bssml_gender\x18\x03 \x01(\x0E2-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\x0A\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xA3\x07\x0A\x14AdvancedVoiceOptions\x12*\x0A\x1Dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12&\x0A\x14relax_safety_filters\x18\x08 \x01(\x08B\x08\x18\x01\xE0A\x04\xE0A\x01\x12b\x0A\x0Fsafety_settings\x18\x09 \x01(\x0B2A.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettingsB\x06\xE0A\x04\xE0A\x01\x12!\x0A\x0Fenable_textnorm\x18\x02 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x1A\xBC\x01\x0A\x0DSafetySetting\x12Q\x0A\x08category\x18\x01 \x01(\x0E2?.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory\x12X\x0A\x09threshold\x18\x02 \x01(\x0E2E.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold\x1Ad\x0A\x0ESafetySettings\x12R\x0A\x08settings\x18\x01 \x03(\x0B2@.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting\"\xB4\x01\x0A\x0CHarmCategory\x12\x1D\x0A\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\x0A\x1FHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1C\x0A\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\x0A\x1FHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\"\x9D\x01\x0A\x12HarmBlockThreshold\x12\$\x0A HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\x0A\x13BLOCK_LOW_AND_ABOVE\x10\x01\x12\x1A\x0A\x16BLOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\x0A\x0FBLOCK_ONLY_HIGH\x10\x03\x12\x0E\x0A\x0ABLOCK_NONE\x10\x04\x12\x07\x0A\x03OFF\x10\x05B \x0A\x1E_low_latency_journey_synthesisB\x12\x0A\x10_enable_textnorm\"\xE2\x02\x0A\x17SynthesizeSpeechRequest\x12@\x0A\x05input\x18\x01 \x01(\x0B2,.google.cloud.texttospeech.v1.SynthesisInputB\x03\xE0A\x02\x12F\x0A\x05voice\x18\x02 \x01(\x0B22.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xE0A\x02\x12D\x0A\x0Caudio_config\x18\x03 \x01(\x0B2).google.cloud.texttospeech.v1.AudioConfigB\x03\xE0A\x02\x12\\\x0A\x16advanced_voice_options\x18\x08 \x01(\x0B22.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xE0A\x01H\x00\x88\x01\x01B\x19\x0A\x17_advanced_voice_options\"\xA2\x03\x0A\x19CustomPronunciationParams\x12\x13\x0A\x06phrase\x18\x01 \x01(\x09H\x00\x88\x01\x01\x12h\x0A\x11phonetic_encoding\x18\x02 \x01(\x0E2H.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1A\x0A\x0Dpronunciation\x18\x03 \x01(\x09H\x02\x88\x01\x01\"\xB6\x01\x0A\x10PhoneticEncoding\x12!\x0A\x1DPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\x0A\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1D\x0A\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12'\x0A#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1C\x0A\x18PHONETIC_ENCODING_PINYIN\x10\x04B\x09\x0A\x07_phraseB\x14\x0A\x12_phonetic_encodingB\x10\x0A\x0E_pronunciation\"g\x0A\x14CustomPronunciations\x12O\x0A\x0Epronunciations\x18\x01 \x03(\x0B27.google.cloud.texttospeech.v1.CustomPronunciationParams\"\x90\x01\x0A\x12MultiSpeakerMarkup\x12I\x0A\x05turns\x18\x01 \x03(\x0B25.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\x03\xE0A\x02\x1A/\x0A\x04Turn\x12\x14\x0A\x07speaker\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04text\x18\x02 \x01(\x09B\x03\xE0A\x02\"P\x0A\x19MultispeakerPrebuiltVoice\x12\x1A\x0A\x0Dspeaker_alias\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aspeaker_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"v\x0A\x17MultiSpeakerVoiceConfig\x12[\x0A\x15speaker_voice_configs\x18\x02 \x03(\x0B27.google.cloud.texttospeech.v1.MultispeakerPrebuiltVoiceB\x03\xE0A\x02\"\x9C\x02\x0A\x0ESynthesisInput\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00\x12\x10\x0A\x06markup\x18\x05 \x01(\x09H\x00\x12\x0E\x0A\x04ssml\x18\x02 \x01(\x09H\x00\x12P\x0A\x14multi_speaker_markup\x18\x04 \x01(\x0B20.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\x0A\x06prompt\x18\x06 \x01(\x09H\x01\x88\x01\x01\x12V\x0A\x15custom_pronunciations\x18\x03 \x01(\x0B22.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xE0A\x01B\x0E\x0A\x0Cinput_sourceB\x09\x0A\x07_prompt\"\x8E\x03\x0A\x14VoiceSelectionParams\x12\x1A\x0A\x0Dlanguage_code\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12B\x0A\x0Bssml_gender\x18\x03 \x01(\x0E2-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12E\x0A\x0Ccustom_voice\x18\x04 \x01(\x0B2/.google.cloud.texttospeech.v1.CustomVoiceParams\x12H\x0A\x0Bvoice_clone\x18\x05 \x01(\x0B2..google.cloud.texttospeech.v1.VoiceCloneParamsB\x03\xE0A\x01\x12\x17\x0A\x0Amodel_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12^\x0A\x1Amulti_speaker_voice_config\x18\x07 \x01(\x0B25.google.cloud.texttospeech.v1.MultiSpeakerVoiceConfigB\x03\xE0A\x01\"\xF1\x01\x0A\x0BAudioConfig\x12H\x0A\x0Eaudio_encoding\x18\x01 \x01(\x0E2+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xE0A\x02\x12\x1D\x0A\x0Dspeaking_rate\x18\x02 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x15\x0A\x05pitch\x18\x03 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x1E\x0A\x0Evolume_gain_db\x18\x04 \x01(\x01B\x06\xE0A\x04\xE0A\x01\x12\x1E\x0A\x11sample_rate_hertz\x18\x05 \x01(\x05B\x03\xE0A\x01\x12\"\x0A\x12effects_profile_id\x18\x06 \x03(\x09B\x06\xE0A\x04\xE0A\x01\"\xF1\x01\x0A\x11CustomVoiceParams\x122\x0A\x05model\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bautoml.googleapis.com/Model\x12\\\x0A\x0Ereported_usage\x18\x03 \x01(\x0E2=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xE0A\x01\"J\x0A\x0DReportedUsage\x12\x1E\x0A\x1AREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REALTIME\x10\x01\x12\x0B\x0A\x07OFFLINE\x10\x02\"2\x0A\x10VoiceCloneParams\x12\x1E\x0A\x11voice_cloning_key\x18\x01 \x01(\x09B\x03\xE0A\x02\"1\x0A\x18SynthesizeSpeechResponse\x12\x15\x0A\x0Daudio_content\x18\x01 \x01(\x0C\"\x9F\x01\x0A\x14StreamingAudioConfig\x12H\x0A\x0Eaudio_encoding\x18\x01 \x01(\x0E2+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xE0A\x02\x12\x1E\x0A\x11sample_rate_hertz\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x1D\x0A\x0Dspeaking_rate\x18\x03 \x01(\x01B\x06\xE0A\x04\xE0A\x01\"\x8D\x03\x0A\x19StreamingSynthesizeConfig\x12F\x0A\x05voice\x18\x01 \x01(\x0B22.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xE0A\x02\x12W\x0A\x16streaming_audio_config\x18\x04 \x01(\x0B22.google.cloud.texttospeech.v1.StreamingAudioConfigB\x03\xE0A\x01\x12V\x0A\x15custom_pronunciations\x18\x05 \x01(\x0B22.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xE0A\x01\x12\\\x0A\x16advanced_voice_options\x18\x07 \x01(\x0B22.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xE0A\x01H\x00\x88\x01\x01B\x19\x0A\x17_advanced_voice_options\"\xBD\x01\x0A\x17StreamingSynthesisInput\x12\x0E\x0A\x04text\x18\x01 \x01(\x09H\x00\x12\x10\x0A\x06markup\x18\x05 \x01(\x09H\x00\x12P\x0A\x14multi_speaker_markup\x18\x07 \x01(\x0B20.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\x0A\x06prompt\x18\x06 \x01(\x09H\x01\x88\x01\x01B\x0E\x0A\x0Cinput_sourceB\x09\x0A\x07_prompt\"\xCE\x01\x0A\x1AStreamingSynthesizeRequest\x12S\x0A\x10streaming_config\x18\x01 \x01(\x0B27.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\x00\x12F\x0A\x05input\x18\x02 \x01(\x0B25.google.cloud.texttospeech.v1.StreamingSynthesisInputH\x00B\x13\x0A\x11streaming_request\"4\x0A\x1BStreamingSynthesizeResponse\x12\x15\x0A\x0Daudio_content\x18\x01 \x01(\x0C*W\x0A\x0FSsmlVoiceGender\x12!\x0A\x1DSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\x0A\x04MALE\x10\x01\x12\x0A\x0A\x06FEMALE\x10\x02\x12\x0B\x0A\x07NEUTRAL\x10\x03*{\x0A\x0DAudioEncoding\x12\x1E\x0A\x1AAUDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08LINEAR16\x10\x01\x12\x07\x0A\x03MP3\x10\x02\x12\x0C\x0A\x08OGG_OPUS\x10\x03\x12\x09\x0A\x05MULAW\x10\x05\x12\x08\x0A\x04ALAW\x10\x06\x12\x07\x0A\x03PCM\x10\x07\x12\x07\x0A\x03M4A\x10\x082\xC7\x04\x0A\x0CTextToSpeech\x12\x93\x01\x0A\x0AListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1A0.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\xDAA\x0Dlanguage_code\x82\xD3\xE4\x93\x02\x0C\x12\x0A/v1/voices\x12\xBC\x01\x0A\x10SynthesizeSpeech\x125.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1A6.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"9\xDAA\x18input,voice,audio_config\x82\xD3\xE4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*\x12\x90\x01\x0A\x13StreamingSynthesize\x128.google.cloud.texttospeech.v1.StreamingSynthesizeRequest\x1A9.google.cloud.texttospeech.v1.StreamingSynthesizeResponse\"\x00(\x010\x01\x1AO\xCAA\x1Btexttospeech.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xBC\x02\x0A com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZDcloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb\xA2\x02\x04CTTS\xAA\x02\x1CGoogle.Cloud.TextToSpeech.V1\xCA\x02\x1CGoogle\\Cloud\\TextToSpeech\\V1\xEA\x02\x1FGoogle::Cloud::TextToSpeech::V1\xEAAU\x0A\x1Bautoml.googleapis.com/Model\x126projects/{project}/locations/{location}/models/{model}b\x06proto3" , true); static::$is_initialized = true; diff --git a/TextToSpeech/src/V1/AdvancedVoiceOptions.php b/TextToSpeech/src/V1/AdvancedVoiceOptions.php index f202d638c3e..d30dc7f0873 100644 --- a/TextToSpeech/src/V1/AdvancedVoiceOptions.php +++ b/TextToSpeech/src/V1/AdvancedVoiceOptions.php @@ -23,14 +23,29 @@ class AdvancedVoiceOptions extends \Google\Protobuf\Internal\Message */ protected $low_latency_journey_synthesis = null; /** - * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only - * supported for accounts linked to Invoiced (Offline) Cloud billing accounts. - * Otherwise, will return result - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. + * Optional. Input only. Deprecated, use safety_settings instead. + * If true, relaxes safety filters for Gemini TTS. * - * Generated from protobuf field bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated */ protected $relax_safety_filters = false; + /** + * Optional. Input only. This applies to Gemini TTS only. If set, the category + * specified in the safety setting will be blocked if the harm probability is + * above the threshold. Otherwise, the safety filter will be disabled by + * default. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $safety_settings = null; + /** + * Optional. If true, textnorm will be applied to text input. This feature is + * enabled by default. Only applies for Gemini TTS. + * + * Generated from protobuf field optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_textnorm = null; /** * Constructor. @@ -42,10 +57,16 @@ class AdvancedVoiceOptions extends \Google\Protobuf\Internal\Message * Only for Journey voices. If false, the synthesis is context aware * and has a higher latency. * @type bool $relax_safety_filters - * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only - * supported for accounts linked to Invoiced (Offline) Cloud billing accounts. - * Otherwise, will return result - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. + * Optional. Input only. Deprecated, use safety_settings instead. + * If true, relaxes safety filters for Gemini TTS. + * @type \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySettings $safety_settings + * Optional. Input only. This applies to Gemini TTS only. If set, the category + * specified in the safety setting will be blocked if the harm probability is + * above the threshold. Otherwise, the safety filter will be disabled by + * default. + * @type bool $enable_textnorm + * Optional. If true, textnorm will be applied to text input. This feature is + * enabled by default. Only applies for Gemini TTS. * } */ public function __construct($data = NULL) { @@ -92,36 +113,118 @@ public function setLowLatencyJourneySynthesis($var) } /** - * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only - * supported for accounts linked to Invoiced (Offline) Cloud billing accounts. - * Otherwise, will return result - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. + * Optional. Input only. Deprecated, use safety_settings instead. + * If true, relaxes safety filters for Gemini TTS. * - * Generated from protobuf field bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return bool + * @deprecated */ public function getRelaxSafetyFilters() { + if ($this->relax_safety_filters !== false) { + @trigger_error('relax_safety_filters is deprecated.', E_USER_DEPRECATED); + } return $this->relax_safety_filters; } /** - * Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only - * supported for accounts linked to Invoiced (Offline) Cloud billing accounts. - * Otherwise, will return result - * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. + * Optional. Input only. Deprecated, use safety_settings instead. + * If true, relaxes safety filters for Gemini TTS. * - * Generated from protobuf field bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param bool $var * @return $this + * @deprecated */ public function setRelaxSafetyFilters($var) { + @trigger_error('relax_safety_filters is deprecated.', E_USER_DEPRECATED); GPBUtil::checkBool($var); $this->relax_safety_filters = $var; return $this; } + /** + * Optional. Input only. This applies to Gemini TTS only. If set, the category + * specified in the safety setting will be blocked if the harm probability is + * above the threshold. Otherwise, the safety filter will be disabled by + * default. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySettings|null + */ + public function getSafetySettings() + { + return $this->safety_settings; + } + + public function hasSafetySettings() + { + return isset($this->safety_settings); + } + + public function clearSafetySettings() + { + unset($this->safety_settings); + } + + /** + * Optional. Input only. This applies to Gemini TTS only. If set, the category + * specified in the safety setting will be blocked if the harm probability is + * above the threshold. Otherwise, the safety filter will be disabled by + * default. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySettings $var + * @return $this + */ + public function setSafetySettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySettings::class); + $this->safety_settings = $var; + + return $this; + } + + /** + * Optional. If true, textnorm will be applied to text input. This feature is + * enabled by default. Only applies for Gemini TTS. + * + * Generated from protobuf field optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableTextnorm() + { + return isset($this->enable_textnorm) ? $this->enable_textnorm : false; + } + + public function hasEnableTextnorm() + { + return isset($this->enable_textnorm); + } + + public function clearEnableTextnorm() + { + unset($this->enable_textnorm); + } + + /** + * Optional. If true, textnorm will be applied to text input. This feature is + * enabled by default. Only applies for Gemini TTS. + * + * Generated from protobuf field optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableTextnorm($var) + { + GPBUtil::checkBool($var); + $this->enable_textnorm = $var; + + return $this; + } + } diff --git a/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmBlockThreshold.php b/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmBlockThreshold.php new file mode 100644 index 00000000000..c2c2a32aae5 --- /dev/null +++ b/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmBlockThreshold.php @@ -0,0 +1,82 @@ +google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold + */ +class HarmBlockThreshold +{ + /** + * The harm block threshold is unspecified. + * + * Generated from protobuf enum HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + const HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + /** + * Block content with a low harm probability or higher. + * + * Generated from protobuf enum BLOCK_LOW_AND_ABOVE = 1; + */ + const BLOCK_LOW_AND_ABOVE = 1; + /** + * Block content with a medium harm probability or higher. + * + * Generated from protobuf enum BLOCK_MEDIUM_AND_ABOVE = 2; + */ + const BLOCK_MEDIUM_AND_ABOVE = 2; + /** + * Block content with a high harm probability. + * + * Generated from protobuf enum BLOCK_ONLY_HIGH = 3; + */ + const BLOCK_ONLY_HIGH = 3; + /** + * Do not block any content, regardless of its harm probability. + * + * Generated from protobuf enum BLOCK_NONE = 4; + */ + const BLOCK_NONE = 4; + /** + * Turn off the safety filter entirely. + * + * Generated from protobuf enum OFF = 5; + */ + const OFF = 5; + + private static $valueToName = [ + self::HARM_BLOCK_THRESHOLD_UNSPECIFIED => 'HARM_BLOCK_THRESHOLD_UNSPECIFIED', + self::BLOCK_LOW_AND_ABOVE => 'BLOCK_LOW_AND_ABOVE', + self::BLOCK_MEDIUM_AND_ABOVE => 'BLOCK_MEDIUM_AND_ABOVE', + self::BLOCK_ONLY_HIGH => 'BLOCK_ONLY_HIGH', + self::BLOCK_NONE => 'BLOCK_NONE', + self::OFF => 'OFF', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmCategory.php b/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmCategory.php new file mode 100644 index 00000000000..cf4329b14f5 --- /dev/null +++ b/TextToSpeech/src/V1/AdvancedVoiceOptions/HarmCategory.php @@ -0,0 +1,76 @@ +google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory + */ +class HarmCategory +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum HARM_CATEGORY_UNSPECIFIED = 0; + */ + const HARM_CATEGORY_UNSPECIFIED = 0; + /** + * Content that promotes violence or incites hatred against individuals or + * groups based on certain attributes. + * + * Generated from protobuf enum HARM_CATEGORY_HATE_SPEECH = 1; + */ + const HARM_CATEGORY_HATE_SPEECH = 1; + /** + * Content that promotes, facilitates, or enables dangerous activities. + * + * Generated from protobuf enum HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + const HARM_CATEGORY_DANGEROUS_CONTENT = 2; + /** + * Abusive, threatening, or content intended to bully, torment, or ridicule. + * + * Generated from protobuf enum HARM_CATEGORY_HARASSMENT = 3; + */ + const HARM_CATEGORY_HARASSMENT = 3; + /** + * Content that contains sexually explicit material. + * + * Generated from protobuf enum HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + const HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + private static $valueToName = [ + self::HARM_CATEGORY_UNSPECIFIED => 'HARM_CATEGORY_UNSPECIFIED', + self::HARM_CATEGORY_HATE_SPEECH => 'HARM_CATEGORY_HATE_SPEECH', + self::HARM_CATEGORY_DANGEROUS_CONTENT => 'HARM_CATEGORY_DANGEROUS_CONTENT', + self::HARM_CATEGORY_HARASSMENT => 'HARM_CATEGORY_HARASSMENT', + self::HARM_CATEGORY_SEXUALLY_EXPLICIT => 'HARM_CATEGORY_SEXUALLY_EXPLICIT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySetting.php b/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySetting.php new file mode 100644 index 00000000000..7a43b6d3e35 --- /dev/null +++ b/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySetting.php @@ -0,0 +1,101 @@ +google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting + */ +class SafetySetting extends \Google\Protobuf\Internal\Message +{ + /** + * The harm category to apply the safety setting to. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1; + */ + protected $category = 0; + /** + * The harm block threshold for the safety setting. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2; + */ + protected $threshold = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $category + * The harm category to apply the safety setting to. + * @type int $threshold + * The harm block threshold for the safety setting. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce(); + parent::__construct($data); + } + + /** + * The harm category to apply the safety setting to. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * The harm category to apply the safety setting to. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\HarmCategory::class); + $this->category = $var; + + return $this; + } + + /** + * The harm block threshold for the safety setting. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2; + * @return int + */ + public function getThreshold() + { + return $this->threshold; + } + + /** + * The harm block threshold for the safety setting. + * + * Generated from protobuf field .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2; + * @param int $var + * @return $this + */ + public function setThreshold($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\HarmBlockThreshold::class); + $this->threshold = $var; + + return $this; + } + +} + diff --git a/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySettings.php b/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySettings.php new file mode 100644 index 00000000000..8fedf168ccf --- /dev/null +++ b/TextToSpeech/src/V1/AdvancedVoiceOptions/SafetySettings.php @@ -0,0 +1,67 @@ +google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings + */ +class SafetySettings extends \Google\Protobuf\Internal\Message +{ + /** + * The safety settings for the request. + * + * Generated from protobuf field repeated .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting settings = 1; + */ + private $settings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySetting[] $settings + * The safety settings for the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Texttospeech\V1\CloudTts::initOnce(); + parent::__construct($data); + } + + /** + * The safety settings for the request. + * + * Generated from protobuf field repeated .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting settings = 1; + * @return RepeatedField<\Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySetting> + */ + public function getSettings() + { + return $this->settings; + } + + /** + * The safety settings for the request. + * + * Generated from protobuf field repeated .google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting settings = 1; + * @param \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySetting[] $var + * @return $this + */ + public function setSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions\SafetySetting::class); + $this->settings = $arr; + + return $this; + } + +} + diff --git a/TextToSpeech/src/V1/StreamingSynthesisInput.php b/TextToSpeech/src/V1/StreamingSynthesisInput.php index 7e1176739a6..49624284bec 100644 --- a/TextToSpeech/src/V1/StreamingSynthesisInput.php +++ b/TextToSpeech/src/V1/StreamingSynthesisInput.php @@ -34,8 +34,8 @@ class StreamingSynthesisInput extends \Google\Protobuf\Internal\Message * contains complete, terminating sentences, which results in better prosody * in the output audio. * @type string $markup - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * @type \Google\Cloud\TextToSpeech\V1\MultiSpeakerMarkup $multi_speaker_markup * Multi-speaker markup for Gemini TTS. This field may not * be used with any other voices. @@ -84,8 +84,8 @@ public function setText($var) } /** - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * * Generated from protobuf field string markup = 5; * @return string @@ -101,8 +101,8 @@ public function hasMarkup() } /** - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * * Generated from protobuf field string markup = 5; * @param string $var diff --git a/TextToSpeech/src/V1/StreamingSynthesizeConfig.php b/TextToSpeech/src/V1/StreamingSynthesizeConfig.php index f41fcec2400..d81c076523d 100644 --- a/TextToSpeech/src/V1/StreamingSynthesizeConfig.php +++ b/TextToSpeech/src/V1/StreamingSynthesizeConfig.php @@ -40,6 +40,12 @@ class StreamingSynthesizeConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ protected $custom_pronunciations = null; + /** + * Optional. Advanced voice options. + * + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $advanced_voice_options = null; /** * Constructor. @@ -60,6 +66,8 @@ class StreamingSynthesizeConfig extends \Google\Protobuf\Internal\Message * In order to customize the pronunciation of a phrase, there must be an exact * match of the phrase in the input types. If using SSML, the phrase must not * be inside a phoneme tag. + * @type \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions $advanced_voice_options + * Optional. Advanced voice options. * } */ public function __construct($data = NULL) { @@ -189,5 +197,41 @@ public function setCustomPronunciations($var) return $this; } + /** + * Optional. Advanced voice options. + * + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions|null + */ + public function getAdvancedVoiceOptions() + { + return $this->advanced_voice_options; + } + + public function hasAdvancedVoiceOptions() + { + return isset($this->advanced_voice_options); + } + + public function clearAdvancedVoiceOptions() + { + unset($this->advanced_voice_options); + } + + /** + * Optional. Advanced voice options. + * + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions $var + * @return $this + */ + public function setAdvancedVoiceOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions::class); + $this->advanced_voice_options = $var; + + return $this; + } + } diff --git a/TextToSpeech/src/V1/SynthesisInput.php b/TextToSpeech/src/V1/SynthesisInput.php index 192ac506546..45bae6a448e 100644 --- a/TextToSpeech/src/V1/SynthesisInput.php +++ b/TextToSpeech/src/V1/SynthesisInput.php @@ -51,8 +51,8 @@ class SynthesisInput extends \Google\Protobuf\Internal\Message * @type string $text * The raw text to be synthesized. * @type string $markup - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * @type string $ssml * The SSML document to be synthesized. The SSML document must be valid * and well-formed. Otherwise the RPC will fail and return @@ -115,8 +115,8 @@ public function setText($var) } /** - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * * Generated from protobuf field string markup = 5; * @return string @@ -132,8 +132,8 @@ public function hasMarkup() } /** - * Markup for HD voices specifically. This field may not be used with any - * other voices. + * Markup for Chirp 3: HD voices specifically. This field may not be used + * with any other voices. * * Generated from protobuf field string markup = 5; * @param string $var diff --git a/TextToSpeech/src/V1/SynthesizeSpeechRequest.php b/TextToSpeech/src/V1/SynthesizeSpeechRequest.php index 79c547bc582..2bb1c38b3c2 100644 --- a/TextToSpeech/src/V1/SynthesizeSpeechRequest.php +++ b/TextToSpeech/src/V1/SynthesizeSpeechRequest.php @@ -34,9 +34,9 @@ class SynthesizeSpeechRequest extends \Google\Protobuf\Internal\Message */ protected $audio_config = null; /** - * Advanced voice options. + * Optional. Advanced voice options. * - * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ protected $advanced_voice_options = null; @@ -70,7 +70,7 @@ public static function build(\Google\Cloud\TextToSpeech\V1\SynthesisInput $input * @type \Google\Cloud\TextToSpeech\V1\AudioConfig $audio_config * Required. The configuration of the synthesized audio. * @type \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions $advanced_voice_options - * Advanced voice options. + * Optional. Advanced voice options. * } */ public function __construct($data = NULL) { @@ -187,9 +187,9 @@ public function setAudioConfig($var) } /** - * Advanced voice options. + * Optional. Advanced voice options. * - * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions|null */ public function getAdvancedVoiceOptions() @@ -208,9 +208,9 @@ public function clearAdvancedVoiceOptions() } /** - * Advanced voice options. + * Optional. Advanced voice options. * - * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8; + * Generated from protobuf field optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\TextToSpeech\V1\AdvancedVoiceOptions $var * @return $this */