asry 0.1.0

Sans-I/O cut/batch/whisper/align state machine for speech-to-text indexing pipelines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `Event` enum — what the state machine emits to the caller.

use crate::types::{ChunkId, Transcript, WorkFailure};

/// One event produced by the state machine. Drained by
/// `Transcriber::poll_event`.
#[derive(Debug)]
pub enum Event {
  /// A chunk's transcription completed successfully.
  Transcript(Transcript),
  /// A chunk's processing failed; no `Transcript` is produced.
  Error {
    /// Chunk identity.
    chunk_id: ChunkId,
    /// Failure detail.
    error: WorkFailure,
  },
}