Générateur d'effets sonores

Intermédiaire

Ceci est unAIworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme If, Wait, FormTrigger, GoogleDrive, HttpRequest, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Utiliser CassetteAI pour générer des effets sonores réalistes et les sauvegarder dans Google Drive

Prérequis
  • Informations d'identification Google Drive API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "6MbJjFFQ8e6Lq8Rw",
  "meta": {
    "instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
    "templateCredsSetupCompleted": true
  },
  "name": "Sound Effects Generator",
  "tags": [],
  "nodes": [
    {
      "id": "4183ba34-e5a7-4ee1-866a-e6e725b51589",
      "name": "Vérifier l'état",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        660
      ],
      "parameters": {
        "url": "=https://queue.fal.run/cassetteai/sound-effects-generator/requests/{{ $('Create audio').item.json.request_id }}/status ",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "daOZafXpRXLtoLUV",
          "name": "Fal.run API"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "d2b00c1e-be8b-4aeb-8b56-85659be7b607",
      "name": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -100
      ],
      "parameters": {
        "color": 3,
        "width": 740,
        "height": 180,
        "content": "# Sound Effects Generator\n\nCreate stunningly realistic sound effects in seconds - CassetteAI's Sound Effects Model generates high-quality SFX up to 30 seconds long in just 1 second of processing time and save the audio file (.wav) on Google Drive\n\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c3110e24-b0c1-440b-8971-fdfe3f065b72",
      "name": "Terminé ?",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        660
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "383d112e-2cc6-4dd4-8985-f09ce0bd1781",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "COMPLETED"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5ae7f107-0350-446b-90d3-13ea67969969",
      "name": "Note adhésive5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        320
      ],
      "parameters": {
        "width": 740,
        "height": 100,
        "content": "## STEP 2 - MAIN FLOW\nStart the workflow and type the prompt and the duration (in seconds, max 30)."
      },
      "typeVersion": 1
    },
    {
      "id": "c3872c07-05fd-4124-97f2-843365cfeb3b",
      "name": "Note adhésive6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        120
      ],
      "parameters": {
        "width": 740,
        "content": "## STEP 1 - GET API KEY (YOURAPIKEY)\nCreate an account [here](https://fal.ai/) and obtain API KEY.\nIn the node \"Create Image\" set \"Header Auth\" and set:\n- Name: \"Authorization\"\n- Value: \"Key YOURAPIKEY\""
      },
      "typeVersion": 1
    },
    {
      "id": "c3189915-a6a5-4a1e-973c-d0552d1b95cb",
      "name": "Note adhésive7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        600
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set API Key created in Step 2"
      },
      "typeVersion": 1
    },
    {
      "id": "2de370c0-4c08-4154-8f93-c2856b983466",
      "name": "À la soumission du formulaire",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        80,
        660
      ],
      "webhookId": "960dd363-daa5-47d2-b5dc-660c93fb5b05",
      "parameters": {
        "options": {},
        "formTitle": "Sound Effects Generator",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Prompt",
              "requiredField": true
            },
            {
              "fieldType": "number",
              "fieldLabel": "Duration (max 30 sec.)",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Sound Effects Generator"
      },
      "typeVersion": 2.2
    },
    {
      "id": "83e7b9fa-13cd-48b2-81e3-2d9fd0f51410",
      "name": "Attendre 10 sec.",
      "type": "n8n-nodes-base.wait",
      "position": [
        580,
        660
      ],
      "webhookId": "70185285-4ebd-45a3-9e49-bc0b99120fe9",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "8264d6a6-d174-474f-804c-17859327e2d1",
      "name": "Créer l'audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        660
      ],
      "parameters": {
        "url": "https://queue.fal.run/cassetteai/sound-effects-generator",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n     \"prompt\": \"{{ $json.Prompt }}\",\n     \"duration\": {{ $json['Duration (max 30 sec.)'] }}\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "daOZafXpRXLtoLUV",
          "name": "Fal.run API"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "8b00e3d3-9d8a-4d0d-8971-1666c3158c66",
      "name": "Obtenir l'URL audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        100,
        1000
      ],
      "parameters": {
        "url": "=https://queue.fal.run/cassetteai/sound-effects-generator/requests/{{ $json.request_id }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "daOZafXpRXLtoLUV",
          "name": "Fal.run API"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "cda508d2-2f10-4d48-8196-f17e20dbb416",
      "name": "Téléverser l'audio",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        560,
        1000
      ],
      "parameters": {
        "name": "={{ $now.format('yyyyLLddHHmmss') }}.{{ $json.audio_file.file_name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
          "cachedResultName": "Fal.run"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "HEy5EuZkgPZVEa9w",
          "name": "Google Drive account (n3w.it)"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "ca095dda-3ac1-4e08-ad67-c4cdea232271",
      "name": "Obtenir le fichier audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        1000
      ],
      "parameters": {
        "url": "={{ $json.audio_file.url }}",
        "options": {}
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d6d655d2-8ec6-4807-b17e-fea5d18a9f80",
  "connections": {
    "c3110e24-b0c1-440b-8971-fdfe3f065b72": {
      "main": [
        [
          {
            "node": "8b00e3d3-9d8a-4d0d-8971-1666c3158c66",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "83e7b9fa-13cd-48b2-81e3-2d9fd0f51410",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4183ba34-e5a7-4ee1-866a-e6e725b51589": {
      "main": [
        [
          {
            "node": "c3110e24-b0c1-440b-8971-fdfe3f065b72",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8264d6a6-d174-474f-804c-17859327e2d1": {
      "main": [
        [
          {
            "node": "83e7b9fa-13cd-48b2-81e3-2d9fd0f51410",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cda508d2-2f10-4d48-8196-f17e20dbb416": {
      "main": [
        []
      ]
    },
    "83e7b9fa-13cd-48b2-81e3-2d9fd0f51410": {
      "main": [
        [
          {
            "node": "4183ba34-e5a7-4ee1-866a-e6e725b51589",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8b00e3d3-9d8a-4d0d-8971-1666c3158c66": {
      "main": [
        [
          {
            "node": "ca095dda-3ac1-4e08-ad67-c4cdea232271",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ca095dda-3ac1-4e08-ad67-c4cdea232271": {
      "main": [
        [
          {
            "node": "cda508d2-2f10-4d48-8196-f17e20dbb416",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2de370c0-4c08-4154-8f93-c2856b983466": {
      "main": [
        [
          {
            "node": "8264d6a6-d174-474f-804c-17859327e2d1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Intelligence Artificielle

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds12
Catégorie1
Types de nœuds6
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34