oscie57 / tiktok-voice

Simple Python script to interact with the TikTok TTS API
515 stars 74 forks source link

Backup URL for API #12

Open oscie57 opened 2 years ago

oscie57 commented 2 years ago

The current URL set for grabbing TTS data is api16-normal-useast5.us.tiktokv.com. User hakeem#0001 (311414202218708993) on Discord showed me today that there is a second URL in the TikTok APK: api16-normal-c-alisg.tiktokv.com and a third api19-normal-useast1a.tiktokv.com

It might be a good idea that we should make the script check the second URL if there is an error on the first one.

Trying the new URL for possible new voices may also be a good idea too. @ashmonty if you could give that a shot, would be awesome.

pruthvishetty commented 1 year ago

Getting an error stating "This voice is unavailable now". Any known issues?

anthony9981 commented 1 year ago

I found this block list. It includes more API like: // api.tiktokv.com // api16-normal-c-alisg.tiktokv.com // api19-normal-useast1a.tiktokv.com // api16-normal-c-alisg.tiktokv.com // api16-normal-c-useast1a.tiktokv.com // api16-normal-c-useast2a.tiktokv.com // api16-normal-v4.tiktokv.com // api16-normal-v6.tiktokv.com // api16-va.tiktokv.com All tested