This model performs English air-traffic-control automatic speech recognition.
It combines a Wav2Vec2 CTC model trained with supervised contrastive learning
and a 4-gram language model for decoding.
This model is intended for research on robust English ATC speech recognition.
The included 4-gram language model is specialized for ATC terminology and
phrase patterns.
The acoustic model was trained using real UWB-ATCC speech, simulated ATCOSIM
speech, and synthetic speech derived from their transcripts.
Users should review and comply with the original dataset terms before using or
redistributing this model.
1import torch
2import soundfile as sf
3from transformers import AutoModelForCTC, Wav2Vec2ProcessorWithLM
4
5model_id = "thaivanphat95/wav2vec2-robust-uwb-atcosim-supcon-hybrid-4gram"
6
7processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_id)
8model = AutoModelForCTC.from_pretrained(model_id).eval()
9
10audio, sample_rate = sf.read("audio.wav")
11inputs = processor(audio, sampling_rate=sample_rate, return_tensors="pt")
12
13with torch.no_grad():
14 logits = model(input_values=inputs.input_values).logits
15
16transcript = processor.decode(logits.cpu().numpy()[0]).text
17print(transcript)
Audio should be mono. Resample audio to 16 kHz before inference when necessary.
1@article{thai2026contrastive,
2 title={Contrastive Regularization for Accent-Robust ASR},
3 author={Thai, Van-Phat and Dhruv, Aradhya and Pham, Duc-Thinh and Alam, Sameer},
4 journal={arXiv preprint arXiv:2605.03297},
5 year={2026},
6 doi={10.48550/arXiv.2605.03297}
7}
The model weights and language model are not covered by the Apache License 2.0
used for the training code. Their use and redistribution may also be affected
by the licenses and terms of the pretrained model, UWB-ATCC, ATCOSIM, source
transcripts, and synthetic speech-generation systems.