mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-14 23:30:56 +01:00
Update all json files; make some fixes to make it work at all
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"languageCode": {
|
||||
"description": "Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. E.g. when specifying \"en-NZ\", you will get supported \"en-NZ\" voices; when specifying \"no\", you will get supported \"no-\\*\" (Norwegian) and \"nb-\\*\" (Norwegian Bokmal) voices; specifying \"zh\" will also get supported \"cmn-\\*\" voices; specifying \"zh-hk\" will also get supported \"yue-hk\" voices.",
|
||||
"description": "Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify `\"en-NZ\"`, all `\"en-NZ\"` voices will be returned. If you specify `\"no\"`, both `\"no-\\*\"` (Norwegian) and `\"nb-\\*\"` (Norwegian Bokmal) voices will be returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -153,7 +153,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210326",
|
||||
"revision": "20220228",
|
||||
"rootUrl": "https://texttospeech.googleapis.com/",
|
||||
"schemas": {
|
||||
"AudioConfig": {
|
||||
@@ -166,13 +166,17 @@
|
||||
"AUDIO_ENCODING_UNSPECIFIED",
|
||||
"LINEAR16",
|
||||
"MP3",
|
||||
"OGG_OPUS"
|
||||
"OGG_OPUS",
|
||||
"MULAW",
|
||||
"ALAW"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT.",
|
||||
"Uncompressed 16-bit signed little-endian samples (Linear PCM). Audio content returned as LINEAR16 also contains a WAV header.",
|
||||
"MP3 audio at 32kbps.",
|
||||
"Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate."
|
||||
"Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.",
|
||||
"8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. Audio content returned as MULAW also contains a WAV header.",
|
||||
"8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law. Audio content returned as ALAW also contains a WAV header."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"languageCode": {
|
||||
"description": "Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. E.g. when specifying \"en-NZ\", you will get supported \"en-NZ\" voices; when specifying \"no\", you will get supported \"no-\\*\" (Norwegian) and \"nb-\\*\" (Norwegian Bokmal) voices; specifying \"zh\" will also get supported \"cmn-\\*\" voices; specifying \"zh-hk\" will also get supported \"yue-hk\" voices.",
|
||||
"description": "Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify `\"en-NZ\"`, all `\"en-NZ\"` voices will be returned. If you specify `\"no\"`, both `\"no-\\*\"` (Norwegian) and `\"nb-\\*\"` (Norwegian Bokmal) voices will be returned.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -153,7 +153,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210326",
|
||||
"revision": "20220228",
|
||||
"rootUrl": "https://texttospeech.googleapis.com/",
|
||||
"schemas": {
|
||||
"AudioConfig": {
|
||||
@@ -212,6 +212,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",
|
||||
@@ -258,7 +283,7 @@
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not specified. No timepoint information will be returned.",
|
||||
"Timepoint information of tags in SSML input will be returned."
|
||||
"Timepoint information of `` tags in SSML input will be returned."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -289,7 +314,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"timepoints": {
|
||||
"description": "A link between a position in the original request input and a corresponding time in the output audio. It's only supported via of SSML input.",
|
||||
"description": "A link between a position in the original request input and a corresponding time in the output audio. It's only supported via `` of SSML input.",
|
||||
"items": {
|
||||
"$ref": "Timepoint"
|
||||
},
|
||||
@@ -303,7 +328,7 @@
|
||||
"id": "Timepoint",
|
||||
"properties": {
|
||||
"markName": {
|
||||
"description": "Timepoint name as received from the client within tag.",
|
||||
"description": "Timepoint name as received from the client within `` tag.",
|
||||
"type": "string"
|
||||
},
|
||||
"timeSeconds": {
|
||||
@@ -357,6 +382,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"
|
||||
|
||||
Reference in New Issue
Block a user