1- // Copyright 2020 Google LLC
1+ // Copyright 2021 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.
@@ -268,23 +268,6 @@ message VoiceSelectionParams {
268268 SsmlVoiceGender ssml_gender = 2 ;
269269}
270270
271- // Gender of the voice as described in
272- // [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
273- enum SsmlVoiceGender {
274- // An unspecified gender, which means that the client doesn't care which
275- // gender the selected voice will have.
276- SSML_VOICE_GENDER_UNSPECIFIED = 0 ;
277-
278- // A male voice.
279- SSML_VOICE_GENDER_MALE = 1 ;
280-
281- // A female voice.
282- SSML_VOICE_GENDER_FEMALE = 2 ;
283-
284- // A gender-neutral voice.
285- SSML_VOICE_GENDER_NEUTRAL = 3 ;
286- }
287-
288271// Configuration of how speech should be synthesized.
289272message SynthesizeSpeechConfig {
290273 // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
@@ -317,6 +300,23 @@ message SynthesizeSpeechConfig {
317300 VoiceSelectionParams voice = 4 ;
318301}
319302
303+ // Gender of the voice as described in
304+ // [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
305+ enum SsmlVoiceGender {
306+ // An unspecified gender, which means that the client doesn't care which
307+ // gender the selected voice will have.
308+ SSML_VOICE_GENDER_UNSPECIFIED = 0 ;
309+
310+ // A male voice.
311+ SSML_VOICE_GENDER_MALE = 1 ;
312+
313+ // A female voice.
314+ SSML_VOICE_GENDER_FEMALE = 2 ;
315+
316+ // A gender-neutral voice.
317+ SSML_VOICE_GENDER_NEUTRAL = 3 ;
318+ }
319+
320320// Instructs the speech synthesizer how to generate the output audio content.
321321// If this audio config is supplied in a request, it overrides all existing
322322// text-to-speech settings applied to the agent.
@@ -335,6 +335,12 @@ message OutputAudioConfig {
335335 SynthesizeSpeechConfig synthesize_speech_config = 3 ;
336336}
337337
338+ // A wrapper of repeated TelephonyDtmf digits.
339+ message TelephonyDtmfEvents {
340+ // A sequence of TelephonyDtmf digits.
341+ repeated TelephonyDtmf dtmf_events = 1 ;
342+ }
343+
338344// Audio encoding of the output audio format in Text-To-Speech.
339345enum OutputAudioEncoding {
340346 // Not specified.
@@ -354,12 +360,6 @@ enum OutputAudioEncoding {
354360 OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3 ;
355361}
356362
357- // A wrapper of repeated TelephonyDtmf digits.
358- message TelephonyDtmfEvents {
359- // A sequence of TelephonyDtmf digits.
360- repeated TelephonyDtmf dtmf_events = 1 ;
361- }
362-
363363// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)
364364// digit in Telephony Gateway.
365365enum TelephonyDtmf {
0 commit comments