POST
/
spaces
/
{owner}
/
{space}
/
voiceprints
curl --request POST \
  --url https://api.loccus.ai/v1/spaces/{owner}/{space}/voiceprints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "handle": "voiceprint-a",
  "alias": "Voiceprint A",
  "model": "default/v1",
  "identity": "identity-a",
  "minAudios": 3
}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "handle": "voiceprint-a",
  "alias": "Voiceprint A",
  "state": "notComputable",
  "model": "default/v1",
  "identity": {
    "handle": "identity-a",
    "alias": "Identity A"
  },
  "totalDuration": "PT7.500S",
  "totalVoiceDuration": "PT10.500S",
  "minAudios": 3,
  "audios": 2,
  "verifications": 10,
  "createdAt": "2023-01-01T00:00:00.000000Z",
  "computedAt": "2023-01-01T00:00:00.000000Z"
}

Review the voiceprint models to select which one to use and its version.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

owner
string
required

The handle of the owner.

space
string
required

The handle of the space.

Body

application/json
handle
string

The handle of the new voiceprint. Must be unique.

alias
string | null

The alias of the new voiceprint.

model
string
required

The model used to compute the new voiceprint.

identity
string
required

The handle of the identity of the new voiceprint.

minAudios
integer
required

The minimum number of audios required to compute the new voiceprint.

Response

201 - application/json
id
string
required

The UUID of the voiceprint. Is unique.

handle
string
required

The handle of the voiceprint. Is unique.

alias
string | null
required

The alias of the voiceprint.

state
enum<string>
required

The state of the voiceprint

Available options:
notComputable,
computable,
computed
model
string
required

The model of the voiceprint.

identity
object
required

The identity of the voiceprint.

totalDuration
string
required

The total duration of the audios added to the voiceprint.

totalVoiceDuration
string
required

The total voice duration of the audios added to the voiceprint.

minAudios
integer
required

The minimum number of audios required to compute the voiceprint.

audios
integer
required

The number of audios added to the voiceprint.

verifications
integer
required

The number of verifications of the voiceprint.

createdAt
string
required

The date and time when the voiceprint was created.

computedAt
string
required

The date and time when the voiceprint was computed.