aiOla Text-to-Speech API (1.0.0)

Download OpenAPI specification:

API for converting text to speech with various voice options

Convert text to speech

Converts text to speech and returns the audio file as bytes

Authorizations:
BearerAuth
Request Body schema: application/json
required
text
required
string

The text to convert to speech

voice
string (VoiceOptions)
Enum: "af_bella" "af_nicole" "af_sarah" "af_sky" "am_adam" "am_michael" "bf_emma" "bf_isabella" "bm_george" "bm_lewis"

Responses

Request samples

Content type
application/json
{
  • "text": "string",
  • "voice": "af_bella"
}

Response samples

Content type
application/json
{
  • "detail": "string"
}

Stream text-to-speech audio

Streams text-to-speech audio data

Authorizations:
BearerAuth
Request Body schema: application/json
required
text
required
string

The text to convert to speech

voice
string (VoiceOptions)
Enum: "af_bella" "af_nicole" "af_sarah" "af_sky" "am_adam" "am_michael" "bf_emma" "bf_isabella" "bm_george" "bm_lewis"

Responses

Request samples

Content type
application/json
{
  • "text": "string",
  • "voice": "af_bella"
}

Response samples

Content type
application/json
{
  • "detail": "string"
}