This commit is contained in:
omahs 2023-12-05 09:47:07 +01:00 committed by GitHub
parent cfb143b9fb
commit 775a9138b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,11 +2,11 @@
- Language frontends are located under `TTS.tts.utils.text` - Language frontends are located under `TTS.tts.utils.text`
- Each special language has a separate folder. - Each special language has a separate folder.
- Each folder containst all the utilities for processing the text input. - Each folder contains all the utilities for processing the text input.
- `TTS.tts.utils.text.phonemizers` contains the main phonemizer for a language. This is the class that uses the utilities - `TTS.tts.utils.text.phonemizers` contains the main phonemizer for a language. This is the class that uses the utilities
from the previous step and used to convert the text to phonemes or graphemes for the model. from the previous step and used to convert the text to phonemes or graphemes for the model.
- After you implement your phonemizer, you need to add it to the `TTS/tts/utils/text/phonemizers/__init__.py` to be able to - After you implement your phonemizer, you need to add it to the `TTS/tts/utils/text/phonemizers/__init__.py` to be able to
map the language code in the model config - `config.phoneme_language` - to the phonemizer class and initiate the phonemizer automatically. map the language code in the model config - `config.phoneme_language` - to the phonemizer class and initiate the phonemizer automatically.
- You should also add tests to `tests/text_tests` if you want to make a PR. - You should also add tests to `tests/text_tests` if you want to make a PR.
We suggest you to check the available implementations as reference. Good luck! We suggest you to check the available implementations as reference. Good luck!