diff --git a/TextToSpeech/metadata/V1/CloudTtsLrs.php b/TextToSpeech/metadata/V1/CloudTtsLrs.php index 7cf03fc40ab0..2d3620e4601d 100644 --- a/TextToSpeech/metadata/V1/CloudTtsLrs.php +++ b/TextToSpeech/metadata/V1/CloudTtsLrs.php @@ -22,15 +22,15 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( ' - + -0google/cloud/texttospeech/v1/cloud_tts_lrs.protogoogle.cloud.texttospeech.v1google/api/client.protogoogle/api/field_behavior.proto,google/cloud/texttospeech/v1/cloud_tts.proto#google/longrunning/operations.protogoogle/protobuf/timestamp.proto" +0google/cloud/texttospeech/v1/cloud_tts_lrs.protogoogle.cloud.texttospeech.v1google/api/client.protogoogle/api/field_behavior.proto,google/cloud/texttospeech/v1/cloud_tts.proto#google/longrunning/operations.protogoogle/protobuf/timestamp.proto" SynthesizeLongAudioRequest parent ( @ input ( 2,.google.cloud.texttospeech.v1.SynthesisInputBAD - audio_config ( 2).google.cloud.texttospeech.v1.AudioConfigBA -output_gcs_uri ( A -voice ( 22.google.cloud.texttospeech.v1.VoiceSelectionParams" + audio_config ( 2).google.cloud.texttospeech.v1.AudioConfigBA +output_gcs_uri ( BAF +voice ( 22.google.cloud.texttospeech.v1.VoiceSelectionParamsBA" SynthesizeLongAudioResponse" SynthesizeLongAudioMetadata. diff --git a/TextToSpeech/src/V1/Gapic/TextToSpeechLongAudioSynthesizeGapicClient.php b/TextToSpeech/src/V1/Gapic/TextToSpeechLongAudioSynthesizeGapicClient.php index 78b96ac75668..cadbd40d96fb 100644 --- a/TextToSpeech/src/V1/Gapic/TextToSpeechLongAudioSynthesizeGapicClient.php +++ b/TextToSpeech/src/V1/Gapic/TextToSpeechLongAudioSynthesizeGapicClient.php @@ -366,19 +366,20 @@ public function __construct(array $options = []) * ``` * * @param SynthesisInput $input Required. The Synthesizer requires either plain text or SSML as input. + * While Long Audio is in preview, SSML is temporarily unsupported. * @param AudioConfig $audioConfig Required. The configuration of the synthesized audio. * @param array $optionalArgs { * Optional. * * @type string $parent * The resource states of the request in the form of - * `projects/*/locations/*/voices/*`. + * `projects/*/locations/*`. * @type string $outputGcsUri - * Specifies a Cloud Storage URI for the synthesis results. Must be + * Required. Specifies a Cloud Storage URI for the synthesis results. Must be * specified in the format: `gs://bucket_name/object_name`, and the bucket * must already exist. * @type VoiceSelectionParams $voice - * The desired voice of the synthesized audio. + * Required. The desired voice of the synthesized audio. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on diff --git a/TextToSpeech/src/V1/SynthesizeLongAudioRequest.php b/TextToSpeech/src/V1/SynthesizeLongAudioRequest.php index 7b1cac4128dd..350d9ff8b7c7 100644 --- a/TextToSpeech/src/V1/SynthesizeLongAudioRequest.php +++ b/TextToSpeech/src/V1/SynthesizeLongAudioRequest.php @@ -18,13 +18,14 @@ class SynthesizeLongAudioRequest extends \Google\Protobuf\Internal\Message { /** * The resource states of the request in the form of - * `projects/*/locations/*/voices/*`. + * `projects/*/locations/*`. * * Generated from protobuf field string parent = 1; */ private $parent = ''; /** * Required. The Synthesizer requires either plain text or SSML as input. + * While Long Audio is in preview, SSML is temporarily unsupported. * * Generated from protobuf field .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; */ @@ -36,17 +37,17 @@ class SynthesizeLongAudioRequest extends \Google\Protobuf\Internal\Message */ private $audio_config = null; /** - * Specifies a Cloud Storage URI for the synthesis results. Must be + * Required. Specifies a Cloud Storage URI for the synthesis results. Must be * specified in the format: `gs://bucket_name/object_name`, and the bucket * must already exist. * - * Generated from protobuf field string output_gcs_uri = 4; + * Generated from protobuf field string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED]; */ private $output_gcs_uri = ''; /** - * The desired voice of the synthesized audio. + * Required. The desired voice of the synthesized audio. * - * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5; + * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; */ private $voice = null; @@ -58,17 +59,18 @@ class SynthesizeLongAudioRequest extends \Google\Protobuf\Internal\Message * * @type string $parent * The resource states of the request in the form of - * `projects/*/locations/*/voices/*`. + * `projects/*/locations/*`. * @type \Google\Cloud\TextToSpeech\V1\SynthesisInput $input * Required. The Synthesizer requires either plain text or SSML as input. + * While Long Audio is in preview, SSML is temporarily unsupported. * @type \Google\Cloud\TextToSpeech\V1\AudioConfig $audio_config * Required. The configuration of the synthesized audio. * @type string $output_gcs_uri - * Specifies a Cloud Storage URI for the synthesis results. Must be + * Required. Specifies a Cloud Storage URI for the synthesis results. Must be * specified in the format: `gs://bucket_name/object_name`, and the bucket * must already exist. * @type \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams $voice - * The desired voice of the synthesized audio. + * Required. The desired voice of the synthesized audio. * } */ public function __construct($data = NULL) { @@ -78,7 +80,7 @@ public function __construct($data = NULL) { /** * The resource states of the request in the form of - * `projects/*/locations/*/voices/*`. + * `projects/*/locations/*`. * * Generated from protobuf field string parent = 1; * @return string @@ -90,7 +92,7 @@ public function getParent() /** * The resource states of the request in the form of - * `projects/*/locations/*/voices/*`. + * `projects/*/locations/*`. * * Generated from protobuf field string parent = 1; * @param string $var @@ -106,6 +108,7 @@ public function setParent($var) /** * Required. The Synthesizer requires either plain text or SSML as input. + * While Long Audio is in preview, SSML is temporarily unsupported. * * Generated from protobuf field .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\TextToSpeech\V1\SynthesisInput|null @@ -127,6 +130,7 @@ public function clearInput() /** * Required. The Synthesizer requires either plain text or SSML as input. + * While Long Audio is in preview, SSML is temporarily unsupported. * * Generated from protobuf field .google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\TextToSpeech\V1\SynthesisInput $var @@ -177,11 +181,11 @@ public function setAudioConfig($var) } /** - * Specifies a Cloud Storage URI for the synthesis results. Must be + * Required. Specifies a Cloud Storage URI for the synthesis results. Must be * specified in the format: `gs://bucket_name/object_name`, and the bucket * must already exist. * - * Generated from protobuf field string output_gcs_uri = 4; + * Generated from protobuf field string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getOutputGcsUri() @@ -190,11 +194,11 @@ public function getOutputGcsUri() } /** - * Specifies a Cloud Storage URI for the synthesis results. Must be + * Required. Specifies a Cloud Storage URI for the synthesis results. Must be * specified in the format: `gs://bucket_name/object_name`, and the bucket * must already exist. * - * Generated from protobuf field string output_gcs_uri = 4; + * Generated from protobuf field string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ @@ -207,9 +211,9 @@ public function setOutputGcsUri($var) } /** - * The desired voice of the synthesized audio. + * Required. The desired voice of the synthesized audio. * - * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5; + * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams|null */ public function getVoice() @@ -228,9 +232,9 @@ public function clearVoice() } /** - * The desired voice of the synthesized audio. + * Required. The desired voice of the synthesized audio. * - * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5; + * Generated from protobuf field .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\TextToSpeech\V1\VoiceSelectionParams $var * @return $this */