2016-06-22 12:03:02 +02:00
---
allOf :
- $ref : core-event-schema/room_event.yaml
description : This message represents a single audio clip.
properties :
content :
properties :
body :
description : "A description of the audio e.g. 'Bee Gees - Stayin' Alive', or some kind of content description for accessibility e.g. 'audio attachment'."
type : string
info :
2021-01-27 21:14:31 +01:00
description : Metadata for the audio clip referred to in `url`.
2016-06-22 12:03:02 +02:00
properties :
duration :
description : The duration of the audio in milliseconds.
type : integer
mimetype :
2021-01-27 21:14:31 +01:00
description : The mimetype of the audio e.g. `audio/aac`.
2016-06-22 12:03:02 +02:00
type : string
size :
description : The size of the audio clip in bytes.
type : integer
title : AudioInfo
type : object
msgtype :
enum :
- m.audio
type : string
url :
2019-06-11 16:29:50 +02:00
description : |-
2021-01-29 01:00:39 +01:00
Required if the file is unencrypted. The URL (typically [MXC URI](/client-server-api/#matrix-content-mxc-uris))
2019-06-11 16:29:50 +02:00
to the audio clip.
2016-06-22 12:03:02 +02:00
type : string
2018-08-31 18:11:27 +02:00
file :
description : |-
Required if the file is encrypted. Information on the encrypted
2021-01-29 01:00:39 +01:00
file, as specified in
[ End-to-end encryption](/client-server-api/#sending-encrypted-attachments).
2018-08-31 18:11:27 +02:00
title : EncryptedFile
type : object
2016-06-22 12:03:02 +02:00
required :
- msgtype
- body
type : object
type :
enum :
- m.room.message
type : string
title : AudioMessage
type : object