Classify Speech
POST/ai-speech-classifier/classify
Perform comprehensive AI-powered speech classification. Features: - Speaker profiling (gender, age, characteristics) - Language detection with alternatives - Emotion analysis - Content analysis with keywords and topics - Sentiment analysis - PII and profanity detection - Audio quality assessment
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
enable_transcription | query | boolean | |
enable_language_detection | query | boolean | |
enable_content_analysis | query | boolean | |
enable_pii_detection | query | boolean | |
enable_sentiment_analysis | query | boolean |
Request body
multipart/form-data
| Field | Type | Description |
|---|---|---|
file* | file |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
ai_probability | number | Probability that speech is AI-generated |
confidence_score | number | Confidence in the AI/Human detection |
content* | ContentAnalysis | Content analysis results. |
emotion* | EmotionAnalysis | Emotion analysis results. |
human_probability | number | Probability that speech is human |
language* | LanguageDetection | Language detection results. |
metadata* | app__schemas__ai_speech_classifier__AudioMetadata | Audio file metadata. |
processing_time | number | Processing time in seconds |
quality* | AudioQuality | Audio quality metrics. |
speaker* | SpeakerProfile | Speaker profile information. |
timestamp | string | Analysis timestamp |
{
"content": {
"category": "string",
"sentiment": {
"label": "string",
"score": -1
}
},
"emotion": {
"confidence": 0,
"primary": "string",
"scores": {
"angry": 0,
"fearful": 0,
"happy": 0,
"neutral": 0,
"sad": 0,
"surprised": 0
}
},
"language": {
"alternatives": [
{
"confidence": 0,
"language": "string"
}
],
"confidence": 0,
"primary": "string"
},
"metadata": {
"channels": 0,
"duration": 0,
"file_size": "string",
"format": "string"
},
"quality": {
"background_noise": 0,
"bitrate": "string",
"clarity": 0,
"distortion": 0,
"overall": 0,
"sample_rate": 0
},
"speaker": {
"age_range": "string",
"confidence": 0,
"gender": "string",
"voice_characteristics": {
"accent": "string",
"pace": "string",
"pitch": "string",
"tone": "string"
}
}
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/ai-speech-classifier/classify" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-F "file=@./file"