Spaces:
Running
Running
File size: 452 Bytes
c137b2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
""" from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
'''
_punctuation = '"'
_full_alphabet = " !*&'()+,-./0123456789:;?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz|«°»ÀÂÇÈÉÊÎÏÔÙÛàâæçèéêëîïôöùúûüœ–’“”…ÅåûPRSTVWYZ"
# Export all symbols:
symbols = [_punctuation] + list(_full_alphabet)
# Special symbol ids
SPACE_ID = symbols.index(" ")
|