{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nanostudiopro-com/json-schema/nanostudiopro-com-sound-schema.json",
  "title": "Sound",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nanostudiopro-com-openapi.json#/components/schemas/Sound",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "music",
        "sfx",
        "ambience",
        "voice"
      ]
    },
    "category": {
      "type": "string",
      "description": "One of the kind's categories — music: score, song, loop, sting, theme; sfx: impact, whoosh, foley, mechanical, animal, weapon, magic, ui, typing, vehicle, human; ambience: nature, weather, city, interior, crowd, industrial, space; voice: dialogue, voice_over, narration, commentary, recording, audition, isolated; every kind also has `other`."
    },
    "source": {
      "type": "string",
      "enum": [
        "generated",
        "upload",
        "isolated",
        "import"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "BCP-47 code of any spoken or sung words; `null` when there are none."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The words it was made from (a prompt, a script) or, for heard speech, the transcript."
    },
    "duration_ms": {
      "type": "integer"
    },
    "credits": {
      "type": "integer",
      "description": "What making it cost, in credits; 0 for uploads."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Signed link to the audio file, fetchable without a token; expires after about 6 hours, so read a fresh one rather than storing it."
    },
    "origin": {
      "type": "object",
      "description": "Where it was made: the app surface and, when there is one, the document.",
      "properties": {
        "surface": {
          "type": "string"
        },
        "doc_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "doc_id": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "hidden": {
      "type": "boolean"
    },
    "project_count": {
      "type": "integer",
      "description": "Projects it was made in or is used by."
    },
    "use_count": {
      "type": "integer",
      "description": "Documents that use it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}