Instructions to use facebook/mms-tts-bcc-script_arabic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mms-tts-bcc-script_arabic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="facebook/mms-tts-bcc-script_arabic")# Load model directly from transformers import AutoTokenizer, AutoModelForTextToWaveform tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-bcc-script_arabic") model = AutoModelForTextToWaveform.from_pretrained("facebook/mms-tts-bcc-script_arabic") - Notebooks
- Google Colab
- Kaggle
Update README.MD
#1
by faisaljan - opened
README.md
CHANGED
|
@@ -67,7 +67,9 @@ The resulting waveform can be saved as a `.wav` file:
|
|
| 67 |
|
| 68 |
```python
|
| 69 |
import scipy
|
|
|
|
| 70 |
|
|
|
|
| 71 |
scipy.io.wavfile.write("techno.wav", rate=model.config.sampling_rate, data=output)
|
| 72 |
```
|
| 73 |
|
|
|
|
| 67 |
|
| 68 |
```python
|
| 69 |
import scipy
|
| 70 |
+
import numpy as np
|
| 71 |
|
| 72 |
+
output_np = output.squeeze().detach().cpu().numpy()
|
| 73 |
scipy.io.wavfile.write("techno.wav", rate=model.config.sampling_rate, data=output)
|
| 74 |
```
|
| 75 |
|