Dessix Moss Ttsd 文本生成器
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 9 个节点。主要使用 If, Set, Code, Wait, HttpRequest 等节点。 使用Replicate Moss-TTSD将对话脚本转换为自然语音
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "wRLKhqUiZr5LUfJr",
"meta": {
"instanceId": "6200c8a3bb4b33a470de8038f3ac6dde523cbcd4c78ce87d817a034e96ed5532"
},
"name": "Dessix Moss Ttsd Text Generator",
"tags": [
{
"id": "JnEqJJmJ9wvCFwLu",
"name": "AI"
},
{
"id": "K4UWXFkxSidQvvkR",
"name": "Text"
}
],
"nodes": [
{
"id": "93a834d4-283b-4591-863d-36d92f99248d",
"name": "点击\"执行\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
720,
380
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3f36e2fc-a51e-4727-a049-7c826f3e7e3b",
"name": "设置 API 密钥",
"type": "n8n-nodes-base.set",
"position": [
940,
380
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "64cd57c7-2224-48a6-88df-c37b310f8eb3",
"name": "replicate_api_key",
"type": "string",
"value": "YOUR_REPLICATE_API_KEY"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "c5c1e12f-39d5-4b9b-88f0-2f60d732de81",
"name": "创建预测",
"type": "n8n-nodes-base.httpRequest",
"position": [
1160,
380
],
"parameters": {
"url": "https://api.replicate.com/v1/predictions",
"method": "POST",
"options": {
"timeout": 60000
},
"jsonBody": "{\n \"version\": \"2026fb3e22b7faa6b667ad396b86462a1b85313d18a936b458455c44e9c9cc76\",\n \"input\": {\n \"seed\": 42,\n \"use_normalize\": true\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ 'Bearer ' + $('Set API Key').item.json.replicate_api_key }}"
},
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "d8a5e6e1-8e95-49f3-83d5-4729c8f3b91a",
"name": "提取预测 ID",
"type": "n8n-nodes-base.code",
"position": [
1380,
380
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "// Extract prediction ID and initial status\\nconst prediction = $input.item.json;\\nconst predictionId = prediction.id;\\nconst initialStatus = prediction.status;\\n\\n// Store the prediction ID for polling\\nreturn {\\n predictionId: predictionId,\\n status: initialStatus,\\n predictionUrl: `https://api.replicate.com/v1/predictions/${predictionId}`\\n};"
},
"typeVersion": 2
},
{
"id": "e5c7d8f2-1234-4567-890a-bcdef1234567",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
1600,
380
],
"parameters": {
"unit": "seconds",
"amount": 2
},
"typeVersion": 1
},
{
"id": "f6d8e9f3-2345-5678-901b-cdef23456789",
"name": "检查预测状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
1820,
380
],
"parameters": {
"url": "={{ $json.predictionUrl }}",
"options": {},
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ 'Bearer ' + $('Set API Key').item.json.replicate_api_key }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "a7e9f0a4-3456-6789-012c-def345678901",
"name": "检查是否完成",
"type": "n8n-nodes-base.if",
"position": [
2040,
380
],
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ $json.status }}",
"value2": "succeeded",
"operation": "equal"
}
]
}
},
"typeVersion": 1
},
{
"id": "b8f0a1b5-4567-7890-123d-ef4567890123",
"name": "处理结果",
"type": "n8n-nodes-base.code",
"position": [
2260,
280
],
"parameters": {
"mode": "runOnceForEachItem",
"jsCode": "// Process the completed prediction\\nconst result = $input.item.json;\\n\\nreturn {\\n status: result.status,\\n output: result.output,\\n metrics: result.metrics,\\n created_at: result.created_at,\\n completed_at: result.completed_at,\\n model: 'dessix/moss-ttsd',\\n text_url: result.output\\n};"
},
"typeVersion": 2
},
{
"id": "71c5e20e-17f6-4cc5-ac38-6c12bb1e2154",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
240
],
"parameters": {
"width": 437.91315553899017,
"height": 350.56206896551737,
"content": "## Dessix Moss Ttsd Text Generator\\n\\nThis workflow uses the **dessix/moss-ttsd** model from Replicate to generate text content.\\n\\n### Setup\\n1. Add your Replicate API key\\n2. Configure the input parameters\\n3. Run the workflow\\n\\n### Model Details\\n- **Type**: Text Generation\\n- **Provider**: dessix\\n- **Required Fields**: None"
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "98234567-89ab-cdef-0123-456789abcdef",
"connections": {
"Wait": {
"main": [
[
{
"node": "Check Prediction Status",
"type": "main",
"index": 0
}
]
]
},
"Set API Key": {
"main": [
[
{
"node": "Create Prediction",
"type": "main",
"index": 0
}
]
]
},
"Check If Complete": {
"main": [
[
{
"node": "Process Result",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Create Prediction": {
"main": [
[
{
"node": "Extract Prediction ID",
"type": "main",
"index": 0
}
]
]
},
"Extract Prediction ID": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "Set API Key",
"type": "main",
"index": 0
}
]
]
},
"Check Prediction Status": {
"main": [
[
{
"node": "Check If Complete",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
字节跳动/Seedream-3 - 图像生成器
字节跳动 Seedream 3:文本到图像转换模板
If
Set
Code
+4
15 节点Yaron Been
内容创作
ibm-granite/granite-speech-3.3-8b - 文本生成器
通过Replicate API使用IBM Granite 3.3 8B模型将语音转换为文本
If
Set
Code
+4
15 节点Yaron Been
内容创作
moicarmonas/2ndmoises_generator - 其他生成器
使用2nd Moises生成器和Replicate从文本提示创建图片
If
Set
Code
+4
15 节点Yaron Been
内容创作
moicarmonas/3rdmoises_generator_oldversion - 其他生成器
使用3rd Moises生成器和Replicate从文本提示创建图片
If
Set
Code
+4
15 节点Yaron Been
内容创作
alitas126/alitas2 - 其他生成器
使用Alitas2模型和Replicate从文本提示创建图片
If
Set
Code
+4
15 节点Yaron Been
内容创作
izzaanel/betia - 其他生成器
使用Betia和Replicate从文本提示创建图片
If
Set
Code
+4
15 节点Yaron Been
内容创作
工作流信息
难度等级
中级
节点数量9
分类2
节点类型7
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos
外部链接
在 n8n.io 查看 →
分享此工作流