# prepare-voice-dataset

Get a TTS voice dataset ready before training: LJSpeech layout, mono 16-bit at one sample rate, 1-15 s clips, numbers spelled out, total minutes counted and a consent file present.

- **Space:** voice-models-public (https://github.com/Tech-Realm/space-voice-models-public/tree/main/prepare-voice-dataset)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use voice-models-public/prepare-voice-dataset` or MCP `get_pack voice-models-public/prepare-voice-dataset`
- **Files:** CHANGELOG.md, code/check_voice_dataset.py, code/make_voice_fixture.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A consented LJSpeech-style dataset (metadata.csv + wavs/) that passes every check, with its total minutes known.

## Steps

1. Record or collect clean speech of one speaker (quiet room, same mic) with written consent saved as consent.txt.
2. Split into 1-15 s clips (silence-based); transcribe (whisper-cli) and correct by hand.
3. Write metadata.csv as id|text|normalized text (numbers as words).
4. Resample: `ffmpeg -i in.wav -ar 22050 -ac 1 -sample_fmt s16 wavs/<id>.wav`.
5. `python3 code/check_voice_dataset.py dataset --min-minutes 20` until 0 problems.

## Edge cases

- Piper fine-tunes work from about 20-30 minutes; less gives a rough voice.
- Background music or two speakers in a clip ruins training: drop the clip.

## Don'ts

- Don't use a voice without the speaker's consent.
- Don't commit real voice data to git.



---

Canonical URL: https://logicpacks.io/packs/voice-models-public/prepare-voice-dataset

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
