Created
November 20, 2023 14:14
-
-
Save Disane87/a225f23dc9fff0938afb94deb5eb4792 to your computer and use it in GitHub Desktop.
Elevenlabs n8n voice synth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Create Voice Synth with ElevenLabs", | |
"nodes": [ | |
{ | |
"parameters": { | |
"method": "POST", | |
"url": "https://api.elevenlabs.io/v1/text-to-speech/pNInz6obpgDQGcFmaJgB", | |
"authentication": "genericCredentialType", | |
"genericAuthType": "httpHeaderAuth", | |
"sendQuery": true, | |
"queryParameters": { | |
"parameters": [ | |
{ | |
"name": "output_format", | |
"value": "mp3_44100_128" | |
}, | |
{ | |
"name": "optimize_streaming_latency", | |
"value": "0" | |
} | |
] | |
}, | |
"sendHeaders": true, | |
"headerParameters": { | |
"parameters": [ | |
{ | |
"name": "accept", | |
"value": "audio/mpeg" | |
} | |
] | |
}, | |
"sendBody": true, | |
"specifyBody": "json", | |
"jsonBody": "={{ $json.elevenlabs }}", | |
"options": { | |
"response": { | |
"response": { | |
"responseFormat": "file" | |
} | |
} | |
} | |
}, | |
"id": "a519ad75-c5c5-45a8-93c2-e6b4bfd37078", | |
"name": "Elevenlabs Voice Synth", | |
"type": "n8n-nodes-base.httpRequest", | |
"typeVersion": 4.1, | |
"position": [ | |
600, | |
720 | |
], | |
"alwaysOutputData": true, | |
"credentials": { | |
"httpHeaderAuth": { | |
"id": "IQED6qTKnerWLKdi", | |
"name": "Elevenlabs Creds" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"fields": { | |
"values": [ | |
{ | |
"name": "elevenlabs.model_id", | |
"stringValue": "eleven_multilingual_v2" | |
}, | |
{ | |
"name": "elevenlabs.voice_settings.stability", | |
"type": "numberValue", | |
"numberValue": "0.81" | |
}, | |
{ | |
"name": "elevenlabs.voice_settings.similarity_boost", | |
"type": "numberValue", | |
"numberValue": "0.31" | |
}, | |
{ | |
"name": "elevenlabs.voice_settings.style", | |
"type": "numberValue", | |
"numberValue": "0" | |
}, | |
{ | |
"name": "elevenlabs.voice_settings.use_speaker_boost", | |
"type": "booleanValue" | |
}, | |
{ | |
"name": "elevenlabs.text", | |
"stringValue": "={{ $json.text }}" | |
} | |
] | |
}, | |
"include": "none", | |
"options": {} | |
}, | |
"id": "c118481e-8b87-491e-bffa-b54ebe447022", | |
"name": "Settings", | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 3.2, | |
"position": [ | |
400, | |
720 | |
] | |
}, | |
{ | |
"parameters": {}, | |
"id": "9f9530eb-0e88-42ca-82a3-fffc0c1a7638", | |
"name": "Execute Workflow Trigger", | |
"type": "n8n-nodes-base.executeWorkflowTrigger", | |
"typeVersion": 1, | |
"position": [ | |
-80, | |
840 | |
] | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"boolean": [ | |
{ | |
"value1": "={{ !!$json.text }}", | |
"value2": true | |
} | |
] | |
} | |
}, | |
"id": "490875de-1593-4a4f-8211-bb8cb09e795a", | |
"name": "IF", | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 1, | |
"position": [ | |
140, | |
840 | |
] | |
}, | |
{ | |
"parameters": { | |
"formTitle": "Elevenlabs", | |
"formFields": { | |
"values": [ | |
{ | |
"fieldLabel": "Text", | |
"requiredField": true | |
} | |
] | |
}, | |
"options": { | |
"formSubmittedText": "Your response has been recorded" | |
} | |
}, | |
"id": "974e174c-83af-4a87-9d80-30918179b8f3", | |
"name": "n8n Form Trigger", | |
"type": "n8n-nodes-base.formTrigger", | |
"typeVersion": 1, | |
"position": [ | |
-260, | |
700 | |
], | |
"webhookId": "d8ec948b-bb0e-4252-8cb7-2e24cdbd36e6", | |
"disabled": true | |
}, | |
{ | |
"parameters": { | |
"fields": { | |
"values": [ | |
{ | |
"name": "text", | |
"stringValue": "={{ $json.Text }}" | |
} | |
] | |
}, | |
"include": "none", | |
"options": {} | |
}, | |
"id": "a6d1d97d-599f-4758-8b83-53ca01348252", | |
"name": "Edit Fields", | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 3.2, | |
"position": [ | |
-80, | |
700 | |
], | |
"disabled": true | |
} | |
], | |
"pinData": { | |
"Execute Workflow Trigger": [ | |
{ | |
"json": { | |
"text": "My lovely first item" | |
} | |
} | |
] | |
}, | |
"connections": { | |
"Settings": { | |
"main": [ | |
[ | |
{ | |
"node": "Elevenlabs Voice Synth", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Execute Workflow Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "IF", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"IF": { | |
"main": [ | |
[ | |
{ | |
"node": "Settings", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"n8n Form Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "Edit Fields", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Edit Fields": { | |
"main": [ | |
[ | |
{ | |
"node": "IF", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "ab0112c8-a33d-4ba1-a279-f48733c8a40c", | |
"id": "mKnaZfB15vbGjUcn", | |
"meta": { | |
"instanceId": "761d633ee74fcfc6efd3e1069bbd42090749ffbd2117f06ede31d6207e0dc742" | |
}, | |
"tags": [ | |
{ | |
"createdAt": "2023-11-13T21:59:27.172Z", | |
"updatedAt": "2023-11-13T21:59:27.172Z", | |
"id": "YBlEjkABVrsYYXP2", | |
"name": "Blog" | |
}, | |
{ | |
"createdAt": "2023-11-13T21:59:20.658Z", | |
"updatedAt": "2023-11-13T21:59:20.658Z", | |
"id": "pVfbkSxwCHM3PFOF", | |
"name": "Ghost" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment