pub struct TranscribeState {Show 21 fields
pub open: bool,
pub model: usize,
pub language: String,
pub max_chars: usize,
pub lines: usize,
pub min_dur: f64,
pub words: bool,
pub prompt: String,
pub group: GroupOpts,
pub raw_words: Vec<(f64, f64, String)>,
pub generated: Vec<u64>,
pub threshold: f32,
pub segments: Vec<Segment>,
pub groups: Vec<Vec<usize>>,
pub status: String,
clip: Option<u64>,
map: (f64, f64),
marks: Vec<u64>,
job: Option<Job>,
download: Option<Arc<Progress>>,
exe: Option<Option<PathBuf>>,
}Expand description
Speech-to-text and the double-take detector (the “Transcribe” section).
Fields§
§open: bool§model: usizeIndex into transcribe::MODELS.
language: String§max_chars: usize§lines: usizeWrapped lines per cue, joined with newlines (1 = one-liners, 2 = the usual two-line subs).
min_dur: f64§words: bool§prompt: StringVocabulary/style hints passed to whisper (--prompt).
group: GroupOptsSentence grouping for word-timed runs (gap, punctuation, max words/chars) — regenerate-time knobs.
raw_words: Vec<(f64, f64, String)>Raw one-word timings of the last word-timed run (timeline seconds) — what “Regenerate” regroups.
generated: Vec<u64>Cues added by the last generate, so a regenerate replaces them instead of stacking duplicates.
threshold: f32Double-take similarity, 0.5..=1.0.
segments: Vec<Segment>Transcript of the last run, in timeline seconds.
groups: Vec<Vec<usize>>Repeated takes over segments (each group keeps its last member).
status: String§clip: Option<u64>Clip the transcript came from, and its source -> timeline (offset, scale).
map: (f64, f64)§marks: Vec<u64>Markers dropped by “Mark on timeline”, so a re-mark or a cut can take them away again.
job: Option<Job>§download: Option<Arc<Progress>>§exe: Option<Option<PathBuf>>whisper binary, looked up once (the lookup stats PATH) — “Re-check” after installing it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TranscribeState
impl RefUnwindSafe for TranscribeState
impl Send for TranscribeState
impl Sync for TranscribeState
impl Unpin for TranscribeState
impl UnwindSafe for TranscribeState
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more