Chatterbox Text to Speech
resemble-ai/chatterbox/text-to-speechChatterbox by Resemble AI turns English text into expressive speech, with emotive tags such as <laugh> and <sigh>, an exaggeration control, and zero-shot voice cloning from a reference clip.
- Cena bazowa
- $0.03USD / uruchomienie
- Wykonanie
- async
- Typ modelu
- audio
- Pola wejściowe
- 4
Wypróbuj model
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Karta modelu
Specyfikacja
Cennik
- Cena bazowa
- $0.03 / uruchomienie
Kontekst i modalności
- Wejście
- Zdefiniowane przez schemat
- Wyjście
- audio
Możliwości
- Czat
- Nieobsługiwane
- Wizja
- Nieobsługiwane
- Rozumowanie
- Nieobsługiwane
- Ustrukturyzowany wynik
- Nieobsługiwane
- Wywoływanie funkcji
- Nieobsługiwane
- Wejście audio
- Nieobsługiwane
Dostęp
- Dostawca
- Resemble AI
- ID modelu
- resemble-ai/chatterbox/text-to-speech
- Wykonanie
- async
- Bazowy URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Chatterbox Text to Speech
Resemble AI Chatterbox speaks up to 5,000 characters of English text with emotive tags, an exaggeration control, and zero-shot voice matching from a reference clip.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak; supports tags such as <laugh> and <sigh>. |
reference_audio | audio file or URL | — | Voice to match; a default voice is used when omitted. |
exaggeration | number 0–1 | 0.25 | 0 = neutral, 1 = most exaggerated. |
seed | integer | — | Fix it to reproduce a result. |
Billing
$0.03 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 200 characters | $0.006 |
| 1,000 characters | $0.03 |
| 5,000 characters | $0.15 |
Failed runs are not charged.
Prompting
- Add emotive tags inline, e.g.
That's hilarious <laugh>.
Also on SandBase
Related: resemble-ai/chatterbox/text-to-speech/multilingual, resemble-ai/chatterbox-hd/text-to-speech, resemble-ai/chatterbox/speech-to-speech.
Zacznij tworzyć
Wyślij pierwsze żądanie
Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "resemble-ai/chatterbox/text-to-speech",
"text": "I just found a hidden treasure in the backyard! Check it out!",
"exaggeration": 0.25,
"reference_audio": "https://storage.googleapis.com/chatterbox-demo-samples/prompts/male_rickmorty.mp3"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schemat wejścia
4 parametrów · 1 wymaganych · 3 opcjonalnych
| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
text | string | Wymagane | The text to convert to speech (up to 5,000 characters). Supports emotive tags: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>. · Minimalna długość: 1 · Maksymalna długość: 5000 |
seed | integer | Opcjonalne | Random seed for reproducible results. Omit for a random seed. |
exaggeration | number | Opcjonalne | Exaggeration of the delivery (0 = none, 1 = maximum). · Min.: 0 · Maks.: 1 · Domyślnie: 0.25 |
reference_audio | string | Opcjonalne | Optional reference voice as an audio file or URL. The model matches its voice, style, and tone. When omitted, a default demo voice is used. |
Schemat wyjścia
| Pole | Typ | Opis |
|---|---|---|
id | string | Unikalny identyfikator zadania generowania |
status | string | Status zadania: pending, running, completed, failed, timeout |
model | string | Model użyty do generowania |
outputs | array | Tablica elementów wyjściowych |
outputs[].url | string | URL wygenerowanego artefaktu |
outputs[].content_type | string | Typ MIME (np. image/png, video/mp4) |
error | object | null | Szczegóły błędu, jeśli wystąpił; null w przypadku powodzenia |
error.type | string | Maszynowo czytelny kod typu błędu |
error.message | string | Opis błędu czytelny dla człowieka |
Asynchroniczny przepływ pracy
Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.
- Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone
id. - Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy
completed,failedlubtimeout. - Pobierz: odczytaj
outputsz ukończonej odpowiedzi.
Wybierz swój model
Porównaj modele
| Model | Typ | Cena domyślna | Wydano |
|---|---|---|---|
Chatterbox Text to SpeechTen model Resemble AI | Audio | $0.03 / uruchomienie | 1 cze 2025 |
Resemble AI | Audio | $0.01 / uruchomienie | 4 wrz 2025 |
Resemble AI | Audio | $0.02 / uruchomienie | 2 cze 2025 |
Resemble AI | Audio | $0.04 / uruchomienie | 2 cze 2025 |
Resemble AI | Audio | $0.02 / uruchomienie | 1 cze 2025 |
Pytania
FAQ
Jak wywołać Resemble AI Chatterbox Text to Speech przez SandBase?
Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "resemble-ai/chatterbox/text-to-speech" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.
Czy potrzebuję osobnego konta Resemble AI?
Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do Resemble AI Chatterbox Text to Speech oraz innych modeli w katalogu; nie musisz osobno zakładać konta u Resemble AI.
