since I have my own voice.py profanity filter i cant push changes i make to voice. py. however. i have found these bugs
change these lines
wouldnt regex the em dash symbol
replacing url with blank would make files x-y.mp3 that only contain url bug out, so instead just make the tts read URL instead of nothing
regex_expr = r"\s['|’]|['|’]\s|[\^_~@!&;#:\-%— “”‘\"%\*/{}\[\]\(\)\\|<>=+]"
result = re.sub(regex_urls, "url", text)