tiktok-voice
tiktok-voice copied to clipboard
Session ID is invalid
Hi,
I just tested with 2 diferents account and still get
{'status': 'Session ID is invalid', 'status_code': 5}
Did you follow along? Getting a Session ID: https://github.com/oscie57/tiktok-voice/wiki/Obtaining-SessionID
Did you follow along? Getting a Session ID: https://github.com/oscie57/tiktok-voice/wiki/Obtaining-SessionID
Yes, I did with this extension
I also got the same error
I'm also getting an error
try replacing the api with "https://api16-normal-c-useast2a.tiktokv.com/media/api/text/speech/invoke/"
It works changing url for that. Thank you so much.
he
I tried the same thing but it does not work for me, any ideas?
he
I tried the same thing but it does not work for me, any ideas?
I tried it and worked after I did 2 things: First, you need not change the full link but only the part that is different; secondly, you must use your own sessionid from tiktok. You can't use the one in the wiki. You can find your by right click -> inspect -> in the application tab, under the storage section, click on the cookies drop down menu, then click inside and it should be there
Hi all. I have changed the URL to the one listed in this issue and made a pull rq
API URL broke for me. I updated the API to be https://api16-normal-useast5.us.tiktokv.com and this works fine.
#in main.py
#https://github.com/oscie57/tiktok-voice/issues/39
"""
API_DOMAINS = [
"https://api16-normal-c-useast1a.tiktokv.com",
"https://api16-normal-c-useast1a.tiktokv.com",
"https://api16-core-c-useast1a.tiktokv.com",
"https://api16-normal-useast5.us.tiktokv.com",
"https://api16-core.tiktokv.com",
"https://api16-core-useast5.us.tiktokv.com",
"https://api19-core-c-useast1a.tiktokv.com",
"https://api-core.tiktokv.com",
"https://api-normal.tiktokv.com",
"https://api19-normal-c-useast1a.tiktokv.com",
"https://api16-core-c-alisg.tiktokv.com",
"https://api16-normal-c-alisg.tiktokv.com",
"https://api22-core-c-alisg.tiktokv.com",
"https://api16-normal-c-useast2a.tiktokv.com",
]
"""
url = f"https://api16-normal-useast5.us.tiktokv.com/media/api/text/speech/invoke/?text_speaker={text_speaker}&req_text={req_text}&speaker_map_type=0&aid=1233"
r = requests.post(url, headers = headers)