sovits-webui / text /symbols.py
jvde's picture
file add
f73a66e
raw
history blame contribute delete
320 Bytes
'''
Defines the set of symbols used in text input to the model.
'''
_pad = '_'
_punctuation = ',.!?-~…'
_letters = 'AEINOQUabdefghijklmnoprstuvwyzʃʧʦɯɹəɥ⁼ʰ`→↓↑ '
# Export all symbols:
symbols = [_pad] + list(_punctuation) + list(_letters)
# Special symbol ids
SPACE_ID = symbols.index(" ")