POST
/
v1
/
text-to-speech
/
{voice_id}
curl --request POST \
  --url https://supertoneapi.com/v1/text-to-speech/{voice_id} \
  --header 'Content-Type: application/json' \
  --header 'x-sup-api-key: <x-sup-api-key>' \
  --data '{
  "text": "<string>",
  "language": "ko",
  "model": "turbo",
  "voice_settings": {
    "pitch_shift": 0,
    "pitch_variance": 1,
    "speed": 1
  }
}'
This response does not have an example.

Headers

x-sup-api-key
string
required

API key for the service

Path Parameters

voice_id
string
required

Query Parameters

output_format
enum<string>
default:wav

The desired output format of the audio file (wav, mp3). Default is wav.

Available options:
wav,
mp3

Body

application/json
text
string
required

The text to convert to speech

Maximum length: 200
language
enum<string>
default:ko
required

The language code of the text

Available options:
en,
ko,
ja
model
enum<string>
default:turbo

The model type to use for the text-to-speech conversion

Available options:
pro,
turbo
voice_settings
object

Response

200
audio/wav
Audio file converted from text

The response is of type file.