Analyze Audio
Initiate comprehensive fraud analysis on an uploaded audio file, including transcription and AI-powered fraud detection.
Request
The ID of the audio file to analyze
Analysis options
Transcription engine: whisper, parakeet, nemo
Language code (e.g., en, es, fr) or “auto” for detection
Fraud detection settingsShow fraudDetection properties
Detection sensitivity: low, medium, high
Specific fraud types to check: financial, identity, technical, emotional
Processing priority: low, normal, high, urgent
URL to receive completion notification
Response
Unique identifier for the analysis
Analysis status: queued, processing, completed, failed
Estimated completion time (ISO 8601)
Position in processing queue
Examples
curl -X POST https://api.authentivoice.com/v1/analyze \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fileId": "file_0987654321fedcba",
"options": {
"transcriptionEngine": "whisper",
"language": "en",
"fraudDetection": {
"sensitivity": "high",
"focusAreas": ["financial", "identity"]
}
},
"webhookUrl": "https://your-app.com/webhook/analysis-complete"
}'
Response Example
{
"analysisId": "ana_1234567890abcdef",
"status": "processing",
"estimatedCompletion": "2024-01-15T10:35:00Z",
"queuePosition": 3
}
Webhook Payload
When analysis completes, a POST request is sent to your webhook URL:
{
"event": "analysis.completed",
"timestamp": "2024-01-15T10:34:30Z",
"analysisId": "ana_1234567890abcdef",
"status": "completed",
"results": {
"riskScore": 75,
"fraudIndicators": [
{
"type": "urgency_language",
"confidence": 0.85,
"timestamp": "00:45-01:20"
},
{
"type": "personal_info_request",
"confidence": 0.92,
"timestamp": "02:15-02:45"
}
],
"transcription": {
"text": "Full transcription text...",
"confidence": 0.95,
"language": "en"
}
}
}
Error Responses
File not found{
"error": {
"code": "FILE_NOT_FOUND",
"message": "The specified audio file was not found"
}
}
Analysis already in progress{
"error": {
"code": "ANALYSIS_IN_PROGRESS",
"message": "Analysis is already in progress for this file",
"analysisId": "ana_existing123"
}
}
Processing queue full{
"error": {
"code": "QUEUE_FULL",
"message": "Processing queue is full. Please try again later.",
"retryAfter": 300
}
}