mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 17:08:44 -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)
|
.audioChannels(1)
|
||||||
.on('error', async function (error) {
|
.on('error', async function (error) {
|
||||||
console.log('error', error);
|
console.log('error', error);
|
||||||
await fs.promises.unlink(tempAudioPath);
|
// await fs.promises.unlink(tempAudioPath);
|
||||||
if (error) reject(error);
|
if (error) reject(error);
|
||||||
})
|
})
|
||||||
.on('end', async function () {
|
.on('end', async function () {
|
||||||
await fs.promises.unlink(tempAudioPath);
|
// await fs.promises.unlink(tempAudioPath);
|
||||||
resolve(outputAudio);
|
resolve(outputAudio);
|
||||||
})
|
})
|
||||||
.run();
|
.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user