Skip to content

Commit ae157a1

Browse files
Google APIscopybara-github
authored andcommitted
docs: update documentation to require certain fields
PiperOrigin-RevId: 530345646
1 parent b9792ee commit ae157a1

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

google/cloud/texttospeech/v1/cloud_tts_lrs.proto

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,23 @@ service TextToSpeechLongAudioSynthesize {
5656
// `SynthesizeLongAudio` method.
5757
message SynthesizeLongAudioRequest {
5858
// The resource states of the request in the form of
59-
// `projects/*/locations/*/voices/*`.
59+
// `projects/*/locations/*`.
6060
string parent = 1;
6161

6262
// Required. The Synthesizer requires either plain text or SSML as input.
63+
// While Long Audio is in preview, SSML is temporarily unsupported.
6364
SynthesisInput input = 2 [(google.api.field_behavior) = REQUIRED];
6465

6566
// Required. The configuration of the synthesized audio.
6667
AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED];
6768

68-
// Specifies a Cloud Storage URI for the synthesis results. Must be
69+
// Required. Specifies a Cloud Storage URI for the synthesis results. Must be
6970
// specified in the format: `gs://bucket_name/object_name`, and the bucket
7071
// must already exist.
71-
string output_gcs_uri = 4;
72+
string output_gcs_uri = 4 [(google.api.field_behavior) = REQUIRED];
7273

73-
// The desired voice of the synthesized audio.
74-
VoiceSelectionParams voice = 5;
74+
// Required. The desired voice of the synthesized audio.
75+
VoiceSelectionParams voice = 5 [(google.api.field_behavior) = REQUIRED];
7576
}
7677

7778
// The message returned to the client by the `SynthesizeLongAudio` method.

google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,23 @@ service TextToSpeechLongAudioSynthesize {
5656
// `SynthesizeLongAudio` method.
5757
message SynthesizeLongAudioRequest {
5858
// The resource states of the request in the form of
59-
// `projects/*/locations/*/voices/*`.
59+
// `projects/*/locations/*`.
6060
string parent = 1;
6161

6262
// Required. The Synthesizer requires either plain text or SSML as input.
63+
// While Long Audio is in preview, SSML is temporarily unsupported.
6364
SynthesisInput input = 2 [(google.api.field_behavior) = REQUIRED];
6465

6566
// Required. The configuration of the synthesized audio.
6667
AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED];
6768

68-
// Specifies a Cloud Storage URI for the synthesis results. Must be
69+
// Required. Specifies a Cloud Storage URI for the synthesis results. Must be
6970
// specified in the format: `gs://bucket_name/object_name`, and the bucket
7071
// must already exist.
71-
string output_gcs_uri = 4;
72+
string output_gcs_uri = 4 [(google.api.field_behavior) = REQUIRED];
7273

73-
// The desired voice of the synthesized audio.
74-
VoiceSelectionParams voice = 5;
74+
// Required. The desired voice of the synthesized audio.
75+
VoiceSelectionParams voice = 5 [(google.api.field_behavior) = REQUIRED];
7576
}
7677

7778
// The message returned to the client by the `SynthesizeLongAudio` method.

0 commit comments

Comments
 (0)