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

How to specify device on macOS #41

Open
james-Solutions opened this issue Apr 5, 2023 · 1 comment
Open

How to specify device on macOS #41

james-Solutions opened this issue Apr 5, 2023 · 1 comment
Assignees
Labels

Comments

@james-Solutions
Copy link

james-Solutions commented Apr 5, 2023

Hi,

When specifying a device using the device property on macOS leads to the recorder exiting with code 1.

image

const options = {
program: rec, // Which program to use, either arecord, rec, or sox.
device: 'Blue Snowball', // Recording device to use, e.g. hw:1,0

bits: 16, // Sample size. (only for rec and sox)
channels: 1, // Channel count.
encoding: signed-integer, // Encoding type. (only for rec and sox)
rate: 48000, // Sample rate.
type: wav, // Format type.
}

However, this does work:

const options = {
program: rec, // Which program to use, either arecord, rec, or sox.

bits: 16, // Sample size. (only for rec and sox)
channels: 1, // Channel count.
encoding: signed-integer, // Encoding type. (only for rec and sox)
rate: 48000, // Sample rate.
type: wav, // Format type.
additionalParameters: ['-t', 'coreaudio', '"Blue Snowball"']
}

This works for me now, but why would it not work with the device option?

@RedKenrok RedKenrok self-assigned this Apr 5, 2023
@james-Solutions
Copy link
Author

naudiodon to be abandoned but if it could be compiled to work on macOS, it has a great interface for the devices: https://github.com/Streampunk/naudiodon

Or implementing something similar in this repo.

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

No branches or pull requests

2 participants