{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://intelligentliving.art/schemas/speech-rendering/v1.json",
  "title": "Living Art Speech Rendering Profile v1",
  "type": "object",
  "required": [
    "type",
    "version",
    "displayText",
    "speechText",
    "interruptible"
  ],
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri-reference"
    },
    "type": {
      "const": "https://intelligentliving.art/protocols/speech-rendering/v1.json"
    },
    "version": {
      "const": "1.0.0"
    },
    "displayText": {
      "const": "preserve"
    },
    "speechText": {
      "type": "object",
      "required": [
        "unicodeApostrophes",
        "longDash",
        "citationMarkers"
      ],
      "properties": {
        "unicodeApostrophes": {
          "const": "ascii-apostrophe"
        },
        "longDash": {
          "enum": [
            "sentence-pause",
            "clause-pause"
          ]
        },
        "citationMarkers": {
          "enum": [
            "omit",
            "speak"
          ]
        },
        "pronunciations": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "display",
              "speak"
            ],
            "properties": {
              "display": {
                "type": "string",
                "minLength": 1
              },
              "speak": {
                "type": "string",
                "minLength": 1
              },
              "caseInsensitive": {
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "interruptible": {
      "const": true
    }
  },
  "additionalProperties": false
}
