pub struct VadAudioProcessor { /* private fields */ }Expand description
Audio processor for VAD operations.
Handles loading, resampling, and format conversion of audio files for voice activity detection processing.
Implementations§
Source§impl VadAudioProcessor
impl VadAudioProcessor
Sourcepub async fn load_and_prepare_audio(
&self,
audio_path: &Path,
) -> Result<ProcessedAudioData>
pub async fn load_and_prepare_audio( &self, audio_path: &Path, ) -> Result<ProcessedAudioData>
Load and prepare audio file for VAD processing.
Performs all necessary audio processing steps including loading, resampling, and format conversion to prepare the audio for voice activity detection.
§Arguments
audio_path- Path to the audio file to process
§Returns
Processed audio data ready for VAD analysis
§Errors
Returns an error if:
- Audio file cannot be loaded
- Audio format is unsupported
- Resampling fails
- Format conversion fails
Auto Trait Implementations§
impl Freeze for VadAudioProcessor
impl RefUnwindSafe for VadAudioProcessor
impl Send for VadAudioProcessor
impl Sync for VadAudioProcessor
impl Unpin for VadAudioProcessor
impl UnwindSafe for VadAudioProcessor
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