# Chatterbox HD Voice Conversion > Convert a spoken recording into a different target voice while keeping the original words and delivery, with nine named HD voices and an optional 48kHz upscale for higher-fidelity output. ## Overview - **Endpoint**: `https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech` - **Model ID**: `resemble-ai/chatterboxhd/speech-to-speech` - **Category**: sound - **Kind**: inference - **Tags**: resemble-ai, chatterboxhd, chatterbox, speech-to-speech, voice-conversion, voice-changer, voice, audio, speech, high-definition ## Pricing - **Price**: $0.000333 per output second ## Request Lifecycle This model runs on the ModelRunner **asynchronous queue API** — a single POST does not return the output. Every call requires an `Authorization: Key $MODEL_RUNNER_KEY` header. Run three steps: 1. **Submit** — `POST https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech` with a JSON body. The response carries request handles only (no output yet): ```json { "status": "IN_QUEUE", "request_id": "<21-char id>", "status_url": "https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech/requests//status", "response_url": "https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech/requests/", "cancel_url": "https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech/requests//cancel" } ``` 2. **Poll status** — `GET ` until `status` is `COMPLETED`. Possible values are `IN_QUEUE`, `IN_PROGRESS`, `COMPLETED`, `FAILED`, `CANCELLED`. A `FAILED` request responds with HTTP 400 and an `error` field. 3. **Read result** — `GET `. Returns the finished request, including the generated `output`: ```json { "id": "", "status": "COMPLETED", "output": ..., "input": ... } ``` The JavaScript and Python SDKs below perform steps 2–3 for you. In any language without an SDK (Swift, Go, Kotlin, etc.) you must implement the polling loop and the final result fetch yourself — see the cURL example for the full flow. ### Input Schema - **`target_voice`** (`TargetVoiceEnum`, _optional_): The named voice to convert the source recording into. If a reference clip is provided in target_voice_audio_url it overrides this setting; if both are left unset a random target voice is used. - Default: `"Aurora"` - Options: `"Aurora"`, `"Blade"`, `"Britney"`, `"Carl"`, `"Cliff"`, `"Richard"`, `"Rico"`, `"Siobhan"`, `"Vicky"` - **`source_audio_url`** (`string`, _required_): The speech recording to voice-convert. Its words, timing, and delivery are preserved while the speaker's voice is replaced. Provide a clean, single-speaker clip (WAV or MP3). - **`high_quality_audio`** (`boolean`, _optional_): When true, the generated audio is upscaled to 48kHz for higher quality at the cost of longer generation time. When false, the audio is 24kHz. - Default: `false` - **`target_voice_audio_url`** (`string`, _optional_): Optional reference clip of the voice to convert the source into. Provide a clean, single-speaker sample of the target voice; it overrides the named target_voice. Leave unset to use the named voice. ### Output Schema _No `Output` schema properties are available._ ## Default Example **Input** ```json { "target_voice": "Aurora", "source_audio_url": "https://media.modelrunner.ai/CyN17SVF8hgwLGA31EK9h.wav", "high_quality_audio": true } ``` **Output** ```json "https://media.modelrunner.ai/CM9VDalCkdKOVHWBwghLn.wav" ``` ## Usage Examples ### cURL The queue API is asynchronous: submit the request, poll `status_url` until it is `COMPLETED`, then read the result from `response_url`. Requires `jq`. ```bash # 1. Submit the request (returns request handles, not the output) SUBMIT=$(curl --silent --request POST \ --url https://queue.modelrunner.run/resemble-ai/chatterboxhd/speech-to-speech \ --header "Authorization: Key $MODEL_RUNNER_KEY" \ --header "Content-Type: application/json" \ --data '{ "target_voice": "Aurora", "source_audio_url": "https://media.modelrunner.ai/CyN17SVF8hgwLGA31EK9h.wav", "high_quality_audio": true }') STATUS_URL=$(echo "$SUBMIT" | jq -r '.status_url') RESPONSE_URL=$(echo "$SUBMIT" | jq -r '.response_url') # 2. Poll until the request leaves the queue / in-progress state while true; do STATUS=$(curl --silent --url "$STATUS_URL" \ --header "Authorization: Key $MODEL_RUNNER_KEY" | jq -r '.status') echo "Status: $STATUS" case "$STATUS" in COMPLETED) break ;; FAILED|CANCELLED) echo "Request $STATUS"; exit 1 ;; esac sleep 1 done # 3. Read the finished request, including the generated output curl --silent --url "$RESPONSE_URL" \ --header "Authorization: Key $MODEL_RUNNER_KEY" ``` ### JavaScript ```javascript import { modelrunner } from "@modelrunner/client"; const result = await modelrunner.subscribe("resemble-ai/chatterboxhd/speech-to-speech", { input: { "target_voice": "Aurora", "source_audio_url": "https://media.modelrunner.ai/CyN17SVF8hgwLGA31EK9h.wav", "high_quality_audio": true } }); console.log(result.data); ``` ### Python ```python import asyncio import modelrunner_ai async def main(): response = await modelrunner_ai.submit_async( "resemble-ai/chatterboxhd/speech-to-speech", arguments={ "target_voice": "Aurora", "source_audio_url": "https://media.modelrunner.ai/CyN17SVF8hgwLGA31EK9h.wav", "high_quality_audio": true } ) result = await response.get() print(result["output"]) asyncio.run(main()) ``` ## Additional Resources - [Playground](https://modelrunner.ai/models/resemble-ai/chatterboxhd/speech-to-speech) - [OpenAPI Schema](https://modelrunner.ai/models/resemble-ai/chatterboxhd/speech-to-speech/openapi.json) - [LLM Instructions](https://modelrunner.ai/models/resemble-ai/chatterboxhd/speech-to-speech/llms.txt)