This project uses speech_recognition and faster_whisper to record live speech and transcribe it into text.
Exe | Description | Releases |
---|---|---|
Download the latest version | Download |
git clone https://github.com/NxRoot/whisper-live.git
Install Required Modules
pip install -r requirements.txt
pip3 install -r requirements.txt
Build into Executable
Make sure you have PyInstaller in your virtual environment.
pyinstaller --name wl --onedir main.py --icon icon.ico --add-data "model;model"
You can use the --onefile argument instead of --onedir to build a portable version.
pyinstaller --name wl --onedir main.py --icon icon.ico --add-data "model:model" --paths=./venv/lib/python3.10/site-packages
Make sure the --paths argument is aligned with your python version.
This can be executed from a terminal or called from another app.
wl.exe
wl.exe --verbose
wl.exe --verbose > logs.txt
Make sure you place
wl.exe
in the same folder asindex.js
const { join } = require("path");
const { spawn } = require("child_process");
const ps = spawn(join(__dirname, "wl.exe"), ["--verbose"]);
ps.stdout.on("data", (data) => {
console.log(`${data}`.trim());
});
ps.stderr.on("data", (data) => {
console.error(`${data}`.trim());
});
- Always clone the repo if you wish to build from source.
- The model can take some time to load using portable versions.
- On MacOS the SpeechRecognition module requires PortAudio installed.
⭐ If you find this useful!