Instructions to use Wfloat/wfloat-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use Wfloat/wfloat-tts with Piper:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download src/wfloat_tts/constants.py from Wfloat/wfloat-tts: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/Wfloat/wfloat-tts/resolve/6fa84b62a7a9237b75b040b2cfd4e55ff9f1bb71/src/wfloat_tts/constants.py
- Command line
-
hf download hf://Wfloat/wfloat-tts@6fa84b62a7a9237b75b040b2cfd4e55ff9f1bb71/src/wfloat_tts/constants.py
-
curl -L -o constants.py https://huggingface.co/Wfloat/wfloat-tts/resolve/6fa84b62a7a9237b75b040b2cfd4e55ff9f1bb71/src/wfloat_tts/constants.py
1.03 kB
| EMOTION_TO_SYMBOL = { | |
| "neutral": "π", | |
| "joy": "π", | |
| "sadness": "π’", | |
| "anger": "π‘", | |
| "fear": "π±", | |
| "surprise": "π²", | |
| "dismissive": "π", | |
| "confusion": "π€", | |
| } | |
| VALID_EMOTIONS = tuple(EMOTION_TO_SYMBOL.keys()) | |
| INTENSITY_SYMBOLS = ( | |
| "βͺ", | |
| "β ", | |
| "β‘", | |
| "β’", | |
| "β£", | |
| "β€", | |
| "β₯", | |
| "β¦", | |
| "β§", | |
| "β¨", | |
| ) | |
| SPEAKER_IDS = { | |
| "skilled_hero_man": 0, | |
| "skilled_hero_woman": 1, | |
| "fun_hero_man": 2, | |
| "fun_hero_woman": 3, | |
| "strong_hero_man": 4, | |
| "strong_hero_woman": 5, | |
| "mad_scientist_man": 6, | |
| "mad_scientist_woman": 7, | |
| "clever_villain_man": 8, | |
| "clever_villain_woman": 9, | |
| "narrator_man": 10, | |
| "narrator_woman": 11, | |
| "wise_elder_man": 12, | |
| "wise_elder_woman": 13, | |
| "outgoing_anime_man": 14, | |
| "outgoing_anime_woman": 15, | |
| "scary_villain_man": 16, | |
| "scary_villain_woman": 17, | |
| "news_reporter_man": 18, | |
| "news_reporter_woman": 19, | |
| } | |
| DEFAULT_ESPEAK_VOICE = "en-us" | |
| DEFAULT_SAMPLE_RATE = 22050 | |