Macalinao StudioLearnAll enriched lessons ↗
College path · 7 sectionsSwitch to high school ↗

College / LONGER LESSON f-stt

Speech recognition: words, alignment and uncertainty

Evaluate transcripts and timestamps without treating either as unquestionable ground truth.

Preparation: Edit counts, percentages and audio timing.

Plan 20–35 minutes with the activities; this is a study estimate, not a timed requirement. Both paths have complete narration. Your notes and progress are kept separately for each level.

Section 01 / 07

Audio features feed a sequence model

College path. Evaluate transcripts and timestamps without treating either as unquestionable ground truth.

Preparation: Edit counts, percentages and audio timing. Work through one section at a time. Predict the experiment result before changing its controls, then explain what the example leaves out.

A speech recognizer converts an audio representation into text tokens. Preprocessing choices such as resampling and channel handling affect the evidence the model receives. Whisper is an encoder-decoder system using log-mel audio features. Follow the selected implementation’s sample-rate and window requirements; do not infer them from the original file extension.

Worked step 1. Inspect sample rate and channels.

Worked step 2. Apply the intended preprocessing.

Worked step 3. Check that speech speed and duration remain correct.

Try it yourself. Does renaming a file resample its audio?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. Metadata or file names do not perform signal conversion.

Section 02 / 07

Language priors can help and mislead

A recognizer uses learned language patterns as well as acoustic evidence. Plausible words can be inserted when the sound is unclear, silent or unlike the training distribution. Evaluate hallucinations, proper names, code-switching and domain vocabulary. Confidence proxies and decoding scores are not automatically calibrated word-correctness probabilities.

Worked step 1. Transcribe a quiet segment and a technical name.

Worked step 2. Compare with the actual audio.

Worked step 3. Mark unsupported words instead of assuming fluency means correctness.

Try it yourself. Can a grammatical transcript still be wrong?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. Yes. Language plausibility is not acoustic verification.

Section 03 / 07

Align before counting errors

Word error rate counts substitutions, deletions and insertions after an alignment against a reference. The denominator is the number of reference words. Dynamic-programming edit alignment minimizes a specified edit cost. Normalization of case, punctuation, numbers and tokenization changes the resulting WER and must be reported.

WER = (S+D+I)/Nreference

Worked step 1. Reference has ten words.

Worked step 2. There are two substitutions, one deletion and two insertions.

Worked step 3. WER is 5/10, or 50 percent.

Try it yourself. Can WER exceed 100 percent?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. Yes. Many insertions can make the numerator larger than the reference length.

Section 04 / 07

Timestamps and forced alignment differ

Recognition predicts what was said; alignment locates a supplied or recognized transcript in time. Word-level timestamps can be approximate and should be checked at important boundaries. Distinguish model timestamp tokens, attention-derived estimates and external forced alignment. Forced alignment assumes a transcript and can still misalign mismatched text or difficult audio.

Worked step 1. Choose a short phrase with clear consonants.

Worked step 2. Compare predicted word boundaries with the waveform.

Worked step 3. Inspect pauses and overlapping speech.

Try it yourself. Does forced alignment prove the supplied words were spoken?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. It attempts to place the supplied text; transcript correctness needs independent checking.

Section 05 / 07

Evaluate the actual speakers and conditions

A single clean recording cannot represent every accent, microphone, room and speaking style. Build a test set matching the intended audience and use case. Report subgroup and condition-level errors with sample counts and annotation uncertainty. Aggregate WER can conceal severe failures for a particular dialect or domain.

Worked step 1. Create clean, noisy and accented subsets.

Worked step 2. Use the same normalization policy.

Worked step 3. Report each score and representative errors.

Try it yourself. Should one overall score replace the subset results?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. Keep the aggregate and the breakdown so important failures remain visible.

Section 06 / 07

Keep corrections connected to audio

A useful transcript workflow lets a reviewer replay uncertain spans and record corrections. Preserve the original machine transcript when edits matter for auditing. Maintain segment identifiers, source offsets and edit history. Distinguish verbatim transcription from cleaned prose; punctuation and disfluency policies affect the artifact’s purpose.

Worked step 1. Mark an uncertain name.

Worked step 2. Replay its surrounding audio.

Worked step 3. Save the corrected text with the original segment reference.

Try it yourself. Is polished prose always a faithful transcript?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. Cleaning can remove repetitions or change wording. State the intended transcription policy.

Section 07 / 07

Mastery and transfer

Bring the pieces together. First answer the checkpoint without the worked solutions. Then explain the mechanism in your own words, using one numerical example from this lesson.

WER divides edit count by… Option 1: Hypothesis word count. Option 2: Reference word count. Option 3: Audio sample count.

Pause here and choose an answer before continuing. The checkpoint explanation follows.

Reveal worked solution

The correct choice is option 2: Reference word count. The standard denominator is the number of reference words under the stated normalization.

Transfer task. Change one assumption in the worked example. State your prediction, calculate or test it in Workbench, then explain whether the result supports your prediction.

Reveal worked solution

Self-check rubric. Name the changed assumption, keep the other inputs fixed, show at least one intermediate calculation, and distinguish what the toy example guarantees from what would require a trained model or a real measurement.

Sources and scope

Original worked examples and teaching text, grounded in these primary references. Numerical fixtures explain mechanisms; model quality and hardware performance require separate measurements. Both levels share key examples, with different explanations and checkpoints.

Reset this college path?

This removes only this path’s notes, progress and experiments from this browser.