Instructions to use AXERA-TECH/CosyVoice2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/CosyVoice2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="AXERA-TECH/CosyVoice2")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/CosyVoice2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -139,7 +139,7 @@ modelscope download --model pengzhendong/wetext --local_dir pengzhendong/wetext
|
|
| 139 |
##### (2). Process Prompt Speech
|
| 140 |
Example:
|
| 141 |
```
|
| 142 |
-
|
| 143 |
```
|
| 144 |
|
| 145 |
Pass parameters according to the actual situation.
|
|
|
|
| 139 |
##### (2). Process Prompt Speech
|
| 140 |
Example:
|
| 141 |
```
|
| 142 |
+
python3 scripts/process_prompt.py --prompt_text asset/zh_man1.txt --prompt_speech asset/zh_man1.wav --output zh_man1
|
| 143 |
```
|
| 144 |
|
| 145 |
Pass parameters according to the actual situation.
|