{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/callbacks/transcribe-translation",
  "title": "Transcribe TranslationHook Payload",
  "description": "Payload sent to the translationHook when a translation result is received.",
  "allOf": [
    { "$ref": "base" }
  ],
  "type": "object",
  "properties": {
    "translation": {
      "type": "object",
      "description": "Translation result data.",
      "properties": {
        "channel": { "type": "integer", "description": "Audio channel number (1 or 2)." },
        "language": { "type": "string", "description": "Target language code for the translation." },
        "translation": { "type": "string", "description": "The translated text." }
      },
      "required": ["channel", "language", "translation"]
    }
  },
  "required": ["translation"],
  "additionalProperties": true
}
