Commit ·
bb1c062
1
Parent(s): ab6cc8f
Add data dictionary; note schema 1.2 (speaker, mwp_prompt)
Browse files- DATA_DICTIONARY.md +105 -0
- README.md +5 -2
DATA_DICTIONARY.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Data Dictionary — `metadata.csv`
|
| 2 |
+
|
| 3 |
+
One row per clip. Multi-select columns are semicolon-separated (`a;b;c`). Booleans are the literals `true` / `false`. Empty cells mean "not annotated yet".
|
| 4 |
+
|
| 5 |
+
Schema version: **`noisy-voice-notes/1.2.0`** (column `schema_version` in every row).
|
| 6 |
+
|
| 7 |
+
## Identity
|
| 8 |
+
|
| 9 |
+
| Column | Type | Notes |
|
| 10 |
+
|---|---|---|
|
| 11 |
+
| `id` | string | Primary key. Stable across releases. Joins to `audio/<id>.mp3` and `transcripts/<id>.md`. |
|
| 12 |
+
| `uuid` | string | Secondary stable identifier (UUIDv4). Useful when re-keying. |
|
| 13 |
+
| `title` | string | Human title from the source app (voicenotes.com). May be empty. |
|
| 14 |
+
| `speaker` | string | Always `Daniel Rosehill`. Single-speaker dataset — included so downstream code never has to assume. |
|
| 15 |
+
| `recorded_at` | ISO-8601 | When the clip was originally recorded. |
|
| 16 |
+
| `duration_s` | float | Clip duration in seconds. |
|
| 17 |
+
|
| 18 |
+
## Audio quality — model scores (DNSMOS P.835)
|
| 19 |
+
|
| 20 |
+
Reference-free perceptual proxies. 1–5 scale. Computed locally with the Microsoft ONNX models.
|
| 21 |
+
|
| 22 |
+
| Column | Type | Notes |
|
| 23 |
+
|---|---|---|
|
| 24 |
+
| `BAK` | float | Background-noise quality. **Lower = noisier.** |
|
| 25 |
+
| `SIG` | float | Speech-signal quality. |
|
| 26 |
+
| `OVRL` | float | Overall MOS-style score. |
|
| 27 |
+
| `noise_level` | int 1–5 | Bucketed BAK. 5 = noisiest, 1 = cleanest. Thresholds: <1.5, <2.0, <2.5, <3.0, ≥3.0. |
|
| 28 |
+
|
| 29 |
+
## Audio quality — human
|
| 30 |
+
|
| 31 |
+
| Column | Type | Notes |
|
| 32 |
+
|---|---|---|
|
| 33 |
+
| `audio_quality_rating` | int 1–3 \| empty | Subjective: 1 = bad, 2 = neutral, 3 = best. Empty = unrated. |
|
| 34 |
+
| `transcription_quality` | enum \| empty | One of `excellent`, `good`, `fair`, `poor`, `unusable`. Reflects the source ASR transcript, not the audio. |
|
| 35 |
+
|
| 36 |
+
## Annotation — note content
|
| 37 |
+
|
| 38 |
+
| Column | Type | Notes |
|
| 39 |
+
|---|---|---|
|
| 40 |
+
| `note_types_multi` | multi-select | Broad family labels. Keys: `idea_brainstorm`, `note_to_self`, `todo_list`, `email_draft`, `prompt`, `development`, `technology_topic`, `health`, `meeting`, `feedback_bug`, `research`, `logging_record`, `content_draft`, `ai_agent`, `geo_cultural`, `misc`. |
|
| 41 |
+
| `note_categories_multi` | multi-select | Leaf categories under those families (e.g. `journal-entry`, `to-do-list-home`, `podcast-prompt`, `mwp-prompt`, `bug-report`). Full set lives in `note_types.py` in the source repo. |
|
| 42 |
+
| `subject_matter` | string | Short freehand topic (e.g. "rsync to NAS"). |
|
| 43 |
+
| `mwp_prompt` | bool | `true` if the clip is a "Morning Writing Prompt" / MWP-style prompt. Speaker shorthand. |
|
| 44 |
+
| `free_notes` | string | Catch-all freehand annotation. |
|
| 45 |
+
|
| 46 |
+
## Annotation — audio defects (multi-select)
|
| 47 |
+
|
| 48 |
+
`audio_defects` keys (semicolon-separated):
|
| 49 |
+
|
| 50 |
+
`background_music`, `background_conversations`, `crying_baby`, `traffic_sounds`, `wind_noise`, `echo_reverb`, `phone_notification`, `hvac_fan`, `vehicle_interior`, `cafe_ambience`, `street_outdoor`, `multiple_speakers`, `breathing_mouth_noise`, `mic_handling`, `distortion_clipping`, `pet_animal`, `doors_dishes`, `mechanical_construction`, `keyboard_typing`, `tv_radio_broadcast`, `poor_quality_general`.
|
| 51 |
+
|
| 52 |
+
This is the column that will grow most during the second annotation pass (background-noise tagging).
|
| 53 |
+
|
| 54 |
+
## Annotation — non-intended audio (multi-select)
|
| 55 |
+
|
| 56 |
+
`non_intended_audio` keys: `side_conversation`, `speaker_to_other`, `speaker_to_pet`, `false_start`, `environmental_speech`, `background_laughter`, `interruption`, `self_correction`, `thinking_aloud`, `filler_only`.
|
| 57 |
+
|
| 58 |
+
Captures audio that ended up in the recording but wasn't *meant* to be the note (radio in the background, false starts, addressing someone else, etc.).
|
| 59 |
+
|
| 60 |
+
## Annotation — language
|
| 61 |
+
|
| 62 |
+
| Column | Type | Notes |
|
| 63 |
+
|---|---|---|
|
| 64 |
+
| `languages` | multi-select | Languages actually spoken by the speaker. Keys: `english`, `hebrew`. Defaults to `english`. |
|
| 65 |
+
| `hebrew_usage` | enum \| empty | Fine-grained Hebrew usage. One of `none`, `place_names`, `single_words`, `code_switching`, `mostly_hebrew`, `all_hebrew`. |
|
| 66 |
+
| `background_languages` | multi-select | Other languages audible in the background. Keys: `bg_arabic`, `bg_russian`, `bg_french`, `bg_spanish`, `bg_german`, `bg_yiddish`, `bg_other`. |
|
| 67 |
+
|
| 68 |
+
## Annotation — capture context
|
| 69 |
+
|
| 70 |
+
| Column | Type | Notes |
|
| 71 |
+
|---|---|---|
|
| 72 |
+
| `microphone` | enum \| string | `phone` (default), `samson_q2u`, `other`, `unknown`. May also contain a freehand string in future revisions. |
|
| 73 |
+
| `capture_location` | enum \| string | `unknown` (default), `home`, `shuk_mahane_yehuda`, or a freehand location string. |
|
| 74 |
+
| `preprocessed_audio` | bool | `true` if the source app applied denoise / echo-cancel before this audio was exported. |
|
| 75 |
+
|
| 76 |
+
## Transcript stats (auto-computed)
|
| 77 |
+
|
| 78 |
+
| Column | Type | Notes |
|
| 79 |
+
|---|---|---|
|
| 80 |
+
| `transcript_chars` | int | Character count of the cleaned transcript body. |
|
| 81 |
+
| `transcript_words` | int | Whitespace-tokenised word count. |
|
| 82 |
+
| `wpm` | float | Words ÷ (duration / 60). Wall-clock — see `active_wpm` for a more honest figure. |
|
| 83 |
+
|
| 84 |
+
## Acoustic features (auto-computed by `enrich_hf_dataset.py`)
|
| 85 |
+
|
| 86 |
+
| Column | Notes |
|
| 87 |
+
|---|---|
|
| 88 |
+
| `sample_rate`, `channels`, `bitrate_kbps`, `codec`, `file_size_bytes` | File-level audio properties. |
|
| 89 |
+
| `rms_dbfs`, `peak_dbfs`, `crest_factor_db`, `dc_offset` | Loudness / dynamics. |
|
| 90 |
+
| `clipping_ratio` | Fraction of samples at ≥ -0.1 dBFS. |
|
| 91 |
+
| `silence_ratio`, `speech_ratio` | Energy-VAD silence vs speech proportion. |
|
| 92 |
+
| `active_speech_s` | `speech_ratio * duration_s`. |
|
| 93 |
+
| `active_wpm` | Words ÷ active speech seconds. More honest than wall-clock WPM. |
|
| 94 |
+
| `snr_db_estimate` | Median active-frame dBFS minus median silent-frame dBFS. |
|
| 95 |
+
| `spectral_centroid_hz`, `spectral_bandwidth_hz`, `spectral_rolloff_hz` | Mean spectral descriptors. |
|
| 96 |
+
| `zero_crossing_rate` | Mean ZCR. |
|
| 97 |
+
| `hnr_db_proxy` | Harmonic-to-noise proxy from HPSS energy ratio. |
|
| 98 |
+
|
| 99 |
+
## Filesystem pointers
|
| 100 |
+
|
| 101 |
+
| Column | Notes |
|
| 102 |
+
|---|---|
|
| 103 |
+
| `audio_relpath` | Path to the MP3 relative to the dataset root (`audio/<id>.mp3`). |
|
| 104 |
+
| `transcript_relpath` | Path to the transcript markdown relative to the dataset root (`transcripts/<id>.md`), or empty if no transcript was released. |
|
| 105 |
+
| `schema_version` | Pinned schema string. Consumers should branch on this. |
|
README.md
CHANGED
|
@@ -52,10 +52,12 @@ Each row in `metadata.csv` joins to `audio/<id>.mp3` and `transcripts/<id>.md` v
|
|
| 52 |
|
| 53 |
## Schema (selected columns)
|
| 54 |
|
|
|
|
|
|
|
| 55 |
| Column | Meaning |
|
| 56 |
|---|---|
|
| 57 |
| `id`, `uuid` | stable identifier |
|
| 58 |
-
| `title`, `recorded_at`, `duration_s` | basic metadata |
|
| 59 |
| `BAK`, `SIG`, `OVRL` | DNSMOS P.835 scores (1–5; lower BAK = noisier background) |
|
| 60 |
| `noise_level` | bucketed BAK |
|
| 61 |
| `audio_quality_rating` | 1–5 star human rating |
|
|
@@ -65,8 +67,9 @@ Each row in `metadata.csv` joins to `audio/<id>.mp3` and `transcripts/<id>.md` v
|
|
| 65 |
| `non_intended_audio` | TV, music, other speakers, etc. |
|
| 66 |
| `note_types_multi`, `note_categories_multi` | speaker-assigned type/category labels |
|
| 67 |
| `subject_matter` | short topic descriptor |
|
|
|
|
| 68 |
| `transcription_quality` | human judgement of the source transcript |
|
| 69 |
-
| `microphone`, `capture_location` | capture context |
|
| 70 |
| acoustic features | `rms_dbfs`, `peak_dbfs`, `crest_factor_db`, `clipping_ratio`, `silence_ratio`, `speech_ratio`, `snr_db_estimate`, spectral & ZCR features, HNR proxy |
|
| 71 |
| transcript stats | `transcript_chars`, `transcript_words`, `wpm`, `active_wpm` |
|
| 72 |
|
|
|
|
| 52 |
|
| 53 |
## Schema (selected columns)
|
| 54 |
|
| 55 |
+
The full column-by-column reference lives in [`DATA_DICTIONARY.md`](./DATA_DICTIONARY.md). The summary below is a quick orientation.
|
| 56 |
+
|
| 57 |
| Column | Meaning |
|
| 58 |
|---|---|
|
| 59 |
| `id`, `uuid` | stable identifier |
|
| 60 |
+
| `title`, `speaker`, `recorded_at`, `duration_s` | basic metadata (speaker is always Daniel Rosehill) |
|
| 61 |
| `BAK`, `SIG`, `OVRL` | DNSMOS P.835 scores (1–5; lower BAK = noisier background) |
|
| 62 |
| `noise_level` | bucketed BAK |
|
| 63 |
| `audio_quality_rating` | 1–5 star human rating |
|
|
|
|
| 67 |
| `non_intended_audio` | TV, music, other speakers, etc. |
|
| 68 |
| `note_types_multi`, `note_categories_multi` | speaker-assigned type/category labels |
|
| 69 |
| `subject_matter` | short topic descriptor |
|
| 70 |
+
| `mwp_prompt` | boolean — speaker's "Morning Writing Prompt" tag |
|
| 71 |
| `transcription_quality` | human judgement of the source transcript |
|
| 72 |
+
| `microphone`, `capture_location` | capture context (location supports freehand entries) |
|
| 73 |
| acoustic features | `rms_dbfs`, `peak_dbfs`, `crest_factor_db`, `clipping_ratio`, `silence_ratio`, `speech_ratio`, `snr_db_estimate`, spectral & ZCR features, HNR proxy |
|
| 74 |
| transcript stats | `transcript_chars`, `transcript_words`, `wpm`, `active_wpm` |
|
| 75 |
|