SpeakerScope.ai

Identity Verification

Verify whether two audio samples are from the same speaker


Request

Endpoint

POSThttps://speakerscope.ai/api/verification

Fields

FieldTypeDescription
audio1_urlstringURL of the first audio file (enrollment)
audio2_urlstringURL of the second audio file (test)

Example

import requests

response = requests.post(
    "https://speakerscope.ai/api/verification",
    auth=("<API_KEY>", "<API_SECRET>"),
    json={
        "audio1_url": "<AUDIO1_URL>",
        "audio2_url": "<AUDIO2_URL>",
    },
)

print(response.json())

Response

Fields

FieldTypeDescription
predictionbool"true" if both samples are from the same speaker, "false" otherwise
probabilitiesdict[str, float]Maps each outcome ("true" and "false") to its confidence score, sorted in descending order

Example

{
  "prediction": "true",
  "probabilities": {
    "true": 0.89,
    "false": 0.11
  }
}