pub struct SynthesisResult {
pub audio: Vec<i16>,
pub sample_rate: u32,
pub infer_seconds: f64,
pub audio_seconds: f64,
pub durations: Option<Vec<f32>>,
}Expand description
合成結果
Fields§
§audio: Vec<i16>§sample_rate: u32§infer_seconds: f64§audio_seconds: f64§durations: Option<Vec<f32>>Phoneme durations from the model (if available). Shape: [phoneme_length], each value = number of frames.
Implementations§
Source§impl SynthesisResult
impl SynthesisResult
Sourcepub fn real_time_factor(&self) -> f64
pub fn real_time_factor(&self) -> f64
リアルタイムファクタ (推論時間 / 音声時間)。 1.0 未満ならリアルタイムより高速。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SynthesisResult
impl RefUnwindSafe for SynthesisResult
impl Send for SynthesisResult
impl Sync for SynthesisResult
impl Unpin for SynthesisResult
impl UnsafeUnpin for SynthesisResult
impl UnwindSafe for SynthesisResult
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