{
  "name": "Generate audio from text scripts using self-hosted Bark model and Google Drive",
  "nodes": [
    {
      "id": "90a47429-775e-43d5-acfb-b7f72f382894",
      "name": "Start: External Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        300,
        80
      ]
    },
    {
      "id": "415fa2d1-532f-4a46-8634-8099f820816e",
      "name": "Start: Manual Test",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        200,
        440
      ]
    },
    {
      "id": "627fad9c-407d-496a-b0ff-5b58055c666c",
      "name": "Test Values",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        440
      ]
    },
    {
      "id": "e0efd839-dc9e-4d0b-b602-a6ead9e8d679",
      "name": "Aggregate Inputs",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        560,
        80
      ]
    },
    {
      "id": "fea5d345-4d72-431d-bf9b-4165b9b6f605",
      "name": "Get Scripts",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        820,
        80
      ]
    },
    {
      "id": "0fccfd48-ca42-45ea-9eb0-75f49f4572f6",
      "name": "Loop Scripts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1140,
        80
      ]
    },
    {
      "id": "ba6ea0f9-d1d7-4f22-a817-764335132a1c",
      "name": "Download Script",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1500,
        100
      ]
    },
    {
      "id": "f0f95702-4636-4810-9e42-4b3af5c13d9a",
      "name": "Save Script",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1780,
        100
      ]
    },
    {
      "id": "63cb6eb3-6693-4b34-84c9-4f6b39872752",
      "name": "Generate WAV",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        2000,
        100
      ]
    },
    {
      "id": "0d29f755-5ed2-4005-9eed-acbc9c8ff8d1",
      "name": "Read Audio",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2220,
        100
      ]
    },
    {
      "id": "394dead9-49af-4187-a589-1ff751e998f8",
      "name": "Upload Audio",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2440,
        100
      ]
    },
    {
      "id": "95f7b0e0-980f-4beb-adac-197b4b50a84f",
      "name": "📝 Workflow Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        260
      ],
      "parameters": {
        "width": 600,
        "height": 400,
        "content": "## Audio Generation Workflow\n\n1. This workflow automates the conversion of text scripts into audio files using a Python voice synthesis script.\n2. It retrieves scripts from Google Drive, generates aud"
      }
    }
  ],
  "connections": {
    "Read Audio": {
      "main": [
        [
          {
            "node": "Upload Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Scripts": {
      "main": [
        [
          {
            "node": "Loop Scripts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Script": {
      "main": [
        [
          {
            "node": "Generate WAV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Values": {
      "main": [
        [
          {
            "node": "Aggregate Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate WAV": {
      "main": [
        [
          {
            "node": "Read Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Scripts": {
      "main": [
        [],
        [
          {
            "node": "Download Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio": {
      "main": [
        [
          {
            "node": "Loop Scripts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Script": {
      "main": [
        [
          {
            "node": "Save Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Inputs": {
      "main": [
        [
          {
            "node": "Get Scripts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start: Manual Test": {
      "main": [
        [
          {
            "node": "Test Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start: External Trigger": {
      "main": [
        [
          {
            "node": "Aggregate Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}