Accurately transcribes English doctor–patient conversations. It recognises medical conditions correctly 94.6% of the time (base model: 83.9%) and medicine names 66.1% (base: 61.2%) in consultations, while matching the base model's accuracy on everyday words.
LoRA adapter on Qwen/Qwen3-ASR-0.6B, trained on 28 hours of
medical consultations. Runs on one GPU or on a CPU. Built for doctor–patient consultations: for other
speech, such as lectures or single short sentences, the base model is currently more accurate.
Current version: v0.1 (each release is a tag on this repo; use --revision v0.1 to pin it).
1. Download and install
pip install -U huggingface_hub # gives the `hf` command
hf download CobuildX-AI/cbx-healthcare-speech-to-text-0.6B --revision v0.1 --local-dir cbx-healthcare-speech-to-text-0.6B
cd cbx-healthcare-speech-to-text-0.6B
pip install -r requirements.txt
2. Use it in your code
SpeechToText (in stt.py, part of this repo) loads the model once:
from stt import SpeechToText
stt = SpeechToText() # loads Qwen/Qwen3-ASR-0.6B + this adapter; uses a GPU if one is available
stt.transcribe("consultation.wav")
# {'text': 'OK, and is your asthma well controlled?', 'seconds': 3.1, 'latency_ms': 180}
stt.transcribe_batch(["visit1.wav", "visit2.wav"]) # several recordings at once
stt.transcribe("visit.wav", context="Clenil, salbutamol") # optional: words to expect, such as a clinic's medicine list
(samples, sample_rate) pair, or a 16 kHz array. Any sample rate is converted to 16 kHz mono.3. Optional: check your setup
python example.py downloads a short mock GP consultation from
PriMock57 and prints what was said next to what the model wrote.
PriMock57: 57 mock UK GP consultations, 4,476 utterances, never used in training. Lower is better.
| cbx-healthcare-speech-to-text-0.6B v0.1 | Qwen3-ASR-0.6B (base) | |
|---|---|---|
| Word error rate | 6.01% | 6.00% |
| Condition names wrong (168 mentions) | 5.4% | 16.1% |
| Medicine names wrong (121 mentions) | 33.9% | 38.8% |
Conditions: about three times fewer mistakes than the base model (e.g. "diabetes", "eczema", "nausea").
Everyday words: the same as the base model.
Medicines: better than the base model, but still wrong about one time in three. Common medicines are almost always right (paracetamol 1 wrong in 29, ibuprofen 4 in 25). Most mistakes are rare or UK brand names that never appear in the training data, such as Clenil, Implanon and Dioralyte.
Speed:
| Apple M4 CPU | NVIDIA T4 GPU | |
|---|---|---|
| 1 minute of speech takes | about 10–15 s | about 2.4 s |
| 10-minute consultation takes | about 2 minutes | about 25 seconds |
GPU: fp16, batches of 16 clips (PriMock57's 271 minutes of audio in 11 minutes). CPU: fp32, 4 threads.
Held-out test recordings from the two training sources (never used in training):
| cbx-healthcare-speech-to-text-0.6B v0.1 | Qwen3-ASR-0.6B (base) | |
|---|---|---|
| Synth-DoPaCo, 895 clips | 3.08% | 4.15% |
| Fareez OSCE, 719 clips | 4.15% | 4.54% |
Apache-2.0, the same as the base model. Training data: Synth-DoPaCo (CC-BY-4.0, Labrak et al., Interspeech 2026) and the Fareez et al. 2022 OSCE dataset (CC0).
Qwen/Qwen3-ASR-0.6B