MedASR Medical Speech Recognition with OpenVINO
MedASR is a specialized Automatic Speech Recognition (ASR) model from Google, optimized for medical terminology. It is a CTC-based model built on top of the Conformer architecture.
Content
MedASR Medical Speech Recognition with OpenVINO
MedASR is a specialized Automatic Speech Recognition (ASR) model from Google, optimized for medical terminology. It is a CTC-based model built on top of the Conformer architecture.
This notebook demonstrates converting Google's MedASR model to OpenVINO format with FP16 and INT8 quantization for efficient medical speech-to-text transcription.
Notebook Contents
The tutorial consists of the following steps:
- Installation - Install required packages (OpenVINO, NNCF, Transformers, etc.)
- Login to HuggingFace - Authenticate to access the gated model
- Load Model - Load Google's MedASR model from HuggingFace
- Prepare Audio Data - Download and preprocess test audio (optimized for 10s chunks)
- PyTorch Inference - Establish baseline accuracy with original model
- Convert to OpenVINO FP16 - Convert using torch.export and ov.convert_model
- INT8 Quantization - Apply NNCF quantization with real audio calibration
- Accuracy Comparison - Validate quantization quality across all versions
- Performance Benchmarking - Measure inference speed on the selected device
Important Notes
⚠️ Gated Model Access: The MedASR model is gated on HuggingFace. You must:
- Request access at https://huggingface.co/google/medasr
- Authenticate with your HuggingFace token before running the notebook
Installation Instructions
This is a self-contained example that relies solely on its code.</br> We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to [Installation Guide](../../README.md).
Source and license
- Source
- Intel OpenVINO Notebooks
- Original
- openvinotoolkit/openvino_notebooks/notebooks/medasr-medical-asr
- License
- Apache-2.0