VITS_Walloon_Phonemes / text /symbols_pho.py
Pipe1213's picture
Update text/symbols_pho.py
002ee7c verified
raw
history blame
714 Bytes
""" from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
'''
_pad = '_'
_punctuation = ';:,.!?¡¿—-<>*()…"«»“”~ '
_letters = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZÂÊÎÔÛâêîôûéÉèåÅÈàÀùÙÌìëöabcçdefghijklmnopqrstuvwxyz'
_letters_ipa = "õ̃ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
# Export all symbols:
symbols_pho = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa)
# Special symbol ids
SPACE_ID = symbols_pho.index(" ")