vosk 0.3.1

Safe wrapper around the Vosk API Speech Recognition Toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// Possible errors that accept_waveform methods might return.
#[derive(Error, Debug)]
pub enum AcceptWaveformError {
    /// Error returned if the user passes in a buffer of a length
    /// that exceeds the maximum supported buffer length.
    #[error(
        "the length of the provided audio buffer was {0} (expected < {})",
        i32::MAX
    )]
    BufferTooLong(usize),
}