# us.off-the-clock.embed.audio

> A voice recording or other audio, with its waveform as an image.

- Kind: object
- Authority: embed.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.embed.audio)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.embed.audio/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.embed.audio/analytics)

## Object (`us.off-the-clock.embed.audio`)

Type: object

### Properties

- `alt` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `audio` (blob, required)
  - Constraints: maxSize: 5242880, accept: audio/mp4, audio/mpeg, audio/ogg, audio/webm, audio/wav, audio/flac
- `duration` (integer): Seconds.
  - Constraints: minimum: 0
- `preview` (blob, required): The waveform, drawn when the post was written.
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A voice recording or other audio, with its waveform as an image.",
      "properties": {
        "alt": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "audio": {
          "accept": [
            "audio/mp4",
            "audio/mpeg",
            "audio/ogg",
            "audio/webm",
            "audio/wav",
            "audio/flac"
          ],
          "maxSize": 5242880,
          "type": "blob"
        },
        "duration": {
          "description": "Seconds.",
          "minimum": 0,
          "type": "integer"
        },
        "preview": {
          "accept": [
            "image/png",
            "image/jpeg"
          ],
          "description": "The waveform, drawn when the post was written.",
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "audio",
        "preview"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.embed.audio",
  "lexicon": 1
}
```
