Spaces:
Running
on
Zero
Running
on
Zero
""" from https://github.com/keithito/tacotron | |
Defines the set of symbols used in text input to the model. | |
""" | |
# _pad = "_" | |
# _punctuation = '-´;:,.!?¡¿—…"«»“” ' | |
# _letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
# _letters_ipa = ( | |
# "éýíó'̯'͡ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ" | |
# ) | |
# # Export all symbols: | |
# symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) | |
# # Special symbol ids | |
# SPACE_ID = symbols.index(" ") | |
# _pad = "_" | |
# _punctuation = '()-;:,.!?¡¿—…"«»“” ' | |
# _letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯабвгґдеєжзиіїйклмнопрстуфхцчшщьюя" | |
# _letters_ipa = ( | |
# "ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ̯͡" | |
# ) | |
# # Export all symbols: | |
# symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) | |
# # Special symbol ids | |
# SPACE_ID = symbols.index(" ") | |
_pad = "_" | |
_punctuation = '-´;:,.!?¡¿—…"«»“” ' | |
_letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
_letters_ipa = ( | |
"éýíó'̯'͡ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲ'̩'ᵻ" | |
) | |
# Export all symbols: | |
symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) | |
# Special symbol ids | |
SPACE_ID = symbols.index(" ") | |