{
  "platformVersion": "15.12.0",
  "creates": {
    "convert_text": {
      "display": {
        "description": "Convierte texto a audio narrado en español",
        "label": "Texto a Audio",
        "hidden": false
      },
      "key": "convert_text",
      "noun": "Audio",
      "operation": {
        "inputFields": [
          { "key": "text", "label": "Texto", "type": "text", "required": true, "helpText": "El texto a convertir (máx 100,000 caracteres)" },
          {
            "key": "voice", "label": "Voz", "type": "string", "required": false, "default": "es-MX-Ald",
            "choices": {
              "es-MX-Ald": "Ald (México)",
              "es-ES-Davefx": "Davefx (España)",
              "es-ES-Sharvard": "Sharvard (España)"
            }
          }
        ],
        "perform": {
          "url": "https://voz.4l3.org/convert/text",
          "method": "POST",
          "body": {
            "text": "{{bundle.inputData.text}}",
            "voice": "{{bundle.inputData.voice}}"
          }
        },
        "sample": {
          "audio_id": "abc123",
          "audio_url": "https://voz.4l3.org/audio/abc123",
          "chars": 150,
          "voice": "es-MX-Ald"
        }
      }
    },
    "convert_url": {
      "display": {
        "description": "Extrae texto de una URL y genera audio narrado",
        "label": "URL a Audio",
        "hidden": false
      },
      "key": "convert_url",
      "noun": "Audio",
      "operation": {
        "inputFields": [
          { "key": "url", "label": "URL", "type": "string", "required": true, "helpText": "URL del artículo o blog a convertir" },
          {
            "key": "voice", "label": "Voz", "type": "string", "required": false, "default": "es-MX-Ald",
            "choices": {
              "es-MX-Ald": "Ald (México)",
              "es-ES-Davefx": "Davefx (España)",
              "es-ES-Sharvard": "Sharvard (España)"
            }
          }
        ],
        "perform": {
          "url": "https://voz.4l3.org/convert/url",
          "method": "POST",
          "body": {
            "url": "{{bundle.inputData.url}}",
            "voice": "{{bundle.inputData.voice}}"
          }
        },
        "sample": {
          "audio_id": "def456",
          "audio_url": "https://voz.4l3.org/audio/def456",
          "title": "Mi artículo",
          "chars": 3500,
          "voice": "es-MX-Ald"
        }
      }
    }
  },
  "version": "1.0.0",
  "title": "VozAlta",
  "description": "Texto a audio en español con IA. Convierte artículos, blogs y newsletters a audio narrado.",
  "homepage": "https://voz.4l3.org"
}
