Skip to Content
Recodocs

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.

7 min read
Part 3
Connect tools and inputs
Model
openai/whisper-base
Data
Synthetic equipment readouts and LibriSpeech
Hardware
Tesla T4 and CPU, in Google Colab
Open in 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?

Industrial ventilation fan representing F-250
Facilities Helpdesk · North yard · Operator

“What is the maximum temperature for F two five zero?”

Radio intake · Fan plate F-250
Clean readout
Noisy readout
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.

One synthesised voice, shown with the same amplitude scale. Augapfel’s factory fan photo illustrates F-250 and is cropped here. CC BY 2.0.

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 transcriptDesk response
F-250, the intended fanRead the authorised F-250 manual.
F-251, the one-digit checkAsk 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
InputPassesShareChange vs text (95% interval, pp)
Clean text8/8Reference
Clean readout5/8−37.5 [−75.0, 0.0]
Noisy readout0/8−100.0 [−100.0, −100.0]
Source: verified Lesson 09 T4 export. Derived intervals resample four paired equipment families.

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

SNRdB=20log⁡10∥x∥2∥n∥2.\mathrm{SNR}_{\mathrm{dB}} = 20\log_{10}\frac{\lVert x\rVert_2}{\lVert n\rVert_2}.

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 / scale

Adding noise cost five more word edits across the helpdesk clips

Word errors divided by reference words. The audiobook clips are a separate domain.

2
DomainClipsEdits / wordsWord error rate
Clean readout831/8436.9%
Noisy readout836/8442.9%
LibriSpeech818/2058.8%
Source: verified Lesson 09 T4 export.

Word error rate counts substitutions, insertions and deletions. The notebook sums the edits over the corpus before dividing by its total reference words.

WER=∑id(referencei,transcripti)∑i∣referencei∣.\mathrm{WER}=\frac{\sum_i d(\text{reference}_i,\text{transcript}_i)} {\sum_i |\text{reference}_i|}.

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
InputExactWrong resolvedUnresolved
Clean readout5/803/8
Noisy readout0/808/8
Source: verified Lesson 09 T4 export.

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
TicketCleanNoisy
F200-00Asked againAsked again
F200-01Asked againAsked again
F201-00AnsweredAsked again
F201-01Asked againAsked again
F250-00AnsweredAsked again
F250-01AnsweredAsked again
F251-00AnsweredAsked again
F251-01AnsweredAsked again

0 gains, 5 losses. Paired change −62.5 pp (95% interval −100.0 to −25.0 pp).

Source: verified Lesson 09 T4 export. Derived intervals resample four paired equipment families.

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 editsAnsweredAsked againClips
3112
44610
5033
6011
Source: verified Lesson 09 T4 export.

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.

RTF=∑itASR,i∑itaudio,i.\mathrm{RTF}=\frac{\sum_i t_{\mathrm{ASR},i}}{\sum_i t_{\mathrm{audio},i}}.

Recognition took a small share of recording time

Single-clip ASR wall time on a Tesla T4, after loading and warm-up

6
DomainAudio, sMedian, msASR / audio
Clean readout31.9117.22.9%
Noisy readout31.9123.13.2%
LibriSpeech86.3240.62.6%
0.000.200.400.600.8008162432Recognition, secondsAudio duration, seconds

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.

Source: verified Lesson 09 T4 export.

What to keep

SignalWhat the desk learnsWhat to do with it
Word error rateHow much of the transcript changedMonitor overall audio quality by condition.
Exact equipment IDWhether the resolver found the intended plateConfirm confusable IDs and ask again for an unresolved one.
Strict answerWhether the operator got the expected decision, value and evidenceUse 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

ItemSetting
Modelopenai/whisper-base at e37978b90ca9030d5170a5c07aadb050351a65bb
Helpdesk sampleEight development tickets from four families, each using clean text, one synthesised readout and its noisy copy
Development digestSHA-256 in the summary record
SynthesiseSpeak NG 1.51, en-us, 150 words/min, 16 kHz
NoiseSeeded white noise, 12 dB SNR, same headroom for each pair
Public audioEight clips from the pinned LibriSpeech derivative. Revision, digest and licence in the summary record.
DecodeEnglish transcription, one beam, no sampling, 96 new tokens maximum
Hardware and packagesTesla 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.

  1. Change only SNR_DB. Predict which word edits would change the ID, then compare the saved F-250 rows.
  2. Replace the reference spelling of the ID with F250. Predict whether the grade will change, then inspect the parsed ID and evidence.
  3. 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