|
1 | | -// Copyright 2019 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. |
@@ -56,13 +56,14 @@ service TextToSpeech { |
56 | 56 | // The top-level message sent by the client for the `ListVoices` method. |
57 | 57 | message ListVoicesRequest { |
58 | 58 | // Optional. Recommended. |
59 | | - // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If |
60 | | - // specified, the ListVoices call will only return voices that can be used to |
61 | | - // synthesize this language_code. E.g. when specifying "en-NZ", you will get |
62 | | - // supported "en-\*" voices; when specifying "no", you will get supported |
| 59 | + // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. |
| 60 | + // If not specified, the API will return all supported voices. |
| 61 | + // If specified, the ListVoices call will only return voices that can be used |
| 62 | + // to synthesize this language_code. E.g. when specifying "en-NZ", you will |
| 63 | + // get supported "en-NZ" voices; when specifying "no", you will get supported |
63 | 64 | // "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh" |
64 | 65 | // will also get supported "cmn-\*" voices; specifying "zh-hk" will also get |
65 | | - // supported "yue-\*" voices. |
| 66 | + // supported "yue-hk" voices. |
66 | 67 | string language_code = 1 [(google.api.field_behavior) = OPTIONAL]; |
67 | 68 | } |
68 | 69 |
|
@@ -111,6 +112,10 @@ enum AudioEncoding { |
111 | 112 | // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
112 | 113 | // Audio content returned as MULAW also contains a WAV header. |
113 | 114 | MULAW = 5; |
| 115 | + |
| 116 | + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law. |
| 117 | + // Audio content returned as ALAW also contains a WAV header. |
| 118 | + ALAW = 6; |
114 | 119 | } |
115 | 120 |
|
116 | 121 | // The message returned to the client by the `ListVoices` method. |
@@ -156,7 +161,7 @@ message SynthesizeSpeechRequest { |
156 | 161 | // Required. The configuration of the synthesized audio. |
157 | 162 | AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED]; |
158 | 163 |
|
159 | | - // Whether and what timepoints should be returned in the response. |
| 164 | + // Whether and what timepoints are returned in the response. |
160 | 165 | repeated TimepointType enable_time_pointing = 4; |
161 | 166 | } |
162 | 167 |
|
|
0 commit comments