Skip to content

Commit 45445f4

Browse files
Google APIscopybara-github
authored andcommitted
feat:Add ALAW support on client library. And improve the ListVoiceRequest message's documentation
PiperOrigin-RevId: 365608171
1 parent c0507a2 commit 45445f4

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

google/cloud/texttospeech/v1beta1/cloud_tts.proto

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 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.
@@ -56,13 +56,14 @@ service TextToSpeech {
5656
// The top-level message sent by the client for the `ListVoices` method.
5757
message ListVoicesRequest {
5858
// 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
6364
// "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh"
6465
// will also get supported "cmn-\*" voices; specifying "zh-hk" will also get
65-
// supported "yue-\*" voices.
66+
// supported "yue-hk" voices.
6667
string language_code = 1 [(google.api.field_behavior) = OPTIONAL];
6768
}
6869

@@ -111,6 +112,10 @@ enum AudioEncoding {
111112
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
112113
// Audio content returned as MULAW also contains a WAV header.
113114
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;
114119
}
115120

116121
// The message returned to the client by the `ListVoices` method.
@@ -156,7 +161,7 @@ message SynthesizeSpeechRequest {
156161
// Required. The configuration of the synthesized audio.
157162
AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED];
158163

159-
// Whether and what timepoints should be returned in the response.
164+
// Whether and what timepoints are returned in the response.
160165
repeated TimepointType enable_time_pointing = 4;
161166
}
162167

0 commit comments

Comments
 (0)