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

# AudioMessage

> Protobuf class AudioMessage generated from WAProto.

Defined in: [WAProto/index.d.ts:5555](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5555)

## Implements

* [`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage)

## Constructors

### new AudioMessage()

> **new AudioMessage**(`p`?): [`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

Defined in: [WAProto/index.d.ts:5556](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5556)

#### Parameters

##### p?

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage)

#### Returns

[`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

## Properties

### accessibilityLabel?

> `optional` **accessibilityLabel**: `null` | `string`

Defined in: [WAProto/index.d.ts:5572](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5572)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`accessibilityLabel`](/proto-reference/Message/interfaces/IAudioMessage#accessibilitylabel)

***

### backgroundArgb?

> `optional` **backgroundArgb**: `null` | `number`

Defined in: [WAProto/index.d.ts:5570](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5570)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`backgroundArgb`](/proto-reference/Message/interfaces/IAudioMessage#backgroundargb)

***

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

Defined in: [WAProto/index.d.ts:5567](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5567)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`contextInfo`](/proto-reference/Message/interfaces/IAudioMessage#contextinfo)

***

### directPath?

> `optional` **directPath**: `null` | `string`

Defined in: [WAProto/index.d.ts:5565](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5565)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`directPath`](/proto-reference/Message/interfaces/IAudioMessage#directpath)

***

### fileEncSha256?

> `optional` **fileEncSha256**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:5564](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5564)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`fileEncSha256`](/proto-reference/Message/interfaces/IAudioMessage#fileencsha256)

***

### fileLength?

> `optional` **fileLength**: `null` | `number` | `Long`

Defined in: [WAProto/index.d.ts:5560](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5560)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`fileLength`](/proto-reference/Message/interfaces/IAudioMessage#filelength)

***

### fileSha256?

> `optional` **fileSha256**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:5559](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5559)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`fileSha256`](/proto-reference/Message/interfaces/IAudioMessage#filesha256)

***

### mediaKey?

> `optional` **mediaKey**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:5563](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5563)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`mediaKey`](/proto-reference/Message/interfaces/IAudioMessage#mediakey)

***

### mediaKeyDomain?

> `optional` **mediaKeyDomain**: `null` | [`MediaKeyDomain`](/proto-reference/Message/enumerations/MediaKeyDomain)

Defined in: [WAProto/index.d.ts:5573](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5573)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`mediaKeyDomain`](/proto-reference/Message/interfaces/IAudioMessage#mediakeydomain)

***

### mediaKeyTimestamp?

> `optional` **mediaKeyTimestamp**: `null` | `number` | `Long`

Defined in: [WAProto/index.d.ts:5566](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5566)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`mediaKeyTimestamp`](/proto-reference/Message/interfaces/IAudioMessage#mediakeytimestamp)

***

### mimetype?

> `optional` **mimetype**: `null` | `string`

Defined in: [WAProto/index.d.ts:5558](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5558)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`mimetype`](/proto-reference/Message/interfaces/IAudioMessage#mimetype)

***

### ptt?

> `optional` **ptt**: `null` | `boolean`

Defined in: [WAProto/index.d.ts:5562](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5562)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`ptt`](/proto-reference/Message/interfaces/IAudioMessage#ptt)

***

### seconds?

> `optional` **seconds**: `null` | `number`

Defined in: [WAProto/index.d.ts:5561](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5561)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`seconds`](/proto-reference/Message/interfaces/IAudioMessage#seconds)

***

### streamingSidecar?

> `optional` **streamingSidecar**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:5568](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5568)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`streamingSidecar`](/proto-reference/Message/interfaces/IAudioMessage#streamingsidecar)

***

### url?

> `optional` **url**: `null` | `string`

Defined in: [WAProto/index.d.ts:5557](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5557)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`url`](/proto-reference/Message/interfaces/IAudioMessage#url)

***

### viewOnce?

> `optional` **viewOnce**: `null` | `boolean`

Defined in: [WAProto/index.d.ts:5571](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5571)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`viewOnce`](/proto-reference/Message/interfaces/IAudioMessage#viewonce)

***

### waveform?

> `optional` **waveform**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:5569](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5569)

#### Implementation of

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage).[`waveform`](/proto-reference/Message/interfaces/IAudioMessage#waveform)

## Methods

### create()

> `static` **create**(`properties`?): [`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

Defined in: [WAProto/index.d.ts:5574](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5574)

#### Parameters

##### properties?

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage)

#### Returns

[`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

***

### decode()

> `static` **decode**(`r`, `l`?): [`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

Defined in: [WAProto/index.d.ts:5576](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5576)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:5575](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5575)

#### Parameters

##### m

[`IAudioMessage`](/proto-reference/Message/interfaces/IAudioMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

Defined in: [WAProto/index.d.ts:5577](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5577)

#### Parameters

##### d

#### Returns

[`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:5580](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5580)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:5579](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5579)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:5578](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L5578)

#### Parameters

##### m

[`AudioMessage`](/proto-reference/Message/classes/AudioMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
