voice-writing-electron
voice-writing-electron copied to clipboard
A real-time, instant dictation desktop application built on Electron that uses Whisper and GROQ under the hood
🗣️📝 VoiceWriting
VoiceWriting is a Whisper based Desktop application to write using your voice. It works in real-time and even fixes common grammatical, punctuation and other issues in your speech.
Give it a try by following the instructions below, or check out the demo 📹 below 👇🏻.
https://github.com/user-attachments/assets/8eaa697b-ffeb-4aea-8566-10a711a59b74
🛠️ Easy Setup
1. Clone and install dependencies
git clone https://github.com/aviaryan/voice-writing-electron.git
yarn install
cp .env.copy .env
2. Populate .env
file
- Add the absolute path for whisper.cpp's
stream
executable inSTREAM_EXECUTABLE_PATH
. Learn more about stream. - Add the absolute path for GGML Whisper
model
inMODEL_PATH
. Learn more about model. - Fill in the GROQ API Key. Learn more about Groq API key.
Example -
GROQ_API_KEY=gsk_abcdksk2kkskssd
STREAM_EXECUTABLE_PATH=/Users/john/dev/stream
MODEL_PATH=/Users/john/dev/ggml-small.en.bin
3. Start the application
yarn start
4. Start speaking!
You should have the application ready now and you can start using it as shown in the video below. Make sure to unmute 🔉 the video before playing.
https://github.com/user-attachments/assets/8eaa697b-ffeb-4aea-8566-10a711a59b74
📦 Distributing as an app
- Ensure
.env
has all the values as.env
file gets packaged with the application. - Run
yarn build
. It builds the app only usingtarget: dir
on Mac. Usetarget: dmg
to build dmg. - Check
dist
folder for the app.