Skip to main content
API origin is https://api.myvocal.ai. Base path is /sound_clone/api/v1/interpretation/realtime. REST requests use accessKey. Responses shown here are field descriptions. Example values are synthetic. Use a distinct idempotency key for each new session and each new round. Reuse the original key and parameters to check a creation attempt with an unknown result. A key can contain up to 128 characters. Reusing a round key with different parameters returns a conflict. Example request body for creating a Spanish text-only round with automatic source detection.
Use the relative streamUrl on the same API origin. The selected protocol on browser connections is myvocal.rtt.v1. Each event carries sessionId and roundId. Send text messages with type audio, an integer sequence starting at 0, and base64 data. Use headerless PCM signed 16-bit little-endian, 16 kHz, mono. Each decoded frame must contain an even number of bytes from 2 to 32,000. Send frames at capture speed. About 100 ms per frame is a practical starting point. A duplicate sequence is ignored. A gap or invalid frame ends the round. Send {"type":"finish"} or {"type":"cancel"} to stop input. REST domain failures use HTTP status plus code: -1, with a string code in data.code. Invalid or missing API keys follow the platform response of HTTP 200 with JSON code: 401.