09 · Handle spoken intake
Hear the same F-250 radio request with and without noise, then trace which words matter for a safe manual lookup.
- Part 3
- Connect tools and inputs
- Model
openai/whisper-base- Data
- Synthetic equipment readouts and LibriSpeech
- Hardware
- Tesla T4 and CPU, in Google Colab
Hear the F-250 request
A technician radios the North Yard Facilities Helpdesk from beside fan F-250. They read the plate, then ask about the operating limit. The signed-in desk operator can quote the manual once they know which fan the technician means. Listen to both readouts. Would you trust the asset ID enough to open the manual?

“What is the maximum temperature for F two five zero?”
Check what the desk should do
With F-250 resolved, the desk can read its manual. If the transcript names F-251 instead, the saved resolver asks the operator to repeat the ID. This one-digit edit is a separate check.
Change one fact. Keep the technician's words and the operator's permissions fixed. Suppose the desk reads the last digit as “one” instead of “zero”. What should it do?
| ID in the transcript | Desk response |
|---|---|
| F-250, the intended fan | Read the authorised F-250 manual. |
| F-251, the one-digit check | Ask for the plate again. The scoped lookup has no matching record. |
The text path answered every ticket. The noisy speech path answered none.
Strict answers on the same eight tickets
1| Input | Passes | Share | Change vs text (95% interval, pp) |
|---|---|---|---|
| Clean text | 8/8 | Reference | |
| Clean readout | 5/8 | −37.5 [−75.0, 0.0] | |
| Noisy readout | 0/8 | −100.0 [−100.0, −100.0] |
Change what the desk hears
Each helpdesk question comes from the frozen development split. The lab adapts the wording to an explicit temperature question and retains the original asset, family, answer and evidence. It synthesises each reference once, then adds seeded white noise to a copy. Both versions share gain and headroom, so the audio players compare the same voice, words and duration.
For clean waveform x and noise component n, the signal-to-noise ratio is
The lab sets this ratio to 12 dB. The Whisper authors used controlled white and pub noise to measure how different recognisers handled the same recordings. Here, the controlled perturbation isolates a failure the desk can act on. Real radio noise may involve competing speech, machinery or dropouts. Whisper paper, §3.7 and Figure 5
# Lab 09: scale the added noise, then give the pair common headroom.
gain = np.linalg.norm(wave) / (np.linalg.norm(noise) * 10 ** (SNR_DB / 20))
noisy_wave = wave + gain * noise
scale = max(1.0, float(np.max(np.abs(wave))), float(np.max(np.abs(noisy_wave))))
clean, noisy = wave / scale, noisy_wave / scaleAdding noise cost five more word edits across the helpdesk clips
Word errors divided by reference words. The audiobook clips are a separate domain.
2| Domain | Clips | Edits / words | Word error rate |
|---|---|---|---|
| Clean readout | 8 | 31/84 | 36.9% |
| Noisy readout | 8 | 36/84 | 42.9% |
| LibriSpeech | 8 | 18/205 | 8.8% |
Word error rate counts substitutions, insertions and deletions. The notebook sums the edits over the corpus before dividing by its total reference words.
A transcript can get the whole request roughly right while losing the only token the desk needs. The audiobook row comes from the pinned public derivative of LibriSpeech. OpenSLR describes the parent corpus as roughly 1,000 hours of aligned read English from LibriVox audiobooks. The eight clips here provide a recognition reference from another domain and carry no equipment IDs or manual answers. OpenSLR LibriSpeech dataset record
Pass the transcript through the same resolver
A speech recognizer converts audio to text, but the transcript is not proof of the intended asset. Use the same authorized record resolver and evaluate the final task, including uncertainty about ambiguous spoken identifiers.
The transcript supplies a candidate ID. The authenticated session supplies tenant and role. The same scope, lookup and strict grader apply whether the input is the reference text or Whisper's transcript.
# Lab 09: vary the input text while retaining the authenticated context.
text_id, text_answer = resolve(clip["reference"], ticket["tenant"], ticket["role"])
predicted_id, speech_answer = resolve(prediction, ticket["tenant"], ticket["role"])The resolver recognises forms such as F250, F-250 and F two five zero. It asks again when the authorised catalogue has no unique match and denies requests without the operator role. A strict pass requires the expected decision, value and evidence together. The SLURP authors likewise compared spoken-language understanding with gold and recognised text. Their combined scenario/action score moved from 84.84% with gold transcripts to 78.33% with adapted ASR transcripts. SLURP, Tables 5 and 7
Every noisy clip lost the equipment ID at lookup
Recorded identifier outcomes on the matched helpdesk requests
3| Input | Exact | Wrong resolved | Unresolved |
|---|---|---|---|
| Clean readout | 5/8 | 0 | 3/8 |
| Noisy readout | 0/8 | 0 | 8/8 |
In the noisy readout of F-250, the words “a 2-I-Nero” leave the resolver without a match. It asks for the ID again. That protects the lookup, but the request still fails the strict task because the operator expected the temperature and its source.
F250-00 · “What is the maximum temperature for F two five zero?”
- Expected
- F-250 → Answer · 101 °C · manual-F-250-r3
- Clean readout
- “What is the maximum temperature for F250?” → F-250 → Answer · 101 °C · manual-F-250-r3
- Noisy readout
- “What in the maximum temperature for a 2-I-Nero?” → no ID → Clarify · empty value · no evidence
Four word edits in the clean transcript left a recognisable ID. Five edits in the noisy transcript broke the lookup.
Noise flipped five answers to clarification
Two wordings per equipment family, matched by ticket
4| Ticket | Clean | Noisy |
|---|---|---|
| F200-00 | Asked again | Asked again |
| F200-01 | Asked again | Asked again |
| F201-00 | Answered | Asked again |
| F201-01 | Asked again | Asked again |
| F250-00 | Answered | Asked again |
| F250-01 | Answered | Asked again |
| F251-00 | Answered | Asked again |
| F251-01 | Answered | Asked again |
0 gains, 5 losses. Paired change −62.5 pp (95% interval −100.0 to −25.0 pp).
Each pair changes only the noise. The two phrasings from each equipment family share the same asset and manual, so the bootstrap draws families as groups. With four families, the interval describes this small comparison.
The same number of word edits led to different answers
Whole-word edits and strict answer outcomes across both helpdesk readouts
5| Word edits | Answered | Asked again | Clips |
|---|---|---|---|
| 3 | 1 | 1 | 2 |
| 4 | 4 | 6 | 10 |
| 5 | 0 | 3 | 3 |
| 6 | 0 | 1 | 1 |
The measured clips produced no resolved wrong IDs. A wrong readout that happens to name another valid asset could still send the desk to the wrong manual. Google's contextual lattice rescoring moved WER from 5.00% to 4.40% on its media commands and held steady at 8.80% on its non-media slice. A scoped catalogue could help the desk recover a plate ID. Check similar valid identifiers explicitly when testing it. Google contextual speech recognition study, Table 4
Measure the cost of listening
The real-time factor divides total recogniser time by total audio duration. Longer recordings carry more weight in the ratio. The model is loaded and warmed before the timed single-clip calls.
Recognition took a small share of recording time
Single-clip ASR wall time on a Tesla T4, after loading and warm-up
6| Domain | Audio, s | Median, ms | ASR / audio |
|---|---|---|---|
| Clean readout | 31.9 | 117.2 | 2.9% |
| Noisy readout | 31.9 | 123.1 | 3.2% |
| LibriSpeech | 86.3 | 240.6 | 2.6% |
Blue: clean readout · orange: noisy readout · grey: LibriSpeech. Equal audio and recognition time lies above this scale for the recorded clip lengths.
Model load 15.81 s · First warm-up 2.03 s · Peak CUDA allocation 172.2 MiB.
What to keep
| Signal | What the desk learns | What to do with it |
|---|---|---|
| Word error rate | How much of the transcript changed | Monitor overall audio quality by condition. |
| Exact equipment ID | Whether the resolver found the intended plate | Confirm confusable IDs and ask again for an unresolved one. |
| Strict answer | Whether the operator got the expected decision, value and evidence | Use this to judge the complete intake path. |
Keep authorisation on the session. Log the recognised ID and the resolver's decision together so a clarification remains visible. Show which manual revision supported each answer. Amazon describes using the previous clarification turn as context to recognise a chosen contact name. Its initial deployment reported almost 26% lower ASR error in that dialogue subset. The desk could test the same idea when it asks a technician to repeat a plate. Amazon Science engineering account
Next to try, not tested here
- Record the same requests with consenting speakers and different microphones.
- Test a scoped candidate list on valid but confusable plates.
- Compare a repeat-back check with an unconditional second recognition pass.
How it was built
| Item | Setting |
|---|---|
| Model | openai/whisper-base at e37978b90ca9030d5170a5c07aadb050351a65bb |
| Helpdesk sample | Eight development tickets from four families, each using clean text, one synthesised readout and its noisy copy |
| Development digest | SHA-256 in the summary record |
| Synthesis | eSpeak NG 1.51, en-us, 150 words/min, 16 kHz |
| Noise | Seeded white noise, 12 dB SNR, same headroom for each pair |
| Public audio | Eight clips from the pinned LibriSpeech derivative. Revision, digest and licence in the summary record. |
| Decode | English transcription, one beam, no sampling, 96 new tokens maximum |
| Hardware and packages | Tesla T4, Python 3.13.16, CUDA 13.0. See runtime receipt. |
Time and cost. Colab recorded 72.9 s with the notebook running. Model and processor load took 15.81 s and the first warm-up took 2.03 s. The figure shows per-clip recognition times after that setup.
Opening record · All predictions and decisions · Clean WAV · Noisy WAV
Run it yourself
Use the Colab button above or download the executed notebook. Start at “Hear the F-250 request” to see the intended manual. The clip-building cells apply the controlled change, the resolver section turns text into an authorised lookup, and the results cells print the paired scores and wall times.
- Change only
SNR_DB. Predict which word edits would change the ID, then compare the saved F-250 rows. - Replace the reference spelling of the ID with
F250. Predict whether the grade will change, then inspect the parsed ID and evidence. - Hold the transcript fixed and change the authenticated role. Predict the decision, then inspect the returned value and evidence.
Once the desk has enough information to open a work order, the next lesson asks which technician should take it.
How is this page?
Last updated on