Adam API
  1. 音频接入
Adam API
  • 聊天模型
    • 聊天接口
      POST
    • gpt-4-all(分析图片)
      POST
    • gpt-4-all(生成图片)
      POST
    • gpt-4v测试
      POST
    • midjourney
      POST
    • gpts
      POST
    • gpt-4-vision-preview
      POST
    • mj-chat
      POST
  • 模型
    • 列出模型
      GET
  • 自动补全接口
    • 内容补全接口
      POST
  • 图像接口
    • 创建图像
      POST
  • 向量生成
    • 创建嵌入
      POST
  • 音频接入
    • TTS文本转语音
      POST
    • 创建转录
      POST
    • 创建翻译
      GET
  • 查询接口
    • 获取总额度
      GET
    • 获取使用的额度
      GET
    • 根据key查询使用日志
      GET
  1. 音频接入

TTS文本转语音

POST
https://api.adamchatbot.chat/v1/audio/speech
将输入文本转录为音频。

请求参数

Header 参数

Body 参数application/json

示例
{
    "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 POST 'https://api.adamchatbot.chat/v1/audio/speech' \
--header 'Authorization: Authorization: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379' \
--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

示例
{
    "model": "tts-1",
    "input": "The quick brown fox jumped over the lazy dog.",
    "voice": "alloy"
}
修改于 2023-11-21 14:03:14
上一页
创建嵌入
下一页
创建转录
Built with