pub struct StemPlan {Show 14 fields
pub seq: i64,
pub filepath: String,
pub direction_type: Option<String>,
pub entry_type: Option<String>,
pub text: Option<String>,
pub scene: Option<String>,
pub foreground_override: bool,
pub volume_percentage: Option<Num>,
pub ramp_in_seconds: Option<Num>,
pub ramp_out_seconds: Option<Num>,
pub play_duration: Option<f64>,
pub tts_model: Option<String>,
pub pre_trimmed: bool,
pub loop_: bool,
}Expand description
Resolved metadata for one stem file (or a boundary sentinel).
Fields§
§seq: i64§filepath: StringEmpty for a sentinel with no audio.
direction_type: Option<String>§entry_type: Option<String>§text: Option<String>§scene: Option<String>§foreground_override: bool§volume_percentage: Option<Num>§ramp_in_seconds: Option<Num>§ramp_out_seconds: Option<Num>§play_duration: Option<f64>§tts_model: Option<String>§pre_trimmed: bool§loop_: boolImplementations§
Source§impl StemPlan
impl StemPlan
fn new( seq: i64, filepath: String, direction_type: Option<String>, entry_type: Option<String>, text: Option<String>, ) -> StemPlan
pub fn is_background(&self) -> bool
pub fn dt(&self) -> Option<&str>
pub fn is_dialogue(&self) -> bool
Sourcepub fn speaker_raw(&self) -> String
pub fn speaker_raw(&self) -> String
The speaker key from the stem name (…_<speaker>.mp3).
fn speaker_lower(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StemPlan
impl RefUnwindSafe for StemPlan
impl Send for StemPlan
impl Sync for StemPlan
impl Unpin for StemPlan
impl UnsafeUnpin for StemPlan
impl UnwindSafe for StemPlan
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