Skip to content

Voice consistency

Voice consistency answers one question: does this recording sound like the voice enrolled in a verified session? Introcall uses it to notice when the candidate answering an interview is not the one who passed the ID check.

It is a consistency signal, not voice authentication: it never proves who someone is on its own. A voice result can send a session or an interview to review. It never approves or declines anything, and the workflow rules refuse anything that tries.

Voice works with test and live keys. Use the result to send cases to a person, never to reject anyone.

Add a voice_enrol step after the light step:

{"id": "voice", "type": "voice_enrol", "config": {"digits": 16, "retention": {"days": 7}}}

After the light check, the person reads random digits aloud with the camera still on.

  • The page asks again, up to twice, if the audio is unusable.
  • The person can skip the step, and the session carries on. With "required": true in the step’s config, there’s no skip: a voice that can’t be enrolled is inconclusive, and the step’s on.inconclusive rule decides (for example review or decline).
  • rightful keeps a voice template: numbers that describe the voice, never a recording. It is encrypted and never downloadable, and deleted after retention.days (7 by default).
  • A declined session keeps none.
  • The completed session tells you whether a voice was enrolled:
"voice": {"enrolled": true, "retain_until": "2026-12-09T14:02:11Z"}

Send a WAV file (PCM 16-bit or float 32, mono or stereo, 8 to 48 kHz, at most 60 seconds) with the enrolling session’s id:

const v = await rightful.verifyVoice(
{ reference_session: 'ses_…', track_id: 'interview_42', segment_label: 'q3' },
wavBytes,
{ idempotencyKey: 'interview_42-q3' },
);

The answer is a band:

  • consistent, possible or inconsistent;
  • or inconclusive, when there was too little speech, the audio clipped, more than one voice was heard, or the voice was enrolled with an older model.

It also carries the audio quality and, with a track_id, the band history of that track. Act on a run, not on one result. For example, flag for review after track.consecutive_inconsistent reaches 2. inconclusive results do not break a run.

A voice_match step compares the voice enrolled in this session with one from an earlier session of the same person:

  • declare the label under inputs.reference_voices;
  • pass reference_voices: [{label, session_id}] when you create the session.