We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4936d7f commit 55b1464Copy full SHA for 55b1464
src/whatsapp/services/whatsapp.service.ts
@@ -1152,8 +1152,8 @@ export class WAStartupService {
1152
const response = await axios.get(audio, { responseType: 'arraybuffer' });
1153
fs.writeFileSync(tempAudioPath, response.data);
1154
} else {
1155
- outputAudio = `${join(process.cwd(), 'temp', 'audio.opus')}`;
1156
- tempAudioPath = `${join(process.cwd(), 'temp', 'audio.mp3')}`;
+ outputAudio = `${join(process.cwd(), 'temp', 'audio.mp4')}`;
+ tempAudioPath = `${join(process.cwd(), 'temp', 'audioTemp.mp3')}`;
1157
1158
const audioBuffer = Buffer.from(audio, 'base64');
1159
fs.writeFileSync(tempAudioPath, audioBuffer);
0 commit comments