mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-11-08 12:34:44 +00:00
fix record all call does not work on wav format (#211)
* fix #210 * fix throw error without new * fix throw error without new
This commit is contained in:
1 parent
f3d002cfca
commit
d361f1aeb1
2 files changed
+3
-3
No files matched your search
@@ -51,7 +51,7 @@ async function upload(logger, socket) {
|
||||
|
||||
/**encoder */
|
||||
let encoder;
|
||||
if (obj.record_format === 'wav') {
|
||||
if (account[0].record_format === 'wav') {
|
||||
encoder = new wav.Writer({ channels: 2, sampleRate, bitDepth: 16 });
|
||||
} else {
|
||||
// default is mp3
|
||||
|
||||
Reference in new issue
Block a user