We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e268876 commit af21e63Copy full SHA for af21e63
src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts
@@ -3136,7 +3136,8 @@ export class BaileysStartupService extends ChannelStartupService {
3136
// Only generate waveform for buffers, not URLs
3137
if (Buffer.isBuffer(audioBuffer)) {
3138
seconds = await this.getAudioDuration(audioBuffer);
3139
- waveform = await this.getAudioWaveform(audioBuffer);
+ const waveformU8 = await this.getAudioWaveform(audioBuffer);
3140
+ waveform = Array.from(waveformU8);
3141
}
3142
3143
return await this.sendMessageWithTyping<AnyMessageContent>(
0 commit comments