Local Transcription (Whisper)
window.electronAPI.transcribeLocalWhisper()
Transcribe audio using a locally-installed Whisper model.Audio data as an ArrayBuffer. Typically obtained from a Blob:
Whether transcription succeeded
Transcribed text
Error message if
success is falseAdditional info (e.g., “No audio detected”)
Example
No Audio Detected: If the audio is too short or silent, the API returns
success: false with message: "No audio detected". Listen for the onNoAudioDetected event to handle this in the UI.Local Transcription (Parakeet)
window.electronAPI.transcribeLocalParakeet()
Transcribe audio using NVIDIA’s Parakeet model via sherpa-onnx.Audio data as an ArrayBuffer
Whether transcription succeeded
Transcribed text
Error message if failed
Example
Cloud Transcription
window.electronAPI.cloudTranscribe()
Transcribe audio using the OpenWhispr Cloud API (requires authentication).Audio data as an ArrayBuffer
Whether transcription succeeded
Transcribed text
Error message if failed
Error code (e.g., “AUTH_EXPIRED”, “OFFLINE”)
Whether usage limit was reached
Total words used in current period
Words remaining in current period
Example
Audio File Transcription
window.electronAPI.transcribeAudioFile()
Transcribe an audio file from disk using local models.Absolute path to the audio file
Whether transcription succeeded
Transcribed text
Error message if failed
Example
Audio File Selection
window.electronAPI.selectAudioFile()
Open a file picker to select an audio file.Whether the user cancelled the dialog
Path to the selected audio file (if not cancelled)
Supported Formats
- MP3 (
.mp3) - WAV (
.wav) - M4A (
.m4a) - WebM (
.webm) - OGG (
.ogg) - FLAC (
.flac) - AAC (
.aac)
Example
Transcription Events
window.electronAPI.onNoAudioDetected()
Listen for “no audio detected” events during recording.Installation Checks
window.electronAPI.checkWhisperInstallation()
Check if Whisper binaries are available.Whether Whisper is installed
Path to the Whisper binary
Example
window.electronAPI.checkParakeetInstallation()
Check if Parakeet (sherpa-onnx) binaries are available.Whether Parakeet is installed
Path to the sherpa-onnx binary