8
n8n 한국어amn8n.com

오디오 생성기

중급

이것은AI, Marketing분야의자동화 워크플로우로, 12개의 노드를 포함합니다.주로 Set, Aggregate, GoogleDrive, ManualTrigger, ReadWriteFile 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. 자체 호스팅 Bark 모델과 Google Drive를 사용하여 텍스트 스크립트에서 오디오 생성

사전 요구사항
  • Google Drive API 인증 정보
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "oGZBcAWL45us8pwq",
  "meta": {
    "instanceId": "b056f9b68a026cea4ea6d6cda333d4e0637787dd2b6ca0bc03505f1e16cc8372",
    "templateCredsSetupCompleted": true
  },
  "name": "Audio generator",
  "tags": [],
  "nodes": [
    {
      "id": "90a47429-775e-43d5-acfb-b7f72f382894",
      "name": "시작: 외부 트리거",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        300,
        80
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "id_repo_audio"
            },
            {
              "name": "id_repo_script"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "415fa2d1-532f-4a46-8634-8099f820816e",
      "name": "시작: 수동 테스트",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        200,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "627fad9c-407d-496a-b0ff-5b58055c666c",
      "name": "테스트 값",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        440
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "name": "id_repo_audio",
              "type": "string",
              "value": "1wrnIskVWQJRAvKs04bhXavgDv2FokabG"
            },
            {
              "name": "id_repo_script",
              "type": "string",
              "value": "12tIJJuO_DfwJbtOuO72mpk2_3s9O4xZc"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e0efd839-dc9e-4d0b-b602-a6ead9e8d679",
      "name": "입력 집계",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        560,
        80
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "id_repo_audio"
            },
            {
              "fieldToAggregate": "id_repo_script"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "fea5d345-4d72-431d-bf9b-4165b9b6f605",
      "name": "스크립트 가져오기",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        820,
        80
      ],
      "parameters": {
        "filter": {
          "folderId": {
            "__rl": true,
            "mode": "id",
            "value": "={{ $('Aggregate Inputs').item.json.id_repo_script[0] }}"
          }
        },
        "options": {},
        "resource": "fileFolder"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "m7YYCMskvr7bsiei",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "0fccfd48-ca42-45ea-9eb0-75f49f4572f6",
      "name": "스크립트 반복",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1140,
        80
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "ba6ea0f9-d1d7-4f22-a817-764335132a1c",
      "name": "스크립트 다운로드",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1500,
        100
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "m7YYCMskvr7bsiei",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "f0f95702-4636-4810-9e42-4b3af5c13d9a",
      "name": "스크립트 저장",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1780,
        100
      ],
      "parameters": {
        "options": {},
        "fileName": "/tmp/script.txt",
        "operation": "write",
        "dataPropertyName": "=data"
      },
      "typeVersion": 1
    },
    {
      "id": "63cb6eb3-6693-4b34-84c9-4f6b39872752",
      "name": "WAV 생성",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        2000,
        100
      ],
      "parameters": {
        "command": "=/opt/venv/bin/python /scripts/generate_voice.py /tmp/script.txt /tmp/output_{{ $json.name.replace(/\\.txt$/, '') }}.wav"
      },
      "typeVersion": 1
    },
    {
      "id": "0d29f755-5ed2-4005-9eed-acbc9c8ff8d1",
      "name": "오디오 읽기",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2220,
        100
      ],
      "parameters": {
        "options": {},
        "fileSelector": "=/tmp/output_{{ $('Loop Scripts').item.json.name.replace(/\\.txt$/, '.wav') }}"
      },
      "typeVersion": 1
    },
    {
      "id": "394dead9-49af-4187-a589-1ff751e998f8",
      "name": "오디오 업로드",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2440,
        100
      ],
      "parameters": {
        "name": "={{ $json.fileName }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Aggregate Inputs').item.json.id_repo_audio[0] }}"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "m7YYCMskvr7bsiei",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "95f7b0e0-980f-4beb-adac-197b4b50a84f",
      "name": "📝 워크플로우 지침",
      "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 audio with Bark-style narration, and reuploads the result.\n3. Script filenames must be .txt. Only clean plain text is supported.\n\n### Inputs:\n- id_repo_script: Google Drive folder with scripts\n- id_repo_audio: Google Drive folder to upload audio files\n\nMake sure the Python script is deployed at /scripts/generate_voice.py and has access to Bark or other required models."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "30318ca0-c87d-43db-8b74-3ec1127e1061",
  "connections": {
    "0d29f755-5ed2-4005-9eed-acbc9c8ff8d1": {
      "main": [
        [
          {
            "node": "394dead9-49af-4187-a589-1ff751e998f8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fea5d345-4d72-431d-bf9b-4165b9b6f605": {
      "main": [
        [
          {
            "node": "0fccfd48-ca42-45ea-9eb0-75f49f4572f6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f0f95702-4636-4810-9e42-4b3af5c13d9a": {
      "main": [
        [
          {
            "node": "63cb6eb3-6693-4b34-84c9-4f6b39872752",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "627fad9c-407d-496a-b0ff-5b58055c666c": {
      "main": [
        [
          {
            "node": "e0efd839-dc9e-4d0b-b602-a6ead9e8d679",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "63cb6eb3-6693-4b34-84c9-4f6b39872752": {
      "main": [
        [
          {
            "node": "0d29f755-5ed2-4005-9eed-acbc9c8ff8d1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0fccfd48-ca42-45ea-9eb0-75f49f4572f6": {
      "main": [
        [],
        [
          {
            "node": "ba6ea0f9-d1d7-4f22-a817-764335132a1c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "394dead9-49af-4187-a589-1ff751e998f8": {
      "main": [
        [
          {
            "node": "0fccfd48-ca42-45ea-9eb0-75f49f4572f6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ba6ea0f9-d1d7-4f22-a817-764335132a1c": {
      "main": [
        [
          {
            "node": "f0f95702-4636-4810-9e42-4b3af5c13d9a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e0efd839-dc9e-4d0b-b602-a6ead9e8d679": {
      "main": [
        [
          {
            "node": "fea5d345-4d72-431d-bf9b-4165b9b6f605",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "415fa2d1-532f-4a46-8634-8099f820816e": {
      "main": [
        [
          {
            "node": "627fad9c-407d-496a-b0ff-5b58055c666c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "90a47429-775e-43d5-acfb-b7f72f382894": {
      "main": [
        [
          {
            "node": "e0efd839-dc9e-4d0b-b602-a6ead9e8d679",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 인공지능, 마케팅

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수12
카테고리2
노드 유형9
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34