The data pipeline
- A locally run Llama model generates sentences dense with medical vocabulary.
- Google Translate text-to-speech turns each sentence into audio, using the accent closest to the speaker's own.
- Each recording is paired with its transcript in a CSV file.
Training
The training script loads the audio as mono 16 kHz and fine-tunes Whisper with Hugging Face Transformers (BF16, small batches with gradient accumulation). Its default output folder, whisper-medical-final, is the model Sunsara's Scribe AI is configured to load.
Experimental, not for clinical use.
Built with
Python, PyTorch, Transformers, pandas and librosa.