net.atchan.media.getSpectrogram

Get a spectrogram image drawn from an audio blob of a post embed. Falls back to a placeholder image when the audio can't be drawn.

Repository @atchan.net did:plc:vshgahazzq7qwvp2xc6ai27o namespace authority
Details · query
Kindquery
Authoritymedia.atchan.net
Commit rev3n2pc27pvmk2k
Indexed
cid bafyreiapcfuo5vfypwrxwad5yc2soar5l5cj77ltafjqewxtpuhdjeryga

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a spectrogram image drawn from an audio blob of a post embed. Falls back to a placeholder image when the audio can't be drawn.",
      "errors": [
        {
          "description": "atchan has not indexed a post embedding this blob.",
          "name": "BlobNotFound"
        }
      ],
      "output": {
        "encoding": "image/webp"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The CID of the blob.",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The DID of the account whose repo holds the blob.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "net.atchan.media.getSpectrogram",
  "lexicon": 1
}