From 789b6ea9645783637656723b19b70450a375c6c5 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Mon, 17 Jul 2023 06:30:40 +0700 Subject: [PATCH] fix record wav format --- lib/record/s3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/record/s3.js b/lib/record/s3.js index 24297e41..6534ad35 100644 --- a/lib/record/s3.js +++ b/lib/record/s3.js @@ -59,7 +59,7 @@ async function upload(logger, socket) { /**encoder */ let encoder; - if (obj.output_format === 'wav') { + if (account[0].record_format === 'wav') { encoder = new wav.Writer({ channels: 2, sampleRate, bitDepth: 16 }); } else { // default is mp3