AudioRecorder

Trait AudioRecorder 

Source
pub trait AudioRecorder {
    type Error;

    // Required method
    fn record(
        path: &str,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send + Sync
       where Self: Sized;
}
Expand description

Trait for audio recording.

Required Associated Types§

Source

type Error

The error type returned by the record method.

Required Methods§

Source

fn record( path: &str, ) -> impl Future<Output = Result<(), Self::Error>> + Send + Sync
where Self: Sized,

Record audio to a file.

Implementors§