{
  "name": "VoicePep — basic TTS",
  "nodes": [
    {
      "parameters": {},
      "id": "1",
      "name": "When clicked",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [ 240, 300 ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "text",
              "value": "The morning fog lifted off Lake Pepin. It was seven fifteen A M, and the deck was quiet.",
              "type": "string"
            }
          ]
        }
      },
      "id": "2",
      "name": "Set text",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [ 460, 300 ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.voicepep.com/v1/audio/speech",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer vp_live_YOUR_KEY_HERE"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={ \"model\": \"standard\", \"voice\": \"am_michael\", \"input\": \"{{ $json.text }}\" }",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "id": "3",
      "name": "VoicePep TTS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [ 680, 300 ]
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "/tmp/voicepep-output.mp3",
        "dataPropertyName": "data",
        "options": {}
      },
      "id": "4",
      "name": "Save audio",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [ 900, 300 ]
    }
  ],
  "connections": {
    "When clicked": {
      "main": [ [ { "node": "Set text", "type": "main", "index": 0 } ] ]
    },
    "Set text": {
      "main": [ [ { "node": "VoicePep TTS", "type": "main", "index": 0 } ] ]
    },
    "VoicePep TTS": {
      "main": [ [ { "node": "Save audio", "type": "main", "index": 0 } ] ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateId": "voicepep-n8n-basic-v1",
    "templateCredsSetupCompleted": false,
    "description": "Manual trigger → set text → POST to VoicePep → save MP3 to disk. Replace vp_live_YOUR_KEY_HERE with your real key. Free key at voicepep.com."
  }
}
