Instructions to use suno/bark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use suno/bark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="suno/bark")# Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("suno/bark") model = AutoModelForTextToWaveform.from_pretrained("suno/bark") - Notebooks
- Google Colab
- Kaggle
update Bark.generate_speech -> generate
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:
|
|
@@ -185,4 +185,4 @@ We anticipate that this model's text to audio capabilities can be used to improv
|
|
| 185 |
While we hope that this release will enable users to express their creativity and build applications that are a force
|
| 186 |
for good, we acknowledge that any text to audio model has the potential for dual use. While it is not straightforward
|
| 187 |
to voice clone known people with Bark, it can still be used for nefarious purposes. To further reduce the chances of unintended use of Bark,
|
| 188 |
-
we also release a simple classifier to detect Bark-generated audio with high accuracy (see notebooks section of the main repository).
|
|
|
|
| 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:
|
|
|
|
| 185 |
While we hope that this release will enable users to express their creativity and build applications that are a force
|
| 186 |
for good, we acknowledge that any text to audio model has the potential for dual use. While it is not straightforward
|
| 187 |
to voice clone known people with Bark, it can still be used for nefarious purposes. To further reduce the chances of unintended use of Bark,
|
| 188 |
+
we also release a simple classifier to detect Bark-generated audio with high accuracy (see notebooks section of the main repository).
|