Instructions to use ylacombe/bark-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ylacombe/bark-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="ylacombe/bark-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("ylacombe/bark-small") model = AutoModelForTextToWaveform.from_pretrained("ylacombe/bark-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -89,7 +89,7 @@ inputs = processor(
|
|
| 89 |
return_tensors="pt",
|
| 90 |
)
|
| 91 |
|
| 92 |
-
speech_values = model.
|
| 93 |
```
|
| 94 |
|
| 95 |
3. Listen to the speech samples either in an ipynb notebook:
|
|
|
|
| 89 |
return_tensors="pt",
|
| 90 |
)
|
| 91 |
|
| 92 |
+
speech_values = model.generate(**inputs, do_sample=True)
|
| 93 |
```
|
| 94 |
|
| 95 |
3. Listen to the speech samples either in an ipynb notebook:
|