Skip to content

Commit

Permalink
feat(texttospeech): update the api
Browse files Browse the repository at this point in the history
#### texttospeech:v1

The following keys were added:
- schemas.CustomVoiceParams (Total Keys: 4)
- schemas.VoiceSelectionParams.properties.customVoice.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Mar 22, 2022
1 parent 3e0f552 commit 8aea2ac
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/dyn/texttospeech_v1.text.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ <h3>Method Details</h3>
&quot;text&quot;: &quot;A String&quot;, # The raw text to be synthesized.
},
&quot;voice&quot;: { # Description of which voice to use for a synthesis request. # Required. The desired voice of the synthesized audio.
&quot;customVoice&quot;: { # Description of the custom voice to be synthesized. # The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration.
&quot;model&quot;: &quot;A String&quot;, # Required. The name of the AutoML model that synthesizes the custom voice.
&quot;reportedUsage&quot;: &quot;A String&quot;, # Optional. The usage of the synthesized audio to be reported.
},
&quot;languageCode&quot;: &quot;A String&quot;, # 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. &quot;en-US&quot;. This should not include a script tag (e.g. use &quot;cmn-cn&quot; rather than &quot;cmn-Hant-cn&quot;), 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&#x27;t a Canadian voice available), or even a different language, e.g. using &quot;nb&quot; (Norwegian Bokmal) instead of &quot;no&quot; (Norwegian)&quot;.
&quot;name&quot;: &quot;A String&quot;, # The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and gender.
&quot;ssmlGender&quot;: &quot;A String&quot;, # The preferred gender of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement; if a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.
Expand Down
31 changes: 30 additions & 1 deletion googleapiclient/discovery_cache/documents/texttospeech.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
}
}
},
"revision": "20220228",
"revision": "20220311",
"rootUrl": "https://texttospeech.googleapis.com/",
"schemas": {
"AudioConfig": {
Expand Down Expand Up @@ -210,6 +210,31 @@
},
"type": "object"
},
"CustomVoiceParams": {
"description": "Description of the custom voice to be synthesized.",
"id": "CustomVoiceParams",
"properties": {
"model": {
"description": "Required. The name of the AutoML model that synthesizes the custom voice.",
"type": "string"
},
"reportedUsage": {
"description": "Optional. The usage of the synthesized audio to be reported.",
"enum": [
"REPORTED_USAGE_UNSPECIFIED",
"REALTIME",
"OFFLINE"
],
"enumDescriptions": [
"Request with reported usage unspecified will be rejected.",
"For scenarios where the synthesized audio is not downloadable and can only be used once. For example, real-time request in IVR system.",
"For scenarios where the synthesized audio is downloadable and can be reused. For example, the synthesized audio is downloaded, stored in customer service system and played repeatedly."
],
"type": "string"
}
},
"type": "object"
},
"ListVoicesResponse": {
"description": "The message returned to the client by the `ListVoices` method.",
"id": "ListVoicesResponse",
Expand Down Expand Up @@ -313,6 +338,10 @@
"description": "Description of which voice to use for a synthesis request.",
"id": "VoiceSelectionParams",
"properties": {
"customVoice": {
"$ref": "CustomVoiceParams",
"description": "The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration."
},
"languageCode": {
"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)\".",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
}
}
},
"revision": "20220228",
"revision": "20220311",
"rootUrl": "https://texttospeech.googleapis.com/",
"schemas": {
"AudioConfig": {
Expand Down

0 comments on commit 8aea2ac

Please sign in to comment.