Skip to content

Commit 4775e17

Browse files
feat(texttospeech): update the API
#### texttospeech:v1beta1 The following keys were added: - schemas.VoiceSelectionParams.properties.modelName.description - schemas.VoiceSelectionParams.properties.modelName.type #### texttospeech:v1 The following keys were added: - schemas.VoiceSelectionParams.properties.modelName.description - schemas.VoiceSelectionParams.properties.modelName.type
1 parent c3951ea commit 4775e17

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

discovery/texttospeech-v1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
}
319319
}
320320
},
321-
"revision": "20250716",
321+
"revision": "20250805",
322322
"rootUrl": "https://texttospeech.googleapis.com/",
323323
"schemas": {
324324
"AdvancedVoiceOptions": {
@@ -791,6 +791,10 @@
791791
"description": "Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. \"en-US\". This should not include a script tag (e.g. use \"cmn-cn\" rather than \"cmn-Hant-cn\"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using \"nb\" (Norwegian Bokmal) instead of \"no\" (Norwegian)\".",
792792
"type": "string"
793793
},
794+
"modelName": {
795+
"description": "Optional. The name of the model. If set, the service will choose the model matching the specified configuration.",
796+
"type": "string"
797+
},
794798
"name": {
795799
"description": "The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.",
796800
"type": "string"

discovery/texttospeech-v1beta1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
}
262262
}
263263
},
264-
"revision": "20250716",
264+
"revision": "20250805",
265265
"rootUrl": "https://texttospeech.googleapis.com/",
266266
"schemas": {
267267
"AdvancedVoiceOptions": {
@@ -766,6 +766,10 @@
766766
"description": "Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. \"en-US\". This should not include a script tag (e.g. use \"cmn-cn\" rather than \"cmn-Hant-cn\"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using \"nb\" (Norwegian Bokmal) instead of \"no\" (Norwegian)\".",
767767
"type": "string"
768768
},
769+
"modelName": {
770+
"description": "Optional. The name of the model. If set, the service will choose the model matching the specified configuration.",
771+
"type": "string"
772+
},
769773
"name": {
770774
"description": "The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.",
771775
"type": "string"

src/apis/texttospeech/v1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ export namespace texttospeech_v1 {
453453
* Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no" (Norwegian)".
454454
*/
455455
languageCode?: string | null;
456+
/**
457+
* Optional. The name of the model. If set, the service will choose the model matching the specified configuration.
458+
*/
459+
modelName?: string | null;
456460
/**
457461
* The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.
458462
*/

src/apis/texttospeech/v1beta1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ export namespace texttospeech_v1beta1 {
468468
* Required. The language (and potentially also the region) of the voice expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred from the input provided in the SynthesisInput. The TTS service will use this parameter to help choose an appropriate voice. Note that the TTS service may choose a voice with a slightly different language code than the one selected; it may substitute a different region (e.g. using en-US rather than en-CA if there isn't a Canadian voice available), or even a different language, e.g. using "nb" (Norwegian Bokmal) instead of "no" (Norwegian)".
469469
*/
470470
languageCode?: string | null;
471+
/**
472+
* Optional. The name of the model. If set, the service will choose the model matching the specified configuration.
473+
*/
474+
modelName?: string | null;
471475
/**
472476
* The name of the voice. If both the name and the gender are not set, the service will choose a voice based on the other parameters such as language_code.
473477
*/

0 commit comments

Comments
 (0)