speakrs 0.3.2

Fast Rust speaker diarization with pyannote-level accuracy and native CoreML/CUDA acceleration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::pipeline::PipelineError;

pub(super) fn backend_error(context: &'static str, message: impl ToString) -> PipelineError {
    PipelineError::Backend {
        context,
        message: message.to_string(),
    }
}

pub(super) fn invariant_error(message: impl Into<String>) -> PipelineError {
    PipelineError::Invariant(message.into())
}

pub(super) fn worker_panic(worker: impl Into<String>) -> PipelineError {
    PipelineError::WorkerPanic {
        worker: worker.into(),
    }
}