- 介绍
- 项目说明
- 导言
- 身份验证
- 发出请求
- 参数详情
- 模型(Models)
- gpt
- 运行(Runs)
- 线程数(Threads)
- 留言(Messages)
- 助手测试版(AssistantsBeta)
- 文件(Files)
- 审查(Moderations)
- 图像(Images)
- 微调(Fine-tuning)
- 嵌入(Embeddings)
- 聊天(Chat)
- 音频(Audio)
- 自动补全(Completions)
- midjourney
- Claude
创建语音
GET
https://www.wushuangai.com/v1/audio/speech
请求参数
Body 参数application/json
model
string
必需
input
string
必需
voice
string
必需
response_format
string
可选
speed
number
可选
示例
{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://www.wushuangai.com/v1/audio/speech' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-06-25 08:17:57