TTS TIKTOK

FREE
By Cristian C | Updated a month ago | Social
Popularity

9.1 / 10

Latency

3,687ms

Service Level

98%

Health Check

100%

README

TTS TikTok API

Welcome to the TTS TikTok API documentation! This API allows you to generate TikTok-style voices for your applications. Simply pass a JSON payload to the endpoint with the following format:

{
	"lang" : "string",
	"voice": "string",
	"text": "string"
}

JSON Payload Keys:

  • lang (string, required): The language for the voice generation.
  • voice (string, required): The TikTok-style voice to use.
  • text (string, required): The text to be converted into speech (Max. characters is: 299).

Query Parameter

Before making the request to the endpoint, you must provide a query parameter named response. This parameter can have two possible values:

  • “base64”: The API will return the audio data in Base64 format.
  • “url”: The audio will be uploaded to a server, and the API will return the URL of the audio. Note that uploaded files are deleted after 30 days.

Supported Languages and Voices

The TTS TikTok API supports the following languages and their corresponding voices:

Lang Voice
english_us female_1, male_1, male_2, male_3, male_4
english_uk male_1, male_2
english_au female_1, male_1
french male_1, male_2
german female_1, male_1
spanish male_1
spanish_mx male_1, male_2, female_1, female_2, female_3
portuguese_br female_1, female_2, male_1
indonesian female_1
japanese female_1, female_2, female_3, male_1
korean female_1, male_1, male_2

Response Format

The API will always return a JSON response in the following format:

{
	"data": "object or null",
	"errors": "array or null",
	"message": "string",
	"success": "boolean"
}
  • data (object or null): The resulting data of the API call, if successful.
  • errors (array or null): Any errors encountered during the API call.
  • message (string): A message indicating the result of the API call.
  • success (boolean): Indicates whether the API call was successful (true) or not (false).
Followers: 0
API Creator:
Rapid account: Cristian C
Cristian C
dalamates
Log In to Rate API
Rating: 5 - Votes: 1