Skip to content

Commit

Permalink
fix record wav format
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Jul 16, 2023
1 parent fe7cc9a commit 789b6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/record/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 789b6ea

Please sign in to comment.