oscie57 / tiktok-voice

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

API Appears to be down or has been locked #21

Closed PixelNinja132 closed 1 year ago

PixelNinja132 commented 1 year ago

New error vstr = [r.json()["data"]["v_str"]][0] is being thrown because the API returns {'extra': {'log_id': '20220822131552C9EAC8EF9BB84E554DFD'}, 'message': "Couldn't load speech. Try again.", 'status_code': 1, 'status_msg': "Couldn't load speech. Try again."}

rdvo commented 1 year ago

yeah seems like every script is getting this now, any ideas?

Weilbyte commented 1 year ago

seems like they changed the endpoint for tts

hugeblank commented 1 year ago

Getting this when sending a direct POST request:

<HTML><HEAD>
<TITLE>Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
Reference&#32;&#35;7&#46;1f3bd417&#46;1661383023&#46;78fa60a
</BODY>
</HTML>

I think they may have locked the TTS engine down unfortunately. This is probably in relation to @pruthvishetty getting an error like the following in #12:

{"extra":{"log_id":"202208242316400101921620450D6497CE"},"message":"Couldn't load speech. Try again.","status_code":1,"status_msg":"Couldn't load speech. Try again."}
oscie57 commented 1 year ago

fixed in https://github.com/oscie57/tiktok-voice/pull/24