Skip to content

Request Parameters

Oscar Hudson edited this page Sep 6, 2022 · 2 revisions

Request Parameters

When accessing the TikTok TTS API, there are multiple headers and parameters needed to be passed for the graceful status code 0.

Headers

As of recent, TikTok Voice and all other projects taking advantage of the TTS API went down due to changes in access. Just today (as of writing), a pull request was made and we now have success in making requests.

User-Agent

The user agent is not required for access but just in-case, we recommend keeping it.

com.zhiliaoapp.musically/2022600030 (Linux; U; Android 7.1.2; es_ES; SM-G988N; Build/NRD90M;tt-ok/3.12.13.1)

Cookie

This is the most important part of the request, the sessionid. This has taken us weeks to figure out, and are still trying to get a consistent way of getting one, for now however, use this one.

57b7d8b3e04228a24cc1e6d25387603a

Parameters

These are what make the voices come to life.

Text Speaker

This is where the voice name goes, to see a list, visit the Wiki

Req Text

Text that is read goes here, there is a server limit of 200 characters.

Speaker Map Type

This is unknown, we use 0.

Aid

This is also unknown, but if it is not 1233, it does not succeed.

Clone this wiki locally