8
n8n 中文网amn8n.com

自动化播客制作:文档到动态音频

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 19 个节点。主要使用 Set, SplitOut, Aggregate, GoogleDrive, HttpRequest 等节点。 使用GPT-4o和OpenAI TTS将文档转换为播客音频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Uw2ldaC4MMBk1Hp5",
  "meta": {
    "instanceId": "13d96e1ebd7901d1ed300d36db3a4447107e9ad60df51fe711e45683875362aa",
    "templateCredsSetupCompleted": true
  },
  "name": "自动化播客制作:文档到动态音频",
  "tags": [
    {
      "id": "88Rkm7VaAFefsT34",
      "name": "AI",
      "createdAt": "2025-05-06T22:52:26.053Z",
      "updatedAt": "2025-05-06T22:52:26.053Z"
    },
    {
      "id": "4MwMqoYXQeLzfpT7",
      "name": "Podcast",
      "createdAt": "2025-07-18T11:41:58.652Z",
      "updatedAt": "2025-07-18T11:41:58.652Z"
    },
    {
      "id": "6CpXJCvm5RUvG77h",
      "name": "Audio",
      "createdAt": "2025-07-18T11:42:01.178Z",
      "updatedAt": "2025-07-18T11:42:01.178Z"
    },
    {
      "id": "W0kwHUnhvUn7kmRu",
      "name": "Content Generation",
      "createdAt": "2025-05-12T20:58:58.942Z",
      "updatedAt": "2025-05-12T20:58:58.942Z"
    },
    {
      "id": "Lh7rPgYrwjn9e48m",
      "name": "Multimodal AI",
      "createdAt": "2025-05-12T20:59:10.487Z",
      "updatedAt": "2025-05-12T20:59:10.487Z"
    }
  ],
  "nodes": [
    {
      "id": "810de711-e7ba-4612-9c40-033882e36da1",
      "name": "Google Drive触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -180,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "58c0461e-ffaf-437f-a1f7-c3f3bf352a3b",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        40,
        -120
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "3568824e-78c9-417f-9aba-bacd15efe55f",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        440,
        140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6dc0b5ed-0578-4cd7-93bf-c075c59b6850",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        640,
        140
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1470abd5-1328-4ec2-a0b4-20a0133c28a8",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1060,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "34faf382-cf7d-4002-833e-c4f735d57473",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -560
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "e951a8f4-e652-4b87-b154-b5e305d9ed94",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        -560
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "48c39890-9dee-48a6-9a72-ef487e0baeaf",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        -560
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "02dd8a82-1621-4681-b8c6-982d148bfd10",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -580
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "3ef8027f-2322-4b70-8aae-da25884fcf80",
      "name": "从文本生成播客脚本",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        480,
        -120
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "7b75fe94-7016-4392-b515-1a038064bd9b",
      "name": "确定参与者",
      "type": "n8n-nodes-base.set",
      "position": [
        840,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0bdbcd98-a501-4afe-b32a-cb2d1b643728",
      "name": "使用首选语音生成演讲者音频",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1280,
        -120
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "773556dd-4108-4f4b-8c15-90cd21e018a4",
      "name": "将文件转换为Base 64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1500,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "05ccf0c1-be7a-4447-b330-4a4ccb947374",
      "name": "将文件转换为文本",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        260,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f6479353-3cea-4644-bfcf-6e5e2722ca8b",
      "name": "将文件存储到MongoDB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1720,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8ad23362-4a8a-445c-a5fe-32ce29f09408",
      "name": "将ID转换为URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1940,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "068915e6-2d89-434a-902f-83557642e86a",
      "name": "将URL合并为有效载荷",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2160,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "22356f16-bdc1-41db-a4e1-2010e27dcd4b",
      "name": "生成播客",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2380,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "467bb334-f8ae-47cb-83c5-89ea956b75b0",
      "name": "将文件上传到Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2600,
        -120
      ],
      "parameters": {},
      "typeVersion": 3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e2d5dfce-3059-4acd-b5ad-6f66cb2dafc2",
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Generate Speaker Audios with Prefered Voices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Convert File to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Podcast": {
      "main": [
        [
          {
            "node": "Upload File to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Podcast Script from Text",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Convert IDs to URL": {
      "main": [
        [
          {
            "node": "Combine URLs into Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert File to Text": {
      "main": [
        [
          {
            "node": "Generate Podcast Script from Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Determine Participants": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Files in MongoDB": {
      "main": [
        [
          {
            "node": "Convert IDs to URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert File to Base 64": {
      "main": [
        [
          {
            "node": "Store Files in MongoDB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Podcast Script from Text",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Combine URLs into Payload": {
      "main": [
        [
          {
            "node": "Generate Podcast",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Podcast Script from Text": {
      "main": [
        [
          {
            "node": "Determine Participants",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Speaker Audios with Prefered Voices": {
      "main": [
        [
          {
            "node": "Convert File to Base 64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量19
分类2
节点类型12
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

Automation Developer with 3+ years building innovative solutions on UiPath, Power Platform, and n8n, also with a strong background in both API development and integration. Now specializing in the creation and implementation of AI Agents.

外部链接
在 n8n.io 查看

分享此工作流