Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System voice cannot be recorded #3

Open
daidi opened this issue Feb 7, 2024 · 1 comment
Open

System voice cannot be recorded #3

daidi opened this issue Feb 7, 2024 · 1 comment

Comments

@daidi
Copy link

daidi commented Feb 7, 2024

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
Copy link
Author

daidi commented Feb 7, 2024

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant