Skip to main content

convert_f0

Function convert_f0 

Source
pub fn convert_f0(
    f0_contour: &[f32],
    source_mean: f32,
    source_std: f32,
    target_mean: f32,
    target_std: f32,
) -> Vec<f32>
Expand description

Convert F0 (fundamental frequency) contour from source to target speaker.

§Arguments

  • f0_contour - Source F0 values in Hz (0.0 for unvoiced)
  • source_mean - Mean F0 of source speaker
  • source_std - Standard deviation of source F0
  • target_mean - Mean F0 of target speaker
  • target_std - Standard deviation of target F0

§Returns

Converted F0 contour