1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -58,19 +58,6 @@ service TextToSpeech {
5858 }
5959}
6060
61- // The top-level message sent by the client for the `ListVoices` method.
62- message ListVoicesRequest {
63- // Optional. Recommended.
64- // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
65- // If not specified, the API will return all supported voices.
66- // If specified, the ListVoices call will only return voices that can be used
67- // to synthesize this language_code. For example, if you specify `"en-NZ"`,
68- // all `"en-NZ"` voices will be returned. If you specify `"no"`, both
69- // `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
70- // returned.
71- string language_code = 1 [(google.api.field_behavior ) = OPTIONAL ];
72- }
73-
7461// Gender of the voice as described in
7562// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
7663enum SsmlVoiceGender {
@@ -94,7 +81,7 @@ enum SsmlVoiceGender {
9481// Configuration to set up audio encoder. The encoding determines the output
9582// audio format that we'd like.
9683enum AudioEncoding {
97- // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
84+ // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ].
9885 AUDIO_ENCODING_UNSPECIFIED = 0 ;
9986
10087 // Uncompressed 16-bit signed little-endian samples (Linear PCM).
@@ -122,6 +109,19 @@ enum AudioEncoding {
122109 ALAW = 6 ;
123110}
124111
112+ // The top-level message sent by the client for the `ListVoices` method.
113+ message ListVoicesRequest {
114+ // Optional. Recommended.
115+ // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
116+ // If not specified, the API will return all supported voices.
117+ // If specified, the ListVoices call will only return voices that can be used
118+ // to synthesize this language_code. For example, if you specify `"en-NZ"`,
119+ // all `"en-NZ"` voices will be returned. If you specify `"no"`, both
120+ // `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
121+ // returned.
122+ string language_code = 1 [(google.api.field_behavior ) = OPTIONAL ];
123+ }
124+
125125// The message returned to the client by the `ListVoices` method.
126126message ListVoicesResponse {
127127 // The list of voices.
@@ -171,8 +171,8 @@ message SynthesizeSpeechRequest {
171171
172172// Contains text input to be synthesized. Either `text` or `ssml` must be
173173// supplied. Supplying both or neither returns
174- // [google.rpc.Code.INVALID_ARGUMENT][]. The input size is limited to 5000
175- // characters .
174+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ]. The input size is limited to 5000
175+ // bytes .
176176message SynthesisInput {
177177 // The input source, which is either plain text or SSML.
178178 oneof input_source {
@@ -181,7 +181,7 @@ message SynthesisInput {
181181
182182 // The SSML document to be synthesized. The SSML document must be valid
183183 // and well-formed. Otherwise the RPC will fail and return
184- // [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see
184+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ]. For more information, see
185185 // [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
186186 string ssml = 2 ;
187187 }
@@ -260,7 +260,7 @@ message AudioConfig {
260260 // converting to the desired sample rate (which might result in worse audio
261261 // quality), unless the specified sample rate is not supported for the
262262 // encoding chosen, in which case it will fail the request and return
263- // [google.rpc.Code.INVALID_ARGUMENT][].
263+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT ].
264264 int32 sample_rate_hertz = 5 [(google.api.field_behavior ) = OPTIONAL ];
265265
266266 // Optional. Input only. An identifier which selects 'audio effects' profiles
0 commit comments