fix record wav format

This commit is contained in:
Quan HL
2023-07-17 06:30:40 +07:00
parent fe7cc9ad58
commit 789b6ea964

View File

@@ -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