pub struct Coordinator { /* private fields */ }Expand description
Cloneable typed coordinator over AudioIngress and Session History.
Implementations§
Source§impl Coordinator
impl Coordinator
pub fn new( audio: AudioIngress, history: SessionHistory, config: Config, ) -> Result<Self, Error>
pub fn health(&self) -> Result<(), Error>
pub async fn submit( &self, input: RecordingInput, ) -> Result<RecordingSubmission, Error>
pub async fn recordings(&self) -> Result<Vec<Recording>, Error>
pub async fn recording_by_sha256( &self, sha256: &str, ) -> Result<Recording, Error>
pub async fn recording_history( &self, recording_id: Uuid, ) -> Result<RecordingHistory, Error>
Sourcepub async fn recording_history_with_current_speaker_candidates(
&self,
recording_id: Uuid,
) -> Result<RecordingHistory, Error>
pub async fn recording_history_with_current_speaker_candidates( &self, recording_id: Uuid, ) -> Result<RecordingHistory, Error>
Returns recording history after re-scoring every unsigned speaker chunk.
This explicit read is intended for a human opening one audio review. It
runs synchronous classifier work on Tokio’s blocking pool; routine
background observation should use Coordinator::recording_history.
Sourcepub async fn speaker_review_audio(
&self,
recording_id: Uuid,
chunk_index: usize,
) -> Result<SpeakerReviewAudio, Error>
pub async fn speaker_review_audio( &self, recording_id: Uuid, chunk_index: usize, ) -> Result<SpeakerReviewAudio, Error>
Returns one authorized correction-packet chunk as an exact WAV interval.
Sourcepub fn known_speakers(&self) -> Result<Vec<String>, Error>
pub fn known_speakers(&self) -> Result<Vec<String>, Error>
Returns the known-speaker dropdown choices for this coordinator.
pub fn retry_recording(&self, recording_id: Uuid) -> Result<(), Error>
pub async fn confirm_speakers( &self, confirmation: ChunkConfirmation, ) -> Result<CorrectionPacket, Error>
pub async fn retry_ingress( &self, input: RetryIngress, ) -> Result<SessionRecord, Error>
pub async fn synchronize_completed_transcripts(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for Coordinator
impl Clone for Coordinator
Source§fn clone(&self) -> Coordinator
fn clone(&self) -> Coordinator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Coordinator
impl !UnwindSafe for Coordinator
impl Freeze for Coordinator
impl Send for Coordinator
impl Sync for Coordinator
impl Unpin for Coordinator
impl UnsafeUnpin for Coordinator
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