Free How much of your firm runs on you? Take the 2-minute Key Man Score.
Lesson reading
0%

Lesson 4 / Unit 2: Training Data

Dataset Inspection

Build a manifest that exposes recording identity, speaker, target and provenance before any split is made.

A directory of WAV files is not yet a training dataset. The recognizer needs a target for each example, and the experiment needs enough identity information to explain where a result came from.

Source Inventory

The lab pins an FSDD Git commit rather than following a moving branch. It parses filenames into digit, speaker and recording index, then checks sample rate, channel count and PCM type while loading. A failed assumption stops the run.

from pathlib import Path
from collections import Counter
paths = sorted(Path('fsdd/recordings').glob('*.wav'))
print(len(paths))
print(Counter(p.stem.split('_')[1] for p in paths))

Compare that inventory with the dataset documentation. Keep its licence and attribution with any redistributed recordings or derived audio. The downloadable lab includes an attribution notice; it is not a substitute for reviewing reuse requirements.

Sequence Construction

dataset() chooses one speaker, then one to three digits. It selects a recording for each digit and joins the recordings with 800 zero-valued samples after each segment. At 8 kHz that is 100 milliseconds of added silence.

This construction creates ordered targets without manually aligning character timestamps. It also creates an artificial rhythm. The recognizer may exploit the pauses, so performance cannot be transferred to naturally spoken identifiers.

Manifest Records

Each saved record contains an ID, split, speaker, target string and ordered source filenames. Do not replace the list of source filenames with only the generated sequence ID: that would hide source reuse.

import json
rows = json.load(open('my-run/manifest.json'))
print(rows[0])
assert all(r['files'] and r['text'] for r in rows)

Your output is the inventory plus the manifest, not a model. Define the Transcript Policy, then make Speaker Splits before augmentation or concatenation.

We do this work for teams shipping voice agents: Self-Hosted Voice Agent .

Edit this lesson on GitHub ↗

Discussion

Questions, corrections and war stories welcome. Sign in with GitHub to comment.

Free guide

Be The 10x Entrepreneur

Get the firm out of your head.

  • 8 chapters
  • 7 worksheets
  • 30 day plan