whisp 0.5.0

Unobtrusive global speech-to-text
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Application events for the tao event loop.

use crate::MicState;

/// Events for the tao event loop, extending the core AudioEvent.
#[derive(Debug, Clone)]
pub enum WhispEvent {
    /// The microphone state has changed
    StateChanged(MicState),
    /// A transcription is ready
    TranscriptReady(String),
    /// Transcription failed after retries
    TranscriptionFailed(Vec<u8>),
    /// An error occurred during audio processing
    AudioError(Vec<u8>),
}