# ch.indiemusi.alpha.audioFile

> Published by [indiemusi.ch](https://lexicon.garden/identity/did:plc:lcmrbur2pydmpelfcs7fjbdx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.audioFile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.audioFile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.audioFile/examples)

## Definitions

### `ch.indiemusi.alpha.audioFile`

**Type**: `record`

An audio file stored inside a user's private atproto space of type ch.indiemusi.alpha.audioLibrary. Not stored in the public repo.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `audio` | `blob` | Yes | The raw audio blob, stored inside the space. |
| `byteSize` | `integer` | No | Size of the audio file in bytes. |
| `createdAt` | `string` (datetime) | No |  |
| `duration` | `integer` | No | Duration of the audio in seconds. |
| `encoding` | `string` | No | Audio encoding details, e.g. 'FLAC 24-bit / 96kHz stereo'. |
| `mimeType` | `string` | Yes | MIME type of the audio blob, e.g. audio/flac. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An audio file stored inside a user's private atproto space of type ch.indiemusi.alpha.audioLibrary. Not stored in the public repo.",
      "key": "tid",
      "record": {
        "properties": {
          "audio": {
            "accept": [
              "audio/flac",
              "audio/mpeg",
              "audio/wav",
              "audio/aac",
              "audio/ogg"
            ],
            "description": "The raw audio blob, stored inside the space.",
            "type": "blob"
          },
          "byteSize": {
            "description": "Size of the audio file in bytes.",
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "duration": {
            "description": "Duration of the audio in seconds.",
            "type": "integer"
          },
          "encoding": {
            "description": "Audio encoding details, e.g. 'FLAC 24-bit / 96kHz stereo'.",
            "maxLength": 255,
            "type": "string"
          },
          "mimeType": {
            "description": "MIME type of the audio blob, e.g. audio/flac.",
            "maxLength": 127,
            "type": "string"
          }
        },
        "required": [
          "mimeType",
          "audio"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ch.indiemusi.alpha.audioFile",
  "lexicon": 1
}
```
