File size: 736 Bytes
f866902 94a7184 c4a5682 94a7184 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
---
language:
- zh
- tw
pipeline_tag: text-to-speech
base_model: Jackellie/ellie-Bert-VITS2
---
Taiwan accent TTS model from JackEllie.
## Usage
Using this checkpoint from Hugging Face Transformers:
```python
from transformers import AutoModel, AutoProcessor
from scipy.io.wavfile import write
import torch
model_name = "BricksDisplay/ellie-Bert-VITS2"
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
with torch.no_grad():
inputs = processor("你好", language="zh", return_tensors="pt")
result = model(**inputs)
result = result["waveform"]
write("output.wav", model.config.sampling_rate, result[0].numpy())
```
|