Whisper large-v3 pt-PT for the noise-suppressed telephone line
inesc-id/WhisperLv3-FT adapted with a LoRA
to audio that went down a telephone line and through a neural noise suppressor, so the
recogniser can hear the same cleaned signal a voice-activity detector uses, instead of
being hurt by the suppressor's artefacts.
This repository holds the merged model in transformers format, the LoRA alone in
adapter/, the code that built it in training/ (self-contained: uv sync and run) and
this run's settings in run/. A CTranslate2 conversion for faster-whisper is published
separately as whisper-lv3-ft-hush-ct2. Git tag v1 is the first run, whose prompts came
from one client's text; main is v2, which learnt no client's prompt.
What it was trained on
Every clip went through the path a call takes:
speech + room noise → telephone line → suppressor → label: transcript (60 %)
speech + room noise → telephone line → label: transcript (25 %)
speech → telephone line → label: transcript (15 %)
noise only → telephone line → suppressor or not → label: "" (428 clips)
- Speech: 50 h (8,138 clips) of FalAR,
European Portuguese parliamentary speech (CC BY 4.0), from the
train_0split, kept where the official record and an ASR pass agree (cer≤ 0.05). Labels are the official record. - Noise: six DEMAND environments (DKITCHEN, DWASHING,
NFIELD, NPARK, NRIVER, TMETRO; CC BY 4.0) and babble beds of 3–7 FalAR speakers from the
train_15split, half and half. SNR mostly 0–15 dB, some 15–25 dB, with 0.3–1.5 s of noise around the speech, the way voice-activity segments arrive. - Telephone line: 300–3400 Hz band-pass, 8 kHz, A-law, back to 16 kHz.
- Suppressor: Hush (Apache-2.0), DeepFilterNet-based, at 22.5 dB attenuation, primed with 2 s of noise so it has adapted as it would mid-call.
- Decoder prompts: from FalAR's own text, never a learning target and never a client's. Speech: a third bare, a third with the utterance before it (the prompt as context), a third with unrelated text (the prompt to look past). Noise-only clips: three quarters under unrelated text, so text over noise still comes out empty rather than read back.
Training
LoRA r = 32, α = 64, dropout 0.05 on q_proj, k_proj, v_proj, out_proj (encoder
self-attention, decoder self- and cross-attention); 31.5 M trainable parameters. bf16,
gradient checkpointing, batch 8 × 2 accumulation, learning rate 3e-4 with 5 % warmup, 2 epochs
(1,072 steps), one RTX 3090, about 1.5 h. Tokenizer and feature extractor are
openai/whisper-large-v3's, which the base shares. Settings in run/, code in training/.
eval loss, 1 h FalAR dev through the same mix | base model | epoch 1 | epoch 2 |
|---|---|---|---|
| 1.151 | 0.167 | 0.164 |
Evaluation
55 recorded caller phrases (one speaker, pt-PT, with the voice agent's own bias prompts, which this model never saw), mixed into DEMAND noises held out of training, down the telephone line and through the agent's own VAD. WER with spelling normalised; invented words are words from turns wholly in noise.
| base, raw line | this model, raw line | this model, Hush in front of VAD and ASR | |
|---|---|---|---|
| clean | 21.5 % | 22.4 % | 31.3 % |
| meeting room, 0 / 5 / 10 dB | 435 / 411 / 412 % (808 / 947 / 1105 invented) | 172 / 125 / 112 % (197 / 163 / 176) | 126 / 83 / 56 % (83 / 39 / 5) |
| cafeteria, 0 / 5 / 10 dB | 111 / 83 / 55 % (81 / 62 / 9) | 83 / 62 / 47 % (0 / 0 / 0) | 89 / 69 / 57 % (0) |
| street traffic, 0 / 5 / 10 dB | 57 / 47 / 36 % | 55 / 45 / 36 % | 67 / 53 / 41 % |
The base model reads its bias prompt back out of background voices; this one does not. What it still writes in a meeting room is the people talking there, which only the suppressor removes, while the suppressor costs words on a quiet line and on steady noise. Run it on the raw line, and give it the Hush-cleaned line once background voices are confirmed on a call.
Use
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="<this repo>")
asr("call.wav", generate_kwargs={"language": "portuguese", "task": "transcribe"})
Limits
- Tied to the suppressor and its setting: a different suppressor or attenuation needs retraining. The raw and clean share keeps it usable with the suppressor off.
- What the suppressor removes (attenuated word endings) cannot be learnt back.
- FalAR clips are long (mostly 15–30 s) and formal; short answers and domain vocabulary are not specifically trained.
- The noise-only share teaches empty output on noise; check that quiet real speech is not dropped.
Attribution
FalAR (INESC-ID) and DEMAND (Thiemann, Ito, Vincent, 2013) are CC BY 4.0. Base model
inesc-id/WhisperLv3-FT and Whisper (OpenAI) are Apache-2.0.