Voice Changer (SSE)

Headers

X-API-KeystringRequired
Cartesia-Version"2024-11-13"Required

Request

Takes an audio file of speech, and streams an audio file of speech spoken with the same intonation, but with a different voice.

This endpoint is priced at 15 characters per second of input audio.

clipfileRequired
voice[id]stringRequired
output_format[container]enumRequired
Allowed values:
output_format[sample_rate]integerRequired
output_format[encoding]enumOptional

Required for raw and wav containers.

Allowed values:
output_format[bit_rate]integerOptional

Required for mp3 containers.

Response

This endpoint returns a stream of object.
chunkobject
OR
doneobject
OR
errorobject