如何更改SoX的录制音频设备?

问题描述 投票:0回答:1

标题:如何更改SoX的录制音频设备?

我正在使用MacOS(安装了自制软件)。

我正在通过一个名为node-audiorecorder的Node.js库与SoX交互,该库记录声音;让我知道是否有更好的解决方案,我应该使用该解决方案将音频从特定的输入设备录制到.wav文件。

编辑:为了清楚起见,我们这里不是在谈论记录来自默认输入设备的输入。

audio audio-recording sox
1个回答
0
投票

构造函数中有一个设备选项。

const AudioRecorder = require('node-audiorecorder');


const options = {
  program: `sox`,
  device: null, // Recording device you want to use.

};

let audioRecorder = new AudioRecorder(options);
© www.soinside.com 2019 - 2024. All rights reserved.