burn874/transcribe-NPU
By burn874 · ↓ 0 · ♥ 0 · Updated 2025-07-22
What's in this repo
This page lists the files in burn874/transcribe-NPU, including model.onnx, decoder_model.onnx, decoder_with_past_model.onnx and more.
- 7 ONNX models (.onnx files)
- 186 files, including 64 .bin, 38 .json, 23 .py, 17 .js, 8 .xml, 7 .onnx
- Last updated 2025-07-22
ONNX files
| File | Size | Download |
|---|---|---|
| models/kokoro_tts/model.onnx | — | Download |
| models/m2m100_418M/torch/decoder_model.onnx | — | Download |
| models/m2m100_418M/torch/decoder_with_past_model.onnx | — | Download |
| models/m2m100_418M/torch/encoder_model.onnx | — | Download |
| models/silero_vad/silero_vad.onnx | — | Download |
| models/silero_vad/silero_vad_16k_op15.onnx | — | Download |
| models/silero_vad/silero_vad_half.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
NPU Speech Transcription Service
Local Whisper transcription / translation accelerated by Intel NPU (Core Ultra / Meteor Lake) with OpenVINO GenAI.
Prerequisites
Hardware
- Intel NPU-capable PC (Core Ultra or newer)
System software - Windows 10/11 (PowerShell examples)
- Node.js LTS - front-end dev server
winget install -e --id OpenJS.NodeJS.LTS
Or grab the MSI: https://nodejs.org/en/download
- Conda - Python env manager
Install Miniconda / Anaconda: https://docs.conda.io/en/latest/miniconda.html
& "C:\Windows\System32\curl.exe" -o "$env:USERPROFILE\Downloads\Miniconda3-latest-Windows-x86_64.exe" "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
Start-Process "$env:USERPROFILE\Downloads\Miniconda3-latest-Windows-x86_64.exe" -ArgumentList "/quiet", "/InstallAllUsers=1", "/PrependPath=1" -Wait
- Python
Install Python 3.8 - 3.12. Both manual or via PowerShell works.
winget install Python.Python.3.12 --scope machine
- OpenVINO Runtime 2025.1 & OpenVINO GenAI 2025.1 - inference back-end
Download
& "C:\Windows\System32\curl.exe" -L -o "$env:USERPROFILE\Documents\openvino_2025.zip" "https://storage.openvinotoolkit.org/repositories/openvino/packages/2025.1/windows/openvino_toolkit_windows_2025.1.0.18503.6fec06580ab_x86_64.zip"
& "C:\Windows\System32\curl.exe" -L -o "$env:USERPROFILE\Documents\openvino_genai_2025.zip" "https://storage.openvinotoolkit.org/repositories/openvino_genai/packages/2025.1/windows/openvino_genai_windows_2025.1.0.0_x86_64.zip"
Extract
Expand-Archive $env:USERPROFILE\Documents\openvino_2025.zip -DestinationPath $env:TEMP\ov -Force
Expand-Archive $env:USERPROFILE\Documents\openvino_genai_2025.zip -DestinationPath $env:TEMP\ovg -Force
Install
$ovSubfolder = Get-ChildItem -Path "$env:TEMP\ov" -Directory | Where-Object { $_.Name -like "*openvino*" }
$ovgSubfolder = Get-ChildItem -Path "$env:TEMP\ovg" -Directory | Where-Object { $_.Name -like "*openvino_genai*" }
Move-Item "$env:TEMP\ov\$ovSubfolder" "C:\Program Files (x86)\Intel\openvino_2025" -Force
Move-Item "$env:TEMP\ovg\$ovgSubfolder" "C:\Program Files (x86)\Intel\openvino_genai_2025" -Force
Remove-Item -Path `
"$env:USERPROFILE\Documents\openvino_2025.zip", `
"$env:USERPROFILE\Documents\openvino_genai_2025.zip", `
"$env:TEMP\ov", `
"$env:TEMP\ovg" -Force -Recurse
& "C:\Program Files (x86)\Intel\openvino_2025\setupvars.ps1"
& "C:\Program Files (x86)\Intel\openvino_genai_2025\setupvars.ps1"
- Python wheels (inside the conda env)
conda activate
conda env create -f environment.yml
conda activate NPU
pip install --upgrade pip
pip install `
"optimum[openvino,onnxruntime-gpu]" `
"openvino-genai==2025.1.0" `
"nncf" `
"uv" `
"fastapi" `
"faster_whisper" `
"huggingface" `
"uvicorn" `
"websockets" `
"hf_xet" `
"python-multipart" `
"sentencepiece" `
"pydub" `
"accelerate"
- FFmpeg - audio decoding / resampling backend
winget install -e --id Gyan.FFmpeg
# or via Chocolatey
choco install ffmpeg --confirm
Verify:
ffmpeg -version
Initialise OpenVINO in the current shell
conda init
& "C:\Program Files (x86)\Intel\openvino_2025\setupvars.ps1"
& "C:\Program Files (x86)\Intel\openvino_genai_2025\setupvars.ps1"
Add the two lines to $PROFILE so every PowerShell session loads them automatically.
Check installation:
python -c "import openvino as ov; print(ov.Core().available_devices)"
['NPU', 'CPU'] (or similar) confirms everything is wired up.
Repository setup
git clone https://huggingface.co/burn874/transcribe-NPU NPU
cd NPU
conda env create -f environment.yml
conda activate NPU
Running
Backend only
python -m uvicorn server.main:app --host 0.0.0.0 --port 8000 --reload
Front-end only
cd frontend
npm install
# Dev server
npm start
# Production bundle
npm run build
Front-end + backend together
.\start.ps1
start.ps1 launches React (npm start) and Uvicorn, then cleans up when you exit.
API Endpoints
| Path | Method | Description |
|---|---|---|
/docs |
GET | Swagger UI |
/health |
GET | Health check |
Linux / macOS notes
- Use the
.tgzarchives for Runtime & GenAI and run the accompanying.shsetup scripts. - Replace
Move-Itemwithsudo mv. - Install Node via package manager (
sudo apt install nodejsorbrew install node). - No extra NPU driver is required on Linux.
- FFmpeg:
sudo apt install ffmpegorbrew install ffmpeg.
Troubleshooting
ov.Core().available_devicesshould list NPU. If missing, reinstall the NPU driver and reboot.- Run
ffmpeg -encoders | findstr pcm_s16le– PCM encoders must be present. - Always open a new shell or re-run the
setupvarsscripts after installing OpenVINO.
Model info
Created: 2025-05-06
Updated: 2025-07-22
View on Hugging FaceFiles (186)
Related models
More from burn874
More models
No task type declared.