coqui_stt/
lib.rs

1#![deny(missing_docs)]
2//! A safe wrapper around the [Coqui STT](https://stt.readthedocs.io/en/latest) API
3//!
4//! Typically, to use this,
5//! * start by creating a [`Model`](Model),
6//! * if you have a scorer to load, call [`enable_external_scorer`](Model::enable_external_scorer),
7//! * then call [`speech_to_text`](Model::speech_to_text) to run the algorithm.
8//!
9//! # Features
10//! No features are enabled by default.
11//!
12//! * `raw-bindings`: exposes the [`coqui-stt-sys`](coqui_stt_sys) crate at the root under the same name.
13
14#[macro_use]
15mod helpers;
16
17mod candidate_transcript;
18#[cfg(feature = "deadpool_integration")]
19mod deadpool_integration;
20mod errors;
21mod metadata;
22mod model;
23mod stream;
24mod token_metadata;
25
26pub use candidate_transcript::{CandidateTranscript, OwnedCandidateTranscript};
27#[cfg(feature = "deadpool_integration")]
28pub use deadpool_integration::*;
29pub use errors::{Error, Result};
30pub use metadata::{Metadata, OwnedMetadata};
31pub use model::Model;
32pub use stream::Stream;
33pub use token_metadata::{OwnedTokenMetadata, TokenMetadata};
34
35#[cfg(feature = "raw_bindings")]
36pub use coqui_stt_sys;