You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env python3
|
|
from utils import settings
|
|
from gtts import gTTS
|
|
|
|
|
|
class GTTS:
|
|
max_chars = 0
|
|
|
|
@staticmethod
|
|
async def run(
|
|
text,
|
|
filepath
|
|
) -> None:
|
|
tts = gTTS(
|
|
text=text,
|
|
lang=settings.config["reddit"]["thread"]["post_lang"] or "en",
|
|
slow=False,
|
|
)
|
|
tts.save(filepath)
|