diff --git a/src-tauri/src/audio_toolkit/audio/recorder.rs b/src-tauri/src/audio_toolkit/audio/recorder.rs index a0ca572..3ec466d 100644 --- a/src-tauri/src/audio_toolkit/audio/recorder.rs +++ b/src-tauri/src/audio_toolkit/audio/recorder.rs @@ -79,6 +79,10 @@ impl AudioRecorder { ); let stream = match config.sample_format() { + cpal::SampleFormat::U8 => { + AudioRecorder::build_stream::(&thread_device, &config, sample_tx, channels) + .unwrap() + } cpal::SampleFormat::I8 => { AudioRecorder::build_stream::(&thread_device, &config, sample_tx, channels) .unwrap()