Instructions to use Renderlib-dev/sooktam2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Renderlib-dev/sooktam2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Renderlib-dev/sooktam2", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Renderlib-dev/sooktam2", trust_remote_code=True, dtype="auto") - F5-TTS
How to use Renderlib-dev/sooktam2 with F5-TTS:
# 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
| # F5TTS_v1_Base | E2TTS_Base | |
| model = "F5TTS_v1_Base" | |
| ref_audio = "infer/examples/multi/main.flac" | |
| # If an empty "", transcribes the reference audio automatically. | |
| ref_text = "" | |
| gen_text = "" | |
| # File with text to generate. Ignores the text above. | |
| gen_file = "infer/examples/multi/story.txt" | |
| remove_silence = true | |
| output_dir = "tests" | |
| output_file = "infer_cli_story.wav" | |
| [voices.town] | |
| ref_audio = "infer/examples/multi/town.flac" | |
| ref_text = "" | |
| speed = 0.8 # will ignore global speed | |
| [voices.country] | |
| ref_audio = "infer/examples/multi/country.flac" | |
| ref_text = "" | |