Skip to content

AudioContent

Defined in: src/@types/media.ts:215

Content format of media events with msgtype m.audio

https://spec.matrix.org/v1.11/client-server-api/#maudio

  • BaseContent

body: string

Defined in: src/@types/media.ts:163

If filename is not set or the value of both properties are identical, this is the filename of the original upload. Otherwise, this is a caption for the file.

BaseContent.body


optional file?: EncryptedFile

Defined in: src/@types/media.ts:153

Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.

https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments

BaseContent.file


optional filename?: string

Defined in: src/@types/media.ts:167

The original filename of the uploaded file.

BaseContent.filename


optional format?: "org.matrix.custom.html"

Defined in: src/@types/media.ts:171

The format used in the formatted_body.

BaseContent.format


optional formatted_body?: string

Defined in: src/@types/media.ts:175

The formatted version of the body, when it acts as a caption. This is required if format is specified.

BaseContent.formatted_body


optional info?: AudioInfo

Defined in: src/@types/media.ts:219

Metadata for the audio clip referred to in url.


msgtype: Audio

Defined in: src/@types/media.ts:223

One of: [m.audio].


optional url?: string

Defined in: src/@types/media.ts:157

Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.

BaseContent.url