models/pyannote/pyannote_isolate library

Classes

PyannoteIsolateManager
Manages communication with the processing isolate.
PyannoteIsolateMessage
Message class for Pyannote isolate communication.
PyannoteONNX
Main class for speaker diarization using Pyannote ONNX models.

Functions

cleanupOrtSession(OrtSessionObjects? ortSessionObjects) → void
Cleans up resources associated with an ORT session.
frame2sample(int x) → int
Converts frame count to sample count.
pyannoteIsolateEntryPoint(SendPort mainSendPort) → void
Entry point for the processing isolate.
reorder(List<List<double>> x, List<List<double>> y) → List<List<double>>
Reorders speaker assignments for consistency.
sample2frame(int x) → int
Converts sample count to frame count.
slidingWindow(Float32List waveform, int windowSize, int stepSize) → Iterable<(int, Float32List)>
Generates sliding windows over the audio data.

Exceptions / Errors

PyannoteException
Exception thrown by PyannoteONNX operations.