Identity Verification
Verify whether two audio samples are from the same speaker
Request
Endpoint
POSThttps://speakerscope.ai/api/verification
Fields
| Field | Type | Description |
|---|---|---|
audio1_url | string | URL of the first audio file (enrollment) |
audio2_url | string | URL 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
| Field | Type | Description |
|---|---|---|
prediction | bool | "true" if both samples are from the same speaker, "false" otherwise |
probabilities | dict[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
}
}