Skip to main content

Crate tauri_plugin_whisper_core

Crate tauri_plugin_whisper_core 

Source
Expand description

tauri-plugin-whisper-core — Offline, real-time Speech-to-Text for Tauri v2.

This plugin wraps whisper.cpp (via [whisper-rs]) to provide streaming transcription with hardware acceleration (CUDA / Metal / CoreML), Silero VAD, and Pyannote Speaker Diarization.

§Quick Start

ⓘ
tauri::Builder::default()
    .plugin(tauri_plugin_whisper_core::init())
    .run(tauri::generate_context!())
    .expect("error while running tauri application");

Re-exports§

pub use state::AudioChannel;
pub use state::AudioContext;
pub use state::DiarizedResultPayload;
pub use state::DiarizedSegmentPayload;
pub use state::DownloadProgressPayload;
pub use state::FinalResultPayload;
pub use state::PartialResultPayload;
pub use state::SegmentPayload;
pub use state::WhisperPluginState;
pub use state::RecordingTranscribeProgressPayload;

Modules§

sck
ScreenCaptureKit audio capture backend.
state
vad
Voice Activity Detection (VAD) using Silero VAD (ONNX) or fallback energy detector.

Structs§

RecordingTranscript
The complete transcript returned by transcribe_recording.
RecordingTranscriptSegment
A single segment in the final recording transcript.
TranscriptSegment
A single transcribed segment with timestamps.

Enums§

WhisperError
All errors that the whisper plugin can surface to the frontend.

Traits§

AsrBackend
Pluggable backend for speech-to-text inference.

Functions§

init
Initialises the whisper-core plugin.

Type Aliases§

Result