Skip to content
VoiceMint Developers

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

NameInTypeDescription
enable_transcriptionqueryboolean
enable_language_detectionqueryboolean
enable_content_analysisqueryboolean
enable_pii_detectionqueryboolean
enable_sentiment_analysisqueryboolean

Request body

multipart/form-data

FieldTypeDescription
file*file

Response

200 application/json

FieldTypeDescription
ai_probabilitynumberProbability that speech is AI-generated
confidence_scorenumberConfidence in the AI/Human detection
content*ContentAnalysisContent analysis results.
emotion*EmotionAnalysisEmotion analysis results.
human_probabilitynumberProbability that speech is human
language*LanguageDetectionLanguage detection results.
metadata*app__schemas__ai_speech_classifier__AudioMetadataAudio file metadata.
processing_timenumberProcessing time in seconds
quality*AudioQualityAudio quality metrics.
speaker*SpeakerProfileSpeaker profile information.
timestampstringAnalysis 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

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over 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"