Skip to content

Instantly share code, notes, and snippets.

View whateverforever's full-sized avatar

max whateverforever

View GitHub Profile
@whateverforever
whateverforever / text2audio.py
Created February 1, 2025 12:19
convert some text to audio using kokoro
import os.path as osp
import shutil
import tempfile
import subprocess
import shlex
import argparse
SUPPORTED_EXTS = [".wav", ".mp3", ".m4b"]
print("Checking for ffmpeg...")