/ Модель

Характеристики

Лицензия
Своя лицензия
Опубликована
25 авг 2026

ear

Классификация аудиоАудио → label6 профессий

Ear локально определяет язык устной речи в аудиозаписи и возвращает кандидатов с оценками уверенности.

647скачиваний за 30 дней19лайковвеса обновлены25 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Ear — модель для определения языка устной речи в аудиозаписи, созданная desert-ant-labs на основе openai/whisper-tiny. Она выбирает три наиболее похожих на речь 30-секундных фрагмента и классифицирует язык; для записей короче 30 секунд использует один фрагмент. Модель принимает аудио, а SDK возвращают код наиболее вероятного языка, оценку уверенности, ранжированный список кандидатов и признак надёжности результата.

Модель рассчитана на локальный запуск на мобильных и настольных устройствах, в браузере и Node.js. Доступны форматы Core ML для устройств Apple и LiteRT/TFLite для других платформ. README указывает поддержку 99 языков и обработку окон длительностью 30 секунд; классификация выполняется примерно за 250 мс. Метаданные перечисляют часть языков, но не все заявленные в README.

По описанным разработчиком испытаниям, уверенные ответы в двух небольших наборах записей были верны; это не заменяет широкую независимую оценку качества. Модель хуже определяет речь, смешанную с громкой музыкой, не различает надёжно норвежский, шведский и датский, а в многоязычной записи сообщает язык выбранных фрагментов. Она определяет язык, но не транскрибирует речь. Лицензия в метаданных обозначена как other; README сообщает, что исходные веса Whisper Tiny имеют лицензию MIT, но не уточняет условия лицензии самой Ear.

Сценарии применения

  • определение языка перед выбором системы распознавания речи
  • автоматическая маршрутизация аудиозаписей к нужному распознавателю
  • определение языка в аудио на мобильных устройствах без сети
  • анализ языка речи в подкастах и пользовательских аудиофайлах

Ограничения

Громкая музыка поверх речи ухудшает определение; норвежский, шведский и датский модель надёжно не различает. Для коротких записей результат менее устойчив, многоязычная запись сводится к языку выбранных фрагментов; транскрипцию модель не выполняет.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Ear

Detect spoken language from 30 seconds audio.

On-device spoken language identification across 102 languages.

PlatformsiOS, macOS, tvOS, visionOS, Android, Linux, Windows, Browser, Node
Languages102
Weightsv0.2.0

Detect the spoken language of a recording with Ear before you transcribe it, so you run the right transcription model. Ear works on 5-30s of speech and takes 7.6ms on a MacBook Pro, entirely on the device.

Ear is a spoken language identification model for 102 languages. Ear gives each language a confidence score. When the top two are too close to call, Ear flags the answer as unreliable. You can then ask the user or fall back to a general model instead of transcribing in the wrong language. The model is 5.0MB as Core ML for Apple platforms and 10.7MB as LiteRT for Android, Linux, Windows and Node.

Install

Swift (requirements)

.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "6.0.0")

Then add the Ear product to your target.

Kotlin (requirements)

implementation(platform("ai.desertant:bom:6.0.0"))
implementation("ai.desertant:ear")

JavaScript (requirements)

npm i @desert-ant-labs/ear @litertjs/core   # browser
npm i @desert-ant-labs/ear                  # Node, prebuilt native core

Usage

Swift

import Ear

let ear = Ear()                                     // downloads on first use
let detection = try await ear.identify(contentsOf: url)

detection.language      // "pt"
detection.confidence    // 0.98
detection.isReliable    // true
detection.candidates    // [LanguagePrediction(language: "pt", probability: 0.98), …]

Create one Ear instance and reuse it. Creating the instance does no work and starts no download. The SDK loads the model on the first call to identify or download(progress:), off your calling thread.

You can also pass decoded samples at any sample rate:

let detection = try await ear.identify(samples: samples, sampleRate: 44100)

Kotlin

val ear = Ear(context)                         // downloads on first use
val detection = ear.identify(samples, 16_000.0)

detection.language      // "pt"
detection.confidence    // 0.98
detection.isReliable    // true
ear.close()

JavaScript

The default import is the browser build, which runs on WebAssembly and LiteRT.js. For inference in Node, import the /native subpath, which runs a prebuilt native core.

import { Ear } from "@desert-ant-labs/ear";           // browser
// import { Ear } from "@desert-ant-labs/ear/native"; // server-side Node

const ear = await Ear.load();
const detection = await ear.identify(samples, 16000);

detection.language      // "pt"
detection.isReliable    // true
ear.dispose();

Deciding what to do with the answer

Branch on isReliable. isReliable is false when the top two candidates are less than 0.25 apart. isReliable is also always false for Norwegian, Swedish and Danish. Ear tells Norwegian and Swedish apart 98.5-100% of the time, but the SDK marks all three as unreliable so you can route them to a recognizer that handles them well.

guard detection.isReliable, let language = detection.language else {
    return await transcribeWithFallback(url)     // ask, or use a general model
}

Every SDK reads isReliable from the same shared core, so the same recording gets the same answer on every platform.

Most answers are reliable, and reliable answers are almost always right:

CorpusClipsReliableRight when reliable
Common Voice7,50098.6%99.4%
VoxPopuli3,22199.5%99.9%
Multilingual LibriSpeech2,66099.4%99.8%
English, four recording conditions1,66097.2%99.1%

Downloading ahead of time

if !Ear.isDownloaded() {
    try await ear.download { fraction in print(fraction) }
}

Pass directory to use model files you manage yourself. When the directory already holds the model, Ear loads the model offline and downloads nothing. Use directory to ship the weights inside your app instead of fetching them.

let ear = Ear(directory: "/path/to/model")

How Ear picks windows

Most recordings aren't speech from start to end, so Ear doesn't analyze the whole file. Ear ranks candidate windows by how much of their loudness varies at syllable rate, and analyzes the three most speech-like windows. Speech rises and falls three to six times a second and has gaps between words. Music sustains notes. Silence doesn't vary at all.

Files

FileFormatSizeContents
ear.mlmodelcCore ML, 6-bit weights, compiled5.0MBThe detector for iOS, macOS, tvOS and visionOS
ear.tfliteLiteRT, int810.7MBThe detector for Android, Linux, Windows, Node and the web
ear_meta.jsonJSON2.2kBThe front end's geometry and the tensor names per runtime
languages.jsonJSON0.6kBThe language codes, in output order
mel_filters.f32Binary table64kBThe mel filterbank, 80 by 201, little-endian

Load the detector for your platform together with ear_meta.json, languages.json and mel_filters.f32. The SDK uses them to prepare the audio, so there's no separate model for that step.

Inputs and outputs

  • In: 16kHz mono audio, up to 30s.
  • Out: a probability for each language, in the order of languages.json. The language with the highest probability is Ear's answer.
  • Reliable or not: an answer is reliable when the top two probabilities are at least 0.25 apart. The SDK always marks Norwegian, Swedish and Danish as unreliable.

Languages

Ear covers 102 languages, from Afrikaans to Zulu, listed in output order in languages.json. For any other language, Ear returns the closest supported language, so check that each answer is reliable before picking a transcription model.

Results

The right transcription model, 99% of the time. Measured on the published weights, with speakers who weren't in the training data.

Accuracy by clip length. How often Ear's top answer is the right language.

CorpusClips per length5s10s15s20s30s
Common Voice, 15 languages1,5000.9460.9800.9890.9910.995
VoxPopuli, 16 languages825 to 4580.9780.9960.9970.9981.000
NST, Norwegian and Swedish2000.9850.9951.0001.0001.000
Multilingual LibriSpeech, 7 languages5320.9790.9920.9960.9980.994
English, LibriSpeech audiobooks1000.9901.0001.0001.0001.000
English, AMI meetings1000.9501.0001.0001.0001.000
English, CHiME-6 dinner parties320.9381.0001.0001.0001.000
English, NOTSOFAR-1 meetings1000.9000.8900.9600.9600.980

Routing, every clip. Right model: the clip went to a transcription model that handles its language. Wrong model: it went to one that doesn't. Reliable: the answer passed the reliability rule. Right when reliable: how many reliable answers were correct.

CorpusClipsRight modelWrong modelReliableRight when reliable
Common Voice7,5000.9900.0140.9860.994
VoxPopuli3,2210.9980.0000.9950.999
NST1,0001.0000.000always unreliable
Multilingual LibriSpeech2,6600.997every language handled0.9940.998
English, four conditions1,6600.980every language handled0.9720.991

Whole recordings. Ear's answers on three 30s clips from each recording, averaged.

CorpusRecordingsRight modelReliableRight when reliableReliable and wrong
Common Voice4570.9930.9960.9962
VoxPopuli2561.0001.0001.0000
NST801.000always unreliable0
Multilingual LibriSpeech1731.0001.0001.0000
English, four conditions1280.9840.9840.9921

More test sets, Core ML build.

SetClipsAccuracyRight modelWrong model
FLEURS test, the 32 product languages6400.9770.9970.000
FLEURS test, all 102 languages2,0400.9540.9930.010
VoxLingua107 dev, YouTube audio, languages Ear offers1,0940.9420.973
VoxLingua107 dev, YouTube audio, languages Ear does not offer5150.012
120 VoxPopuli recordings, whole files1201.000

Performance

7.6ms per clip on the Apple Neural Engine. One 30s clip, after warm-up, median.

BuildDeviceComputeSizeLatency
Core ML, 6-bit weightsMacBook Pro, M5 Pro, macOS 26Apple Neural Engine, 100% resident5.0MB7.6ms
LiteRT, int8MacBook Pro, M5 Pro, macOS 26CPU, 4 threads10.7MB26.8ms

Limitations

  • Far-field recordings. Ear is less accurate when the speakers are far from the microphone. On NOTSOFAR-1 meetings, Ear gets the language right 90% of the time on 5s clips, versus 98% on 30s clips. For room recordings, pass Ear the full 30s, and when an answer is unreliable, ask a user to confirm the language.
  • Galician. Ear labels Galician as Spanish about 4% of the time.
  • Norwegian, Swedish and Danish. Ear tells Norwegian and Swedish apart 98.5-100% of the time on NST. The SDK still marks all three as unreliable, so you can route them to a transcription model that handles them well.
  • Mixed-language recordings. Ear returns one language per clip, even if the speakers switch languages.
  • Languages outside the 102. Ear returns the closest supported language. The reliability rule catches most of these answers, but not all of them.
  • Ear detects the language and doesn't transcribe. For a transcript, pair Ear with Voz or another transcription model.

Built on

Open models and tools this work builds on, with their licenses:

None of them is redistributed here. Dataset attributions are in the weights' third-party notices, linked under License.

License

Desert Ant Labs Source-Available License. Free for most apps, and a commercial license is required at scale. Full terms are at the link. Licensing: licensing@desertant.com.

Third-party notices for the weights: THIRD_PARTY_NOTICES.md.

Citation

@software{ear_2026,
  title  = {Ear: On-device spoken language identification across 102 languages},
  author = {Desert Ant Labs},
  year   = {2026},
  url    = {https://huggingface.co/desert-ant-labs/ear},
}

© 2026 Desert Ant Labs · https://desertant.com

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
a5123ea

0 моделей