uma-tts-api/text/symbols.py
2024-11-21 10:49:06 +09:00

12 lines
358 B
Python

_pad = '_'
_punctuation = """!"'(),.:;?{}<>\^[]/+- """
_special = '-~%#@&*$'
_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'
# I trained with wrong tokens... these thing is for that.
_dummy = ["=" for i in range(84)]
# Export all symbols:
symbols = [_pad] + list(_special) + list(_punctuation) + list(_letters) + _dummy