- When grabbing the device from the CLI, we now add it to a new var - We then add new var as the device so we can specify the group - Updated the default UDP port in the audio device for OP25 config
This commit is contained in:
@@ -11,8 +11,9 @@ let type = "dshow";
|
||||
if (os.platform() === 'linux') {
|
||||
await new Promise((res) => {
|
||||
executeCommand("pactl", ['list', 'short', 'sources']).then(cliOutput => {
|
||||
device = extractValue(cliOutput, '(?:\\d(?:\\t|[\\s]{1,9})(?<device>[\\w\\d\\-\\.\\_]+?)(?:\\t|[\\s]{1,9})(?<card>[\\w\\d\\-\\.\\_]+)(?:\\t|[\\s]{1,9})(?:(?<device_type>[\\w\\d\\-\\.\\_]+?) (?<channels>\\dch) (?<frequency>\\d+Hz))(?:\\t|[\\s]{1,9})(?:IDLE|RUNNING|SUSPENDED))')
|
||||
console.log("Device:", device.groups.device);
|
||||
const extracted_device_details = extractValue(cliOutput, '(?:\\d(?:\\t|[\\s]{1,9})(?<device>[\\w\\d\\-\\.\\_]+?)(?:\\t|[\\s]{1,9})(?<card>[\\w\\d\\-\\.\\_]+)(?:\\t|[\\s]{1,9})(?:(?<device_type>[\\w\\d\\-\\.\\_]+?) (?<channels>\\dch) (?<frequency>\\d+Hz))(?:\\t|[\\s]{1,9})(?:IDLE|RUNNING|SUSPENDED))')
|
||||
device = extracted_device_details.groups.device;
|
||||
console.log("Device:", device);
|
||||
res();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -150,7 +150,7 @@ class trunkingConfig {
|
||||
}
|
||||
|
||||
class audioConfig {
|
||||
constructor({ module = "sockaudio.py", port = 23457, deviceName = "default" }) {
|
||||
constructor({ module = "sockaudio.py", port = 23456, deviceName = "default" }) {
|
||||
this.module = module;
|
||||
this.instances = [{
|
||||
"instance_name": "audio0",
|
||||
|
||||
Reference in New Issue
Block a user