oscie57 / tiktok-voice

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

Error while generating audio: Invalid base64-encoded string #48

Open Amzir-A opened 5 months ago

Amzir-A commented 5 months ago

I get this error:

Error occurred while generating audio: Invalid base64-encoded string: number of data characters (1766705) cannot be 1 more than a multiple of 4

when generating audio with this string: " She don’t like this ".

I found out it's because of the character " ’ ", you should replace this by " ' ".

Could someone fix this issue in code?

I hope this will also help people struggling with finding out why it doesnt want to generate the audio.