mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
test: audio convertion
This commit is contained in:
parent
28e5b2f65e
commit
ed6e28744e
@ -2410,11 +2410,11 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
.audioChannels(1)
|
||||
.on('error', async function (error) {
|
||||
console.log('error', error);
|
||||
await fs.promises.unlink(tempAudioPath);
|
||||
// await fs.promises.unlink(tempAudioPath);
|
||||
if (error) reject(error);
|
||||
})
|
||||
.on('end', async function () {
|
||||
await fs.promises.unlink(tempAudioPath);
|
||||
// await fs.promises.unlink(tempAudioPath);
|
||||
resolve(outputAudio);
|
||||
})
|
||||
.run();
|
||||
|
Loading…
Reference in New Issue
Block a user