1
- // Copyright 2021 Google LLC
1
+ // Copyright 2022 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -58,19 +58,6 @@ service TextToSpeech {
58
58
}
59
59
}
60
60
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
-
74
61
// Gender of the voice as described in
75
62
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
76
63
enum SsmlVoiceGender {
@@ -94,7 +81,7 @@ enum SsmlVoiceGender {
94
81
// Configuration to set up audio encoder. The encoding determines the output
95
82
// audio format that we'd like.
96
83
enum 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 ].
98
85
AUDIO_ENCODING_UNSPECIFIED = 0 ;
99
86
100
87
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
@@ -122,6 +109,19 @@ enum AudioEncoding {
122
109
ALAW = 6 ;
123
110
}
124
111
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
+
125
125
// The message returned to the client by the `ListVoices` method.
126
126
message ListVoicesResponse {
127
127
// The list of voices.
@@ -171,8 +171,8 @@ message SynthesizeSpeechRequest {
171
171
172
172
// Contains text input to be synthesized. Either `text` or `ssml` must be
173
173
// 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 .
176
176
message SynthesisInput {
177
177
// The input source, which is either plain text or SSML.
178
178
oneof input_source {
@@ -181,7 +181,7 @@ message SynthesisInput {
181
181
182
182
// The SSML document to be synthesized. The SSML document must be valid
183
183
// 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
185
185
// [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
186
186
string ssml = 2 ;
187
187
}
@@ -260,7 +260,7 @@ message AudioConfig {
260
260
// converting to the desired sample rate (which might result in worse audio
261
261
// quality), unless the specified sample rate is not supported for the
262
262
// 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 ].
264
264
int32 sample_rate_hertz = 5 [(google.api.field_behavior ) = OPTIONAL ];
265
265
266
266
// Optional. Input only. An identifier which selects 'audio effects' profiles
0 commit comments