|
|
|
@ -63,7 +63,7 @@ noneng = [
|
|
|
|
|
class TikTok: # TikTok Text-to-Speech Wrapper
|
|
|
|
|
def __init__(self):
|
|
|
|
|
self.URI_BASE = "https://api16-normal-useast5.us.tiktokv.com/media/api/text/speech/invoke/?text_speaker="
|
|
|
|
|
self.max_chars = 330
|
|
|
|
|
self.max_chars = 300
|
|
|
|
|
self.voices = {"human": human, "nonhuman": nonhuman, "noneng": noneng}
|
|
|
|
|
|
|
|
|
|
def run(self, text, filepath, random_voice: bool = False):
|
|
|
|
|