struct Job {
pcm: Vec<f32>,
resample: Duration,
audio: Duration,
truncated: bool,
normalize: Option<NormalizeOptions>,
prejoined: Option<String>,
diagnose: bool,
cancel: CancelToken,
reply: Sender<Result<Outcome, Error>>,
queued_at: Instant,
}Expand description
One queued transcription.
Fields§
§pcm: Vec<f32>§resample: Duration§audio: Duration§truncated: bool§normalize: Option<NormalizeOptions>Some on a job that rewrites its own text: the direct path,
and the pipelined finalize. Pipelined segment jobs carry None
so their raw text joins later under one normalize pass.
prejoined: Option<String>Set on a pipelined finalize job: rewrite this joined text
instead of recognizing pcm, which is empty.
diagnose: boolfalse on pipelined jobs: one take writes ONE diagnostics
record, from its segmenter at finish, not one per segment.
cancel: CancelToken§reply: Sender<Result<Outcome, Error>>§queued_at: InstantAuto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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