VoxStudio Docs
Download

Takes

A take is one generated piece of audio.

#Take object

FieldTypeDescription
idstringUnique id
enginestringEngine that produced it
voicestringVoice id
textstringThe text that was spoken
duration_snumberLength in seconds
starredbooleanMarked as a favorite
created_atnumberUnix time in seconds
audio_urlstringRelative URL of the WAV file

#GET/v1/takes

Search and page through takes, newest first.

QueryDefaultDescription
limit501–500
qText contains (case-insensitive). % and _ are matched literally.
enginee.g. kokoro
voiceA voice id
starredtrue or false
beforeOnly takes created before this unix time. For the next page, pass the last take's created_at.
Terminal
curl -s "$VOX_URL/v1/takes?q=chapter&starred=true&limit=20" -H "Authorization: Bearer $VOX_API_KEY"

Paging through everything (Python):

Python
before = None
while True:
    page = s.get(f"{base}/v1/takes", params={"limit": 100, **({"before": before} if before else {})}).json()
    if not page:
        break
    for take in page:
        print(take["created_at"], take["text"][:60])
    before = page[-1]["created_at"]

#GET/v1/takes/stats

JSON
{ "count": 57, "starred": 3, "bytes": 7892682 }

#DELETE/v1/takes/{id}

Deletes the take and its audio. Response 204. Errors: 404 not_found

#POST/v1/takes/delete

Deletes several takes. Body: {"ids": ["…", "…"]} (1–1000 ids). Unknown ids are ignored.

JSON
{ "deleted": ["5128…", "b32d…"] }

Both delete endpoints send a takes.deleted event.

#Retention

Set history_retention_days (0, 7, 30 or 90) with PATCH/v1/settings. Unstarred takes older than that are deleted automatically, right after the setting changes and then every 6 hours. Starred takes are always kept. 0 (the default) keeps everything.

#GET/v1/takes/{id}/audio

Downloads the take as audio/wav. Accepts ?token= in place of the header, so it can be used as an .

Errors: 404 not_found

Terminal
curl -s "$VOX_URL/v1/takes/5128…/audio" -H "Authorization: Bearer $VOX_API_KEY" -o take.wav

#PUT/v1/takes/{id}/star

Body: {"starred": true}. Returns the updated take and sends a take.updated event.

#POST/v1/takes/{id}/export

Copies the take's WAV file to a path on this computer, for example one chosen in a Save dialog.

FieldTypeDescription
pathstringAn absolute path ending in .wav. The folder must exist.
overwritebooleanReplace an existing file. Default false.

Response 204. Errors: 400 invalid_path, 404 not_found, 409 file_exists

#Edit

POST/v1/takes/edit renders a timeline of clips into a new take (engine: "editor"). Source takes are never changed.

JSON
{
  "clips": [
    {"take_id": "a1…", "start": 0.0, "end": 2.4},
    {"take_id": "a1…", "start": 3.1},
    {"take_id": "b2…", "gain_db": -3}
  ],
  "gap_s": 0, "crossfade_ms": 10, "fade_in_s": 0.1, "fade_out_s": 0.5,
  "gain_db": 0, "normalize": true, "title": "Intro, tightened"
}
Field
clips1–200 clips, played in order. start/end are seconds into that take; leave out end to play to the end. gain_db is from −40 to +20. To cut a region out, use two clips of the same take.
gap_sSeconds of silence between clips (0–10). At 0, clips join with an equal-power crossfade of crossfade_ms (0–500).
fade_in_s, fade_out_s0–30 s
gain_dbOverall gain, −40 to +20
normalizeScale so the loudest peak is at −1 dBFS
titleText of the new take (default Edited · )

Clips with a different sample rate are resampled to the first clip's rate. The output is mono 16-bit WAV. Returns 201 with the new take. Errors: 404 not_found (a take was deleted), 400 invalid_request (for example, every clip is empty), 422 (validation).