music

Start a singer persona from your own voice

Changed on
post/v1/music/personas/voice-enrollments

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared. Required headers: Idempotency-Key

Headers

x-request-id, string nullable
Idempotency-Key, string required
authorization, string nullable

Request body

MusicVoiceEnrollmentRequest required
metadata, object nullable

Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars

callback_url, string nullable

HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state

callback_signing_key_id, string nullable

Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.

source, union

With source only, to start: a 30–60 second a cappella recording of the user singing: an uploaded file, an artifact, or a URL. Clean vocals without accompaniment work best.

language, 'en' | 'zh' | 'es' | 'fr' | 'pt' | 'de' | 'ja' | 'ko' | 'hi' | 'ru' nullable

With source only: the language of the phrase the user will read aloud: en, zh, es, fr, pt, de, ja, ko, hi, or ru. Send the language you are using with the user so they can read the phrase; when omitted, Beatra uses the account's language. Every new phrase for this enrollment stays in this language.

vocal_start_ms, integer nullable

With source only, optional: the singing part of a longer recording, in milliseconds on whole seconds, 30–60 seconds long. Leave out to use the whole recording.

vocal_end_ms, integer nullable

With source only, optional: the singing part of a longer recording, in milliseconds on whole seconds, 30–60 seconds long. Leave out to use the whole recording.

consent_attested, boolean nullable

With source only: set true only after the user confirmed that the singing is their own voice and agreed to create a singer from it. Only the user's own voice can be used.

enrollment_id, string nullable

Send alone to get a new phrase for an open enrollment, for example after the phrase expired or a check failed. The singing recording is reused.

Response

Task accepted

TaskEnvelope required

Standard Task envelope.

Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.

object, 'task'
task_id, string required
status, 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' required
capability, string required
workload_type, 'model' | 'social_operation'
model, string nullable

Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.

resolved_model, string nullable

Actual model that ran (null until execution starts; equals model for explicit-model calls)

model_selection_reason, unknown
social, SocialTaskIdentity nullable
metadata, object nullable
input, object nullable
progress, AppApiV1SchemasCommonTaskProgress nullable
output, object nullable
warnings, TaskWarning[]
error, AppApiV1SchemasCommonTaskError nullable
usage, UsageObject nullable
billing, TaskBilling nullable
callback, TaskCallback nullable
created_at, string date-time required
started_at, string date-time nullable
deadline_at, string date-time nullable
completed_at, string date-time nullable
cancel_requested_at, string date-time nullable
links, TaskLinks required

Changes