From 473dacdbfc26d72302228eb2d16fdf92bb6ec06d Mon Sep 17 00:00:00 2001 From: liamb13 <69778531+liamb13@users.noreply.github.com> Date: Sat, 13 May 2023 10:31:02 +1000 Subject: [PATCH] Update elevenlabs.py --- TTS/elevenlabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/elevenlabs.py b/TTS/elevenlabs.py index 2da8e8e..af5dbec 100644 --- a/TTS/elevenlabs.py +++ b/TTS/elevenlabs.py @@ -18,7 +18,7 @@ voices = [ class elevenlabs: def __init__(self): - self.max_chars = 5000 + self.max_chars = 2500 self.voices = voices def run(self, text, filepath, random_voice: bool = False): @@ -48,7 +48,7 @@ class elevenlabs: ) save( audio=audio, - filename=f"{filepath}" + filename=filepath ) def randomvoice(self):