smrec icon indicating copy to clipboard operation
smrec copied to clipboard

System voice cannot be recorded

Open daidi opened this issue 1 year ago • 1 comments

I want to distinguish between the microphone and the speaker separately, and I see that there are two different channels with the list interface, but the actual sound recorded with 'include 1,2' is wrong, and it doesn't work properly with 'exclude 1' or 'exclude 2'

daidi avatar Feb 07 '24 05:02 daidi

(base) dorothy@dorothydeMacBook-Pro akasha % smrec list
Audio Hosts and Devices
=======================
  Supported hosts:
    [CoreAudio]
  Available hosts:
    [CoreAudio]

  CoreAudio Default Devices:
    Default Input Device:
        MacBook Pro麦克风
    Default Output Device:
        MacBook Pro扬声器

  CoreAudio Available Devices:
    1. "“dorothy的iPhone”的麦克风"
          Default input stream config:
            Channels: 1
            Sample Rate: 48000
            Buffer Size { min: 15, max: 4096 }
            Sample Format: f32
    2. "MacBook Pro麦克风"
          Default input stream config:
            Channels: 1
            Sample Rate: 44100
            Buffer Size { min: 14, max: 4096 }
            Sample Format: f32
    3. "MacBook Pro扬声器"
          Default output stream config:
            Channels: 2
            Sample Rate: 48000
            Buffer Size { min: 15, max: 4096 }
            Sample Format: f32

Midi Ports
==========
  Available input ports:
  Available output ports:
(base) dorothy@dorothydeMacBook-Pro akasha % smrec --include 1,2
Starting recording...
Recording started.
Recording interrupted thus stopped.
(base) dorothy@dorothydeMacBook-Pro akasha % smrec --exclude 2  
Error: Channel 2 is meant to be excluded but it does not exist.
(base) dorothy@dorothydeMacBook-Pro akasha % smrec --exclude 1
Starting recording...
Recording started.
thread '<unnamed>' panicked at /Users/dorothy/.cargo/registry/src/mirrors.ustc.edu.cn-12df342d903acd47/smrec-0.1.4/src/stream.rs:78:27:
chunk size must be non-zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: Rust panics must be rethrown
zsh: abort      smrec --exclude 1

daidi avatar Feb 07 '24 05:02 daidi