> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# getAudioWaveform

> referenced from and modifying https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/prepareAudioWaveform.ts

> **getAudioWaveform**(`buffer`, `logger`?): `Promise`\<`undefined` | `Uint8Array`\<`ArrayBuffer`>>

Defined in: [src/Utils/messages-media.ts:244](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages-media.ts#L244)

referenced from and modifying [https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/prepareAudioWaveform.ts](https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/prepareAudioWaveform.ts)

## Parameters

### buffer

`string` | `Buffer`\<`ArrayBufferLike`> | `Readable`

### logger?

`ILogger`

## Returns

`Promise`\<`undefined` | `Uint8Array`\<`ArrayBuffer`>>
