{"product_id":"n8n-ffmpeg-silence-detect-workflow-speech-pause-segments","title":"n8n FFmpeg Silence Detect Workflow: Speech \u0026 Pause Segments","description":"\u003ch3\u003eInstantly detect silence and map speech segments in your audio with n8n + FFmpeg\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow uploads an audio file, runs FFmpeg’s \u003cstrong\u003esilencedetect\u003c\/strong\u003e filter to measure pauses, and returns a \u003cstrong\u003eJSON report\u003c\/strong\u003e showing silence intervals plus derived \u003cstrong\u003espeech vs. pause\u003c\/strong\u003e totals (including percent silent).\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives input via an n8n form\u003c\/strong\u003e: audio file upload, a silence threshold (dB), and a minimum silence duration (seconds).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a per-run temporary folder\u003c\/strong\u003e and normalizes settings (file path, threshold dB, minimum silence seconds) for reliable FFmpeg access.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves the uploaded audio to disk\u003c\/strong\u003e so FFmpeg can read it by filesystem path.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns FFmpeg with the silencedetect filter\u003c\/strong\u003e to log \u003cem\u003esilence_start\u003c\/em\u003e and \u003cem\u003esilence_end\u003c\/em\u003e events \u003cstrong\u003ewithout rendering an output audio file\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses FFmpeg stderr\u003c\/strong\u003e to extract the total duration and all detected silence intervals.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalculates derived speech segments\u003c\/strong\u003e as the non-silent gaps between silences, then returns a summary JSON including:\n    \u003cul\u003e\n      \u003cli\u003esilence count\u003c\/li\u003e\n      \u003cli\u003esilent seconds vs. speech seconds\u003c\/li\u003e\n      \u003cli\u003epercent silent\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAnalyze recorded calls, interviews, or podcasts to quantify how much time is spent paused.\u003c\/li\u003e\n  \u003cli\u003ePre-check audio quality before transcription by identifying long silence gaps.\u003c\/li\u003e\n  \u003cli\u003eSupport media indexing or analytics by segmenting “speech vs. pause” based on configurable dB threshold and minimum pause length.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSelf-hosted n8n required\u003c\/strong\u003e (workflow relies on \u003cstrong\u003eExecute Command\u003c\/strong\u003e, not available on n8n Cloud).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInstall FFmpeg\u003c\/strong\u003e on the same machine\/container and ensure the \u003ccode\u003effmpeg\u003c\/code\u003e binary is on your PATH.\u003c\/li\u003e\n  \u003cli\u003eUse file access settings so n8n can write to \u003ccode\u003e\/tmp\u003c\/code\u003e (e.g., set \u003ccode\u003eN8N_RESTRICT_FILE_ACCESS_TO\u003c\/code\u003e to include \u003ccode\u003e\/tmp\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003eNodes\/logic used: \u003cstrong\u003eform trigger\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003esticky note\u003c\/strong\u003e, \u003cstrong\u003eread\/write file\u003c\/strong\u003e, and \u003cstrong\u003eexecute command\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eRequirement:\u003c\/strong\u003e standard FFmpeg with the \u003ccode\u003esilencedetect\u003c\/code\u003e filter (available in mainline builds).\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45872816160947,"sku":"N8N-18487","price":30.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/q91xevxs5yV9B59QfpA1z_C9Pdiulz.png?v=1787216698","url":"https:\/\/buyflowscripts.com\/products\/n8n-ffmpeg-silence-detect-workflow-speech-pause-segments","provider":"N8N Commerce","version":"1.0","type":"link"}