---
title: Audio Language Detection
slug: detect-audio-language
url: https://apyverse.com/apyhub/service/detect-audio-language
provider: ApyHub
categories: [Artificial Intelligence, Audio Processing]
tags: [audio-language-detection, speech-language, audio-classification, language-detection, audio-analysis]
auth: api_key
---

# Audio Language Detection

Detect the language in an audio file from a URL or upload. Returns a locale code and confidence score for transcription routing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/audio/detect/language/url` | What it does Detects the language of an audio file from a publicly accessible URL and returns the d… | 500 |
| POST | `/ai/audio/detect/language/file` | What it does Uploads an audio file and returns the detected language information for that file. Req… | 500 |

## About

## What it does
Audio Language Detection identifies the language spoken in an audio file and returns the detected locale code plus a confidence score. Send either a public audio URL to `/url` or upload an audio file to `/file`.

Use the URL endpoint when the audio is already hosted somewhere accessible, or the file upload endpoint when you have the binary directly in your app or pipeline. The request body is minimal: `url` for remote files, or `file` for uploaded audio such as WAV or MP3.

The response is a structured result under `data.azure` with `language` and `confidence`. `language` is returned as a locale code like `en-US`, and `confidence` is a numeric score from 0.0 to 1.0 that helps you decide whether to trust the detection.

This is useful for routing audio into the right transcription flow, selecting the right language-specific downstream model, or triaging user-submitted media before processing. If you need a simple way to classify spoken audio by language without extra metadata, Audio Language Detection gives you that signal directly.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/detect-audio-language
