Skip to content
HALOWERK

Tonwerk

spoken language id

Silero VAD v6.2 finds the speech; sections separated by at least 0.6 s of silence are scored separately (closest sections are merged until at most max_sections remain, sections shorter than min_section_s are listed but not scored). For the whole recording and for each section the audio is encoded by OpenAI Whisper base (MIT; ONNX export Xenova/whisper-base, pinned) and the softmax over the 99 language tokens after <|startoftranscript|> is returned (detect_language of openai/whisper),.

POST https://ton.halowerk.com/v1/spoken-language-id

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
audio_base64stringNoSpeech recording, at most 30 s, as base64 (max 10 MiB): WAV, FLAC, MP3, AAC/M4A, Ogg Vorbis/Opus, WebM and other common formats.
audio_urlstringNoInstead of base64: public http(s) URL of the file (max 10 MiB).
candidatesarrayNoOptional Whisper language codes to choose from (e.g. ["de","en"]).
max_sectionsintegerNoLargest number of sections scored separately.
min_section_snumberNoShortest section that is scored.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "audio_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "Speech recording, at most 30 s, as base64 (max 10 MiB): WAV, FLAC, MP3, AAC/M4A, Ogg Vorbis/Opus, WebM and other common formats."
    },
    "audio_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Instead of base64: public http(s) URL of the file (max 10 MiB)."
    },
    "candidates": {
      "type": "array",
      "minItems": 2,
      "maxItems": 20,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^[a-z]{2,3}$"
      },
      "description": "Optional Whisper language codes to choose from (e.g. [\"de\",\"en\"])."
    },
    "max_sections": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5,
      "default": 4,
      "description": "Largest number of sections scored separately."
    },
    "min_section_s": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 5,
      "default": 1,
      "description": "Shortest section that is scored."
    }
  }
}

Open original schema

Published input example

{
  "audio_base64": "T2dnUwACAAAAAAAAAAAAAAAAAAAAAEkq9qABE09wdXNIZWFkAQE4AYA+AAAA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ZrXUcBrcrNDZ++guMTIAi8NCUU+wvJDitjirZUBwgBpx1gCLwaQkxPucX3urcue9bBuUHdiiRPZ2dTAAR4CwEAAAAAAAAAAAADAAAAPwKsfhYREBMOChILDgkLCQsLBwwMCQYGBgYGCLov9NPi2gEPQe/oA58GNqAIt5pbnoQ2A3N8zV0f8m9TCK+XNfRR6Acx5Eim2oOOskL6EAgFkSUcftB6rfM3lGHYCCjfm27mFzIu0AiZ+LV4wfeaZ8rR9BYQM65kcAiEpe6e70//Q8lACJCqgiBL4/tlLnbsgUAIBd09l46zPEAIMnlx017wJMduxAgpBokThtwzQAglHJ3jhpA7W6KACCHMKWFlJOoQL5AIAxrgpboaCBP6IbwuP972AsiKCAimZI17WaB7uFmACAimZI6iSibACAissw7GCAissw7GCAissw7GCAissw7GCAissw7G"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’