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.
pub trait AudioRecorder {
type Error;
// Required method
fn record(
path: &str,
) -> impl Future<Output = Result<(), Self::Error>> + Send + Sync
where Self: Sized;
}Trait for audio recording.