From 4a9e2b0dbe0ee8c81e87e7ac905ec51c9b9f3769 Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Wed, 22 Jun 2022 15:07:57 +0100 Subject: [PATCH] Fixed Tiktok max characters --- TTS/TikTok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/TikTok.py b/TTS/TikTok.py index 27ba864..91bf43d 100644 --- a/TTS/TikTok.py +++ b/TTS/TikTok.py @@ -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):