--- license: cc-by-4.0 language: - en task_categories: - automatic-speech-recognition pretty_name: Perch blind dictation corpora size_categories: - 1K/.flac the clips (not in git: release assets and Hugging Face) scoring/README.md the scoring rule and a reference scorer ``` `data/blindN.jsonl` has one JSON object per line: | Field | Meaning | |---|---| | `corpus` | `blind1` to `blind6` | | `id` | the row id as authored | | `kind` | `dictation` or `trap` | | `category` | a short tag for the setting, chosen by the author | | `ref` | the written form a clinician would file: digits and standard shorthand (mg, PO, BID) | | `spoken` | exactly what the voice read: no digits, no shorthand ("sixteen milligrams by mouth twice daily") | | `drugs` | every formulary name in `ref`, spelled as the formulary spells it, once each; empty when none | | `trap` | empty on dictations; on traps, one sentence saying what the row is built to fool | The rows are the authored rows, unchanged. The only field added is `corpus`. A trap row: ```json {"corpus": "blind3", "id": "j066", "kind": "trap", "category": "boarding_sheet", "ref": "Boarding drop off went smoothly, staff notes the dog is reactive to other dogs and should stay in the Rex Guard Kennels wing away from the play yard.", "spoken": "Boarding drop off went smoothly, staff notes the dog is reactive to other dogs and should stay in the Rex Guard Kennels wing away from the play yard.", "drugs": [], "trap": "Rex Guard Kennels is the name of the boarding wing, not a heartworm product like Heartgard or NexGard."} ``` `data/manifest.jsonl` has one row per clip, with the fields `corpus`, `id`, `voice`, `file`, `duration_sec`, `drugs`, `trap`, `ref` and `spoken`. `file` is the path of the FLAC relative to the repository root. `duration_sec` is the clip length in seconds. The same dictation appears three times, once per voice. A row is a trap when `trap` is not empty. To get `kind` and `category`, join to `data/blindN.jsonl` on `corpus` and `id`. The first manifest row: ```json {"corpus": "blind1", "id": "f001", "voice": "kokoro_af_bella", "file": "audio/blind1/kokoro_af_bella/f001.flac", "duration_sec": 15.296, "drugs": ["Apoquel", "oclacitinib"], "trap": "", "ref": "8-year-old male neutered Labrador, 32 kg, presents for chronic pruritus. Starting Apoquel, oclacitinib, 16 mg PO BID for 14 days, then taper to SID. Recheck in 2 weeks.", "spoken": "Eight year old male neutered Labrador, thirty two kilograms, presents for chronic pruritus. Starting Apoquel, oclacitinib, sixteen milligrams by mouth twice daily for fourteen days, then taper to once daily. Recheck in two weeks."} ``` ## Getting the audio The audio is not in the git tree. It ships two ways: 1. **GitHub release assets.** One zip per corpus, `blind1-audio.zip` to `blind6-audio.zip` (about 336 MB together), and a `SHA256SUMS` file. https://github.com/perchvet/perch-vetdictation/releases 2. **Hugging Face.** https://huggingface.co/datasets/Talcoe/perch-vetdictation holds the same FLAC files at the same paths, next to the data files. For the release assets, put the zips and `SHA256SUMS` in one folder and run `sha256sum -c SHA256SUMS` (on macOS, `shasum -a 256 -c SHA256SUMS`). Then unzip each zip in the repository root. The paths inside the zips are `audio/blindN//.flac`, the same as the `file` column of `data/manifest.jsonl`. Every clip is FLAC, 16 kHz, mono, 16 bit. ## How to run it on your own system 1. Get the audio (above). 2. Run your system on every clip in `data/manifest.jsonl`. Each of the 1,260 clips is its own case. 3. Keep two things per clip: the transcript, if your system exposes one, and the list of drug names it offered (charted, suggested or shown to the clinician). Write one line of JSON per clip: ```json {"corpus": "blind1", "id": "f001", "voice": "kokoro_af_bella", "transcript": "", "offered": ["Apoquel", "oclacitinib"]} ``` 4. Score it with the rule below. `scoring/README.md` has the full rule and a short reference scorer. To read a clip in Python (needs `pip install soundfile`): ```python import json import soundfile as sf rows = [json.loads(line) for line in open("data/manifest.jsonl", encoding="utf-8")] audio, rate = sf.read(rows[0]["file"]) # 16000 Hz, mono ``` ## How scoring works - **Recovered.** A drug in a row's `drugs` counts as recovered on a clip when its name appears, correctly spelled, in the transcript or in the offered list. Names are compared after lowercasing and dropping everything but letters and digits. One spelling variant is credited: cephalexin and cefalexin. - **Missed.** A drug in `drugs` that is not recovered. - **False offer.** A drug name your system offers on a clip that is not in the row's `drugs`. On a trap row that lists no drug, every drug offered is a false offer. Two things are never false offers: the brand or generic partner of a drug in `drugs`, and a real drug that is not on the formulary and that the row genuinely says (Proin on the Proin row). - Each row is read by three voices. Count each clip, so a drug listed once in a row is three dictated drug instances in its corpus. - **Report misses and false offers per corpus, as raw counts.** This repository gives no rate. The exact rule, the sanity checks and a reference scorer are in [scoring/README.md](scoring/README.md). The companion test is the trap set, [perch-trapset](https://github.com/perchvet/perch-trapset): its 70 clips are the 70 rows of blind1 read by one voice, and blind1 adds two more voices to each row. ## What this is not - **Not recordings of real visits.** The rows are written dictations and the audio is synthetic speech from three Kokoro voices, not a clinician in an exam room. Treat any result as a reproducible shared test, not an absolute accuracy claim. - **Not a set of results.** This repository holds the corpora and the rule. It reports no result for any product, and no rate. - **Blind describes how the rows were written.** The authors never saw the matching code. That does not keep the rows unseen for every system: a system whose builders have read these rows can be tuned to them. ## License The rows (`data/`), the audio and the other text in this repository are licensed under **CC BY 4.0**. Code, including the reference scorer in `scoring/README.md`, is licensed under the **Apache License 2.0**. Full text of both is in `LICENSE`. The voices are Kokoro (v1.0, by hexgrad), released under the Apache License 2.0: https://huggingface.co/hexgrad/Kokoro-82M. The audio here is the output of that model, and the credit for the voices goes to its authors. ## Citation See `CITATION.cff`. In short: Talcoe LLC, "Perch blind dictation corpora: 420 veterinary dictations and traps with Kokoro audio," version 1.0.0, 2026. DOI pending. The same files are also on Hugging Face: https://huggingface.co/datasets/Talcoe/perch-vetdictation ## Related - [perch-trapset](https://github.com/perchvet/perch-trapset) ([Hugging Face](https://huggingface.co/datasets/Talcoe/perch-trapset)): the companion test. Blind clips built to catch a scribe that charts a drug or a dose nobody said. - [vet-drug-pronunciations](https://github.com/perchvet/vet-drug-pronunciations) ([Hugging Face](https://huggingface.co/datasets/Talcoe/vet-drug-pronunciations)): pronunciations for veterinary drug names. - [perch-phoneme-lane](https://github.com/perchvet/perch-phoneme-lane): the code for Perch's phoneme lane. --- Talcoe LLC, makers of Perch. Questions: mo@talcoe.com