|
1 | | -// Copyright 2020 Google LLC |
| 1 | +// Copyright 2021 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. |
@@ -264,23 +264,6 @@ message VoiceSelectionParams { |
264 | 264 | SsmlVoiceGender ssml_gender = 2; |
265 | 265 | } |
266 | 266 |
|
267 | | -// Gender of the voice as described in |
268 | | -// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). |
269 | | -enum SsmlVoiceGender { |
270 | | - // An unspecified gender, which means that the client doesn't care which |
271 | | - // gender the selected voice will have. |
272 | | - SSML_VOICE_GENDER_UNSPECIFIED = 0; |
273 | | - |
274 | | - // A male voice. |
275 | | - SSML_VOICE_GENDER_MALE = 1; |
276 | | - |
277 | | - // A female voice. |
278 | | - SSML_VOICE_GENDER_FEMALE = 2; |
279 | | - |
280 | | - // A gender-neutral voice. |
281 | | - SSML_VOICE_GENDER_NEUTRAL = 3; |
282 | | -} |
283 | | - |
284 | 267 | // Configuration of how speech should be synthesized. |
285 | 268 | message SynthesizeSpeechConfig { |
286 | 269 | // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal |
@@ -313,6 +296,23 @@ message SynthesizeSpeechConfig { |
313 | 296 | VoiceSelectionParams voice = 4; |
314 | 297 | } |
315 | 298 |
|
| 299 | +// Gender of the voice as described in |
| 300 | +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). |
| 301 | +enum SsmlVoiceGender { |
| 302 | + // An unspecified gender, which means that the client doesn't care which |
| 303 | + // gender the selected voice will have. |
| 304 | + SSML_VOICE_GENDER_UNSPECIFIED = 0; |
| 305 | + |
| 306 | + // A male voice. |
| 307 | + SSML_VOICE_GENDER_MALE = 1; |
| 308 | + |
| 309 | + // A female voice. |
| 310 | + SSML_VOICE_GENDER_FEMALE = 2; |
| 311 | + |
| 312 | + // A gender-neutral voice. |
| 313 | + SSML_VOICE_GENDER_NEUTRAL = 3; |
| 314 | +} |
| 315 | + |
316 | 316 | // Instructs the speech synthesizer on how to generate the output audio content. |
317 | 317 | // If this audio config is supplied in a request, it overrides all existing |
318 | 318 | // text-to-speech settings applied to the agent. |
|
0 commit comments