Skip to main content

process_audio_files

Function process_audio_files 

Source
pub fn process_audio_files(folder: impl AsRef<Path>, speed: f32) -> Result<()>
Expand description

Process all audio files in the specified folder recursively with the given speed multiplier.

§Arguments

  • folder - Path to the folder containing audio files
  • speed - Speed multiplier (e.g., 1.5 for 1.5x speed)

§Returns

  • Result<()> - Ok(()) if successful, or an error if processing fails

§Example

use std::path::Path;
use ogg_batch_speedup::process_audio_files;

let folder = Path::new("path/to/audio/files");
let speed = 1.5;
process_audio_files(folder, speed).unwrap();