Skip to content

Commit 34e52ce

Browse files
docs: update comments for ListVoicesRequest (#581)
PiperOrigin-RevId: 424942023 Source-Link: googleapis/googleapis@8ce1934 Source-Link: googleapis/googleapis-gen@40dbea3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDBkYmVhMzQyNTRhYWVkYmUyZjhjNDgzYTU0ZTMyZDA3NWQ1ZmVkOSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent bb5eaad commit 34e52ce

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

packages/google-cloud-texttospeech/protos/google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ service TextToSpeech {
6161
// The top-level message sent by the client for the `ListVoices` method.
6262
message ListVoicesRequest {
6363
// 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.
7171
string language_code = 1 [(google.api.field_behavior) = OPTIONAL];
7272
}
7373

packages/google-cloud-texttospeech/samples/generated/v1/text_to_speech.list_voices.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ function main() {
2222
*/
2323
/**
2424
* 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.
3232
*/
3333
// const languageCode = 'abc123'
3434

packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ export class TextToSpeechClient {
288288
* The request object that will be sent.
289289
* @param {string} [request.languageCode]
290290
* 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.
298298
* @param {object} [options]
299299
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
300300
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)