File tree Expand file tree Collapse file tree 3 files changed +21
-21
lines changed
packages/google-cloud-texttospeech
protos/google/cloud/texttospeech/v1 Expand file tree Collapse file tree 3 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ service TextToSpeech {
61
61
// The top-level message sent by the client for the `ListVoices` method.
62
62
message ListVoicesRequest {
63
63
// Optional. Recommended.
64
- // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
65
- // specified, the ListVoices call will only return voices that can be used to
66
- // synthesize this language_code. E.g. when specifying `"en-NZ"`, you will get
67
- // supported `"en-\*"` voices; when specifying `"no"`, you will get supported
68
- // `"no-\* "` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices; specifying
69
- // `"zh "` will also get supported `"cmn -\*"` voices; specifying `"zh-hk"` will
70
- // also get supported `"yue-\*"` voices .
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
71
string language_code = 1 [(google.api.field_behavior ) = OPTIONAL ];
72
72
}
73
73
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ function main() {
22
22
*/
23
23
/**
24
24
* Optional. Recommended.
25
- * BCP-47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
26
- * specified, the ListVoices call will only return voices that can be used to
27
- * synthesize this language_code. E.g. when specifying `"en-NZ"`, you will get
28
- * supported `"en-\*"` voices; when specifying `"no"`, you will get supported
29
- * `"no-\* "` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices; specifying
30
- * `"zh "` will also get supported `"cmn -\*"` voices; specifying `"zh-hk"` will
31
- * also get supported `"yue-\*"` voices .
25
+ * BCP-47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
26
+ * If not specified, the API will return all supported voices.
27
+ * If specified, the ListVoices call will only return voices that can be used
28
+ * to synthesize this language_code. For example, if you specify `"en-NZ"`,
29
+ * all `"en-NZ "` voices will be returned. If you specify `"no"`, both
30
+ * `"no-\* "` (Norwegian) and `"nb -\*"` (Norwegian Bokmal) voices will be
31
+ * returned .
32
32
*/
33
33
// const languageCode = 'abc123'
34
34
Original file line number Diff line number Diff line change @@ -288,13 +288,13 @@ export class TextToSpeechClient {
288
288
* The request object that will be sent.
289
289
* @param {string } [request.languageCode]
290
290
* Optional. Recommended.
291
- * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
292
- * specified, the ListVoices call will only return voices that can be used to
293
- * synthesize this language_code. E.g. when specifying `"en-NZ"`, you will get
294
- * supported `"en-\*"` voices; when specifying `"no"`, you will get supported
295
- * `"no-\* "` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices; specifying
296
- * `"zh "` will also get supported `"cmn -\*"` voices; specifying `"zh-hk"` will
297
- * also get supported `"yue-\*"` voices .
291
+ * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
292
+ * If not specified, the API will return all supported voices.
293
+ * If specified, the ListVoices call will only return voices that can be used
294
+ * to synthesize this language_code. For example, if you specify `"en-NZ"`,
295
+ * all `"en-NZ "` voices will be returned. If you specify `"no"`, both
296
+ * `"no-\* "` (Norwegian) and `"nb -\*"` (Norwegian Bokmal) voices will be
297
+ * returned .
298
298
* @param {object } [options]
299
299
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
300
300
* @returns {Promise } - The promise which resolves to an array.
You can’t perform that action at this time.
0 commit comments