Skip to main content
POST
/
audio
/
speech
Create speech
curl --request POST \
  --url https://api.aiearth.dev/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": "<string>",
  "voice": "<string>",
  "format": "mp3"
}
'
"<string>"
将文本转换为语音。部分语音能力可能需要使用 api-s1 系列端点。

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
input
string
required
voice
string
required
format
enum<string>
default:mp3
Available options:
mp3,
wav,
opus,
flac

Response

Audio response

The response is of type file.