aodianyun/xtts-v2
Public
2
runs
Run aodianyun/xtts-v2 with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| text |
string
|
要合成的文本内容。
|
|
| speaker |
string
|
参考说话人音色的音频,本地路径或可直接访问的 URL,建议时长 >= 6 秒,单声道更佳。
|
|
| language |
None
|
en
|
目标语音的语言代码。支持的语言:en, es, fr, de, it, pt, pl, tr, ru, nl, cs, ar, zh-cn, ja, hu, ko, hi
|
{
"type": "object",
"title": "Input",
"required": [
"text",
"speaker"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"x-order": 0,
"description": "\u8981\u5408\u6210\u7684\u6587\u672c\u5185\u5bb9\u3002"
},
"speaker": {
"type": "string",
"title": "Speaker",
"x-order": 1,
"description": "\u53c2\u8003\u8bf4\u8bdd\u4eba\u97f3\u8272\u7684\u97f3\u9891\uff0c\u672c\u5730\u8def\u5f84\u6216\u53ef\u76f4\u63a5\u8bbf\u95ee\u7684 URL\uff0c\u5efa\u8bae\u65f6\u957f >= 6 \u79d2\uff0c\u5355\u58f0\u9053\u66f4\u4f73\u3002"
},
"language": {
"enum": [
"en",
"es",
"fr",
"de",
"it",
"pt",
"pl",
"tr",
"ru",
"nl",
"cs",
"ar",
"zh-cn",
"ja",
"hu",
"ko",
"hi"
],
"type": "string",
"title": "language",
"description": "\u76ee\u6807\u8bed\u97f3\u7684\u8bed\u8a00\u4ee3\u7801\u3002\u652f\u6301\u7684\u8bed\u8a00\uff1aen, es, fr, de, it, pt, pl, tr, ru, nl, cs, ar, zh-cn, ja, hu, ko, hi",
"default": "en",
"x-order": 2
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}