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

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?
Hi,
When specifying a device using the device property on macOS leads to the recorder exiting with code 1.
const options = {
program:
rec, // Which program to use, eitherarecord,rec, orsox.device: 'Blue Snowball', // Recording device to use, e.g.
hw:1,0bits: 16, // Sample size. (only for
recandsox)channels: 1, // Channel count.
encoding:
signed-integer, // Encoding type. (only forrecandsox)rate: 48000, // Sample rate.
type:
wav, // Format type.}
However, this does work:
const options = {
program:
rec, // Which program to use, eitherarecord,rec, orsox.bits: 16, // Sample size. (only for
recandsox)channels: 1, // Channel count.
encoding:
signed-integer, // Encoding type. (only forrecandsox)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?