Spaces:
Runtime error
Runtime error
Download text/symbols.py from 4212-RVC/vits-models: direct link, hf CLI and curl.
- Browser
- Download file 979 Bytes
-
https://huggingface.co/spaces/4212-RVC/vits-models/resolve/main/text/symbols.py
- Command line
-
hf download hf://spaces/4212-RVC/vits-models/text/symbols.py
-
curl -L -o symbols.py https://huggingface.co/spaces/4212-RVC/vits-models/resolve/main/text/symbols.py
979 Bytes
| ''' | |
| Defines the set of symbols used in text input to the model. | |
| ''' | |
| '''# japanese_cleaners | |
| _pad = '_' | |
| _punctuation = ',.!?-' | |
| _letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧ↓↑ ' | |
| ''' | |
| '''# japanese_cleaners2 | |
| _pad = '_' | |
| _punctuation = ',.!?-~…' | |
| _letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧʦ↓↑ ' | |
| ''' | |
| '''# korean_cleaners | |
| _pad = '_' | |
| _punctuation = ',.!?…~' | |
| _letters = 'ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎㄲㄸㅃㅆㅉㅏㅓㅗㅜㅡㅣㅐㅔ ' | |
| ''' | |
| '''# chinese_cleaners | |
| _pad = '_' | |
| _punctuation = ',。!?—…' | |
| _letters = 'ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩˉˊˇˋ˙ ' | |
| ''' | |
| # zh_ja_mixture_cleaners | |
| _pad = '_' | |
| _punctuation = ',.!?-~…' | |
| _letters = 'AEINOQUabdefghijklmnoprstuvwyzʃʧʦɯɹəɥ⁼ʰ`→↓↑ ' | |
| # Export all symbols: | |
| symbols = [_pad] + list(_punctuation) + list(_letters) | |
| # Special symbol ids | |
| SPACE_ID = symbols.index(" ") |