pub struct StyleConfig {
pub prosody_dim: usize,
pub timbre_dim: usize,
pub rhythm_dim: usize,
pub sample_rate: u32,
pub frame_shift_ms: u32,
pub style_strength: f32,
pub preserve_pitch_contour: bool,
}Expand description
Configuration for voice style transfer.
Fields§
§prosody_dim: usizeDimension of prosody features (pitch, energy, duration)
timbre_dim: usizeDimension of timbre features (spectral envelope)
rhythm_dim: usizeDimension of speaking rate features
sample_rate: u32Sample rate in Hz
frame_shift_ms: u32Frame shift in milliseconds for analysis
style_strength: f32Blend factor for style interpolation [0.0, 1.0]
preserve_pitch_contour: boolPreserve source pitch contour
Implementations§
Source§impl StyleConfig
impl StyleConfig
Sourcepub fn prosody_only() -> Self
pub fn prosody_only() -> Self
Create config for prosody-only transfer (pitch, energy, rhythm)
Sourcepub fn full_conversion() -> Self
pub fn full_conversion() -> Self
Create config for full voice conversion
Sourcepub fn validate(&self) -> VoiceResult<()>
pub fn validate(&self) -> VoiceResult<()>
Validate configuration
Trait Implementations§
Source§impl Clone for StyleConfig
impl Clone for StyleConfig
Source§fn clone(&self) -> StyleConfig
fn clone(&self) -> StyleConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleConfig
impl Debug for StyleConfig
Auto Trait Implementations§
impl Freeze for StyleConfig
impl RefUnwindSafe for StyleConfig
impl Send for StyleConfig
impl Sync for StyleConfig
impl Unpin for StyleConfig
impl UnsafeUnpin for StyleConfig
impl UnwindSafe for StyleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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