Instructions to use jiaaom/CosyVoice3-TalkingFlowerZH with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- CosyVoice
How to use jiaaom/CosyVoice3-TalkingFlowerZH with CosyVoice:
# 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
| import sys | |
| import os | |
| os.environ["CUDA_VISIBLE_DEVICES"] = "2" | |
| sys.path.insert(0, "/home/mason/Developer/Projects/WonderFlower/CosyVoice3-TalkingFlowerZH") | |
| sys.path.insert(0, "/home/mason/Developer/Projects/WonderFlower/CosyVoice3-TalkingFlowerZH/third_party/Matcha-TTS") | |
| import importlib.util | |
| spec = importlib.util.spec_from_file_location("app", "/home/mason/Developer/Projects/WonderFlower/CosyVoice3-TalkingFlowerZH/web-app/app.py") | |
| app = importlib.util.module_from_spec(spec) | |
| spec.loader.exec_module(app) | |
| print(app.generate_audio("你好呀!我是会说话的花朵,很高兴认识你!", 42, 1.0)) | |