POST /v1/voice-continuation
Voice continuation
Continue a prompt clip in the same voice, and return a download link for the audio.
POST https://api.pascalai.co/v1/voice-continuationContent-Type: multipart/form-data
Authenticate with Authorization: Bearer and an API key. Send model, text, and reference_text before file. The clip must be under 25 MB. The call remains open for up to 4 minutes. When processing has finished inside that window, the body is the job. When status is queued or running, retrieve the same object with GET /v1/voice-continuation/{job_id}.
| Field | Type | Description |
|---|---|---|
modelRequired | string | Catalogue id of the voice-continuation model. This part must be sent before the file. |
textRequired | string | The new words to keep speaking. Send this part before the file. The length is priced before the clip is stored. |
reference_textRequired | string | Transcript of the prompt clip. Required on every request. Send this part before the file. |
fileRequired | file | Prompt clip. The file must be under 25 MB. |
params | string | JSON object for that model, encoded as a string. Omit the field, or send an empty string, to use the defaults. The value must be a JSON object. The fields are on the model page. |
name | string | Optional label stored on the job and returned as name. |
Response
200 with the job. A successful request is charged $0.05 plus the generated audio duration in minutes. result.artifacts contains the audio. url is the download link. Download the file within one day. The file is deleted after that. The job record remains.
Example
curl https://api.pascalai.co/v1/voice-continuation \
-H "Authorization: Bearer $PASCAL_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F model=voxcpm2-continuation \
-F text="and then we kept walking toward the river." \
-F reference_text="Hello, my name is Ada." \
-F params='{"cfg_value":2,"output_format":"wav"}' \
-F file=@prompt.wav
curl https://api.pascalai.co/v1/voice-continuation/$JOB_ID \
-H "Authorization: Bearer $PASCAL_API_KEY"Models
voxcpm2-continuationContinue a spoken prompt in the same voice.