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.
- Preço base
- $0.03USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 4
Testar o modelo
Playground
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Cartão do modelo
Especificações
Preços
- Preço base
- $0.03 / execução
Contexto e modalidades
- Entrada
- Definido pelo schema
- Saída
- audio
Capacidades
- Chat
- Não suportado
- Visão
- Não suportado
- Raciocínio
- Não suportado
- Saída estruturada
- Não suportado
- Chamada de função
- Não suportado
- Entrada de áudio
- Não suportado
Acesso
- Provedor
- Resemble AI
- ID do modelo
- resemble-ai/chatterbox/text-to-speech
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da 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.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.
# 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"Esquema de entrada
4 parâmetros · 1 obrigatórios · 3 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
text | string | Obrigatório | The text to convert to speech (up to 5,000 characters). Supports emotive tags: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>. · Tamanho mín.: 1 · Tamanho máx.: 5000 |
seed | integer | Opcional | Random seed for reproducible results. Omit for a random seed. |
exaggeration | number | Opcional | Exaggeration of the delivery (0 = none, 1 = maximum). · Mín.: 0 · Máx.: 1 · Padrão: 0.25 |
reference_audio | string | Opcional | 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. |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descrição do erro legível por humanos |
Fluxo assíncrono
Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
Chatterbox Text to SpeechEste modelo Resemble AI | Áudio | $0.03 / execução | 1 de jun. de 2025 |
Resemble AI | Áudio | $0.01 / execução | 4 de set. de 2025 |
Resemble AI | Áudio | $0.02 / execução | 2 de jun. de 2025 |
Resemble AI | Áudio | $0.04 / execução | 2 de jun. de 2025 |
Resemble AI | Áudio | $0.02 / execução | 1 de jun. de 2025 |
Perguntas
FAQ
Como faço chamadas ao Resemble AI Chatterbox Text to Speech pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "resemble-ai/chatterbox/text-to-speech" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Preciso de uma conta Resemble AI separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a Resemble AI Chatterbox Text to Speech e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no Resemble AI.
