@@ -37,7 +37,8 @@ option (google.api.resource_definition) = {
3737// Service that implements Google Cloud Text-to-Speech API.
3838service TextToSpeech {
3939 option (google.api.default_host ) = "texttospeech.googleapis.com" ;
40- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
40+ option (google.api.oauth_scopes ) =
41+ "https://www.googleapis.com/auth/cloud-platform" ;
4142
4243 // Returns a list of Voice supported for synthesis.
4344 rpc ListVoices (ListVoicesRequest ) returns (ListVoicesResponse ) {
@@ -49,7 +50,8 @@ service TextToSpeech {
4950
5051 // Synthesizes speech synchronously: receive results after all text input
5152 // has been processed.
52- rpc SynthesizeSpeech (SynthesizeSpeechRequest ) returns (SynthesizeSpeechResponse ) {
53+ rpc SynthesizeSpeech (SynthesizeSpeechRequest )
54+ returns (SynthesizeSpeechResponse ) {
5355 option (google.api.http ) = {
5456 post : "/v1/text:synthesize"
5557 body : "*"
@@ -81,7 +83,8 @@ enum SsmlVoiceGender {
8183// Configuration to set up audio encoder. The encoding determines the output
8284// audio format that we'd like.
8385enum AudioEncoding {
84- // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
86+ // Not specified. Will return result
87+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
8588 AUDIO_ENCODING_UNSPECIFIED = 0 ;
8689
8790 // Uncompressed 16-bit signed little-endian samples (Linear PCM).
@@ -156,8 +159,8 @@ message SynthesizeSpeechRequest {
156159
157160// Contains text input to be synthesized. Either `text` or `ssml` must be
158161// supplied. Supplying both or neither returns
159- // [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000
160- // characters .
162+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ]. The
163+ // input size is limited to 5000 bytes .
161164message SynthesisInput {
162165 // The input source, which is either plain text or SSML.
163166 oneof input_source {
@@ -166,17 +169,18 @@ message SynthesisInput {
166169
167170 // The SSML document to be synthesized. The SSML document must be valid
168171 // and well-formed. Otherwise the RPC will fail and return
169- // [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see
172+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
173+ // more information, see
170174 // [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
171175 string ssml = 2 ;
172176 }
173177}
174178
175179// Description of which voice to use for a synthesis request.
176180message VoiceSelectionParams {
177- // Required. The language (and potentially also the region) of the voice expressed as a
178- // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
179- // "en-US". This should not include a script tag (e.g. use
181+ // Required. The language (and potentially also the region) of the voice
182+ // expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
183+ // language tag, e.g. "en-US". This should not include a script tag (e.g. use
180184 // "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
181185 // from the input provided in the SynthesisInput. The TTS service
182186 // will use this parameter to help choose an appropriate voice. Note that
@@ -245,7 +249,7 @@ message AudioConfig {
245249 // converting to the desired sample rate (which might result in worse audio
246250 // quality), unless the specified sample rate is not supported for the
247251 // encoding chosen, in which case it will fail the request and return
248- // [google.rpc.Code.INVALID_ARGUMENT][].
252+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ].
249253 int32 sample_rate_hertz = 5 [(google.api.field_behavior ) = OPTIONAL ];
250254
251255 // Optional. Input only. An identifier which selects 'audio effects' profiles
@@ -282,9 +286,7 @@ message CustomVoiceParams {
282286 // Required. The name of the AutoML model that synthesizes the custom voice.
283287 string model = 1 [
284288 (google.api.field_behavior ) = REQUIRED ,
285- (google.api.resource_reference ) = {
286- type : "automl.googleapis.com/Model"
287- }
289+ (google.api.resource_reference ) = { type : "automl.googleapis.com/Model" }
288290 ];
289291
290292 // Optional. The usage of the synthesized audio to be reported.
0 commit comments