pub struct Pyannote { /* private fields */ }Expand description
A loaded pyannote graph. Holding one is proof the model runs: loading segments a silent chunk before returning.
Trait Implementations§
Source§impl Engine for Pyannote
impl Engine for Pyannote
const NAME: &'static str = NAME
Source§const MODEL: &'static [ModelDownload] = MODEL
const MODEL: &'static [ModelDownload] = MODEL
The files to download for this engine, all into one folder. Empty
when nothing is downloaded for it. An engine that reads a second
folder lists that folder’s files in a const of its own.
type Config = Config
Source§fn check_from(config: &Self::Config) -> Result<PathBuf, SegmentationError>
fn check_from(config: &Self::Config) -> Result<PathBuf, SegmentationError>
Resolves what a load would read, without reading it.
fn load_from(config: Self::Config) -> Result<Self, SegmentationError>
Source§impl Segmenter for Pyannote
impl Segmenter for Pyannote
Source§fn shape(&self) -> ChunkShape
fn shape(&self) -> ChunkShape
The chunk width this engine reads and the frame grid it answers on.
Fixed for the life of the engine — it is a property of the graph.
Source§fn segment(&mut self, chunk: &[f32]) -> Result<Vec<Activity>, SegmentationError>
fn segment(&mut self, chunk: &[f32]) -> Result<Vec<Activity>, SegmentationError>
Who speaks in each frame of
chunk, which must be exactly
ChunkShape::samples long. A caller with less audio than that pads
it; a caller with more cuts it.Auto Trait Implementations§
impl !RefUnwindSafe for Pyannote
impl !UnwindSafe for Pyannote
impl Freeze for Pyannote
impl Send for Pyannote
impl Sync for Pyannote
impl Unpin for Pyannote
impl UnsafeUnpin for Pyannote
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more