Instructions to use suno/bark-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use suno/bark-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="suno/bark-small")# Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("suno/bark-small") model = AutoModelForTextToWaveform.from_pretrained("suno/bark-small") - Notebooks
- Google Colab
- Kaggle
internal server error: Inference API is down for the bark-small model?
#11
by packmad - opened
Hi,
I tried to use the bark model inference service in my code and the generated audio file is just an empty 1KB file. Also the hosted inference API finish with an "internal server error" (URL: https://huggingface.co/suno/bark-small) so overall the service seems down at the moment.
Can you fix it?
My code:
API_URL = "https://api-inference.huggingface.co/models/suno/bark-small"
headers = {"Authorization": f"Bearer {HUGGINGFACEHUB_API_TOKEN}"}
payload = {
"inputs": message
}
response = requests.post(API_URL, headers=headers, json=payload)
with open('audio.flac', 'wb') as file:
file.write(response.content)