optimize: send record msg error

This commit is contained in:
linyuchen 2024-04-28 09:18:04 +08:00
parent 3aef75085f
commit 2212eb17aa

View File

@ -1,7 +1,7 @@
import fs from 'fs';
import { encode, getDuration, getWavFileInfo, isWav } from 'silk-wasm';
import fsPromise from 'fs/promises';
import { log } from './log';
import { log, logError } from './log';
import path from 'node:path';
import { v4 as uuidv4 } from 'uuid';
import { spawn } from 'node:child_process';
@ -129,7 +129,7 @@ export async function encodeSilk(filePath: string) {
};
}
} catch (error: any) {
log('convert silk failed', error.stack);
logError('convert silk failed', error.stack);
return {};
}
}