pub struct VadAudioProcessor {}Expand description
Audio processor for VAD operations.
Handles loading, resampling, and format conversion of audio files for voice activity detection processing. Audio processor for VAD operations, optimized to use original sample rate and first channel only.
Implementations§
Source§impl VadAudioProcessor
impl VadAudioProcessor
Sourcepub async fn load_and_prepare_audio_direct(
&self,
audio_path: &Path,
) -> Result<ProcessedAudioData>
pub async fn load_and_prepare_audio_direct( &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
Directly loads and prepares audio files for VAD processing, supporting multiple formats. Load and prepare audio file for VAD processing.
Uses original sample rate and first channel only.
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