POST

Detect spoken language from audio sample; returns { language, confidence }. Uses whisper detect

/v1/audio-language

Powered by OpenAI

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/audio-language
Content-Type: application/json

{
  "url": "https://tools402.dev",
  "duration_hint_sec": 1
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

{
  "language": "…",
  "confidence": "…"
}

Overview

Detect spoken language from audio sample; returns { language, confidence }. Uses whisper detect.

AI research lab behind the GPT and Whisper models.

Request schema

Body: JSON · application/json

FieldTypeDescription
urlstringrequired
duration_hint_secnumberoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/audio-language \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://tools402.dev",
  "duration_hint_sec": 1
}'

402 payment flow omitted — see Integrations for settlement.