Voice Activity Detector - Speech & Silence Segments (VAD)
Pricing
from $1.00 / 1,000 file processeds
Voice Activity Detector - Speech & Silence Segments (VAD)
Detect speech and silence in any audio or video URL with Silero VAD running on CPU. Get timestamped speech segments, speech ratio and pauses, or download the audio with silence removed or long pauses shortened. No external APIs.
Pricing
from $1.00 / 1,000 file processeds
Rating
0.0
(0)
Developer
Camp8 fr0
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Voice Activity Detector (Silero VAD): Speech & Silence Detection, Silence Remover
Detect where people speak in any audio or video file. Paste links to MP3, WAV, M4A, MP4, WEBM or other media and get timestamped speech segments, the speech-to-silence ratio, every pause, leading and trailing silence, and optionally a new audio file with the silence removed or the long pauses shortened. The detection runs the open-source Silero VAD neural network inside the Actor on CPU, so no audio is sent to any third-party API.
What does Voice Activity Detector do?
- Downloads each audio or video file from its URL and extracts the audio track with ffmpeg (16 kHz mono for analysis)
- Runs Silero VAD v6 (ONNX) on every 32 ms frame to get a speech probability
- Turns the probabilities into clean speech segments with the same hysteresis logic as the official
get_speech_timestamps(threshold, minimum speech and silence duration, padding, optional maximum segment length) - Reports speech ratio, total speech and silence time, leading/trailing silence, longest pause and a full silence list
- Optionally renders a silence-trimmed audio file from the original-quality audio: speech only, or long pauses shortened to a length you choose, with short fades at every cut so there are no clicks
Key features
- Neural VAD, not a volume gate: Silero VAD tells speech apart from music, noise, breathing and room tone, so it works on real recordings where a dB threshold fails
- Any audio or video format ffmpeg can read: MP3, WAV, M4A, AAC, OGG, OPUS, FLAC, MP4, MOV, MKV, WEBM, AVI...
- Language-independent: trained on speech in 6,000+ languages
- Fast: about 200x faster than real time on one CPU core (an hour of audio in about 20 seconds)
- Silence remover / pause shortener with MP3, M4A, Opus, FLAC or WAV output
- Tunable: threshold, min speech, min silence, padding and max segment length
- Private: everything runs inside the Actor container
- HTTP API (Standby mode): call it like a REST endpoint and get the segments in the response
- Fair billing: pay per file and per audio minute; failed files are free
Use cases
- Speech-to-text pre-processing: cut long recordings into speech chunks before Whisper or another ASR, skip silence and save compute
- Podcast and video editing: remove dead air and shorten long pauses automatically (jump-cut style)
- Call center and meeting analytics: talk time, silence ratio, longest pause, response gaps
- Dataset cleaning: drop clips without speech, trim leading/trailing silence, measure speech content of audio datasets
- Voice-note and voicemail triage: detect empty or silent recordings
- Subtitle timing: get speech regions to align captions
- Lecture and e-learning: shorten pauses in screen-recording voice-overs
How to use Voice Activity Detector
In Apify Console
- Click Try for free or Start.
- Paste one or more direct links to audio or video files into Audio / video URLs.
- Optionally choose an Output audio file: Remove silence or Shorten long pauses.
- Click Start. Each file appears in the Speech segments table; trimmed audio files are listed under Trimmed audio files.
Via the Apify API
curl -X POST "https://api.apify.com/v2/acts/freecamp008~voice-activity-detector/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"mediaUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"],"audioOutput": "shortenPauses","maxPauseMs": 400,"outputFormat": "mp3"}'
Or use the apify-client for JavaScript or Python and read the results from the run's default dataset.
Standby mode (instant HTTP endpoint)
The Actor also runs as a persistent web server, which saves the start-up time on every call. Send the input fields as query parameters (arrays comma-separated) or as a JSON body. The response is { "count": n, "items": [...] }.
# GETcurl "https://freecamp008--voice-activity-detector.apify.actor/?token=YOUR_API_TOKEN&mediaUrls=https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav&threshold=0.5&includeSilences=false"# POSTcurl -X POST "https://freecamp008--voice-activity-detector.apify.actor/?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"mediaUrls": ["https://example.com/episode.mp3"], "audioOutput": "removeSilence", "speechPadMs": 150}'
AI agents can call this Actor and pay per use with x402 through Apify. No Apify account or subscription is needed: the agent pays for each call.
Input example
{"mediaUrls": ["https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"],"audioOutput": "shortenPauses","maxPauseMs": 500,"outputFormat": "mp3","threshold": 0.5,"minSpeechDurationMs": 250,"minSilenceDurationMs": 100,"speechPadMs": 30,"maxSpeechDurationSec": 0,"includeSilences": true,"maxDurationMinutes": 180}
| Field | Description | Default |
|---|---|---|
mediaUrls | Direct links to audio/video files | required |
audioOutput | none, removeSilence (speech only) or shortenPauses | none |
maxPauseMs | Pauses longer than this are shortened to it (shortenPauses) | 500 |
outputFormat | mp3, m4a, opus, flac or wav | mp3 |
threshold | Speech probability threshold (0-1); speech ends below threshold - 0.15 | 0.5 |
minSpeechDurationMs | Ignore speech bursts shorter than this | 250 |
minSilenceDurationMs | Silence needed to end a segment | 100 |
speechPadMs | Padding added around each segment | 30 |
maxSpeechDurationSec | Split longer segments at the best pause (0 = off) | 0 |
includeSilences | Add the silences array | true |
maxDurationMinutes | Analyze and bill at most this many minutes per file | 180 |
Output example
One dataset item per file (arrays shortened):
{"mediaUrl": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav","durationSec": 11,"analyzedSec": 11,"billedMinutes": 1,"hasSpeech": true,"speechRatio": 0.673,"speechSec": 7.4,"silenceSec": 3.6,"segmentCount": 5,"firstSpeechSec": 0.29,"lastSpeechEndSec": 10.526,"leadingSilenceSec": 0.29,"trailingSilenceSec": 0.47,"longestSpeechSec": 2.33,"longestSilenceSec": 1.06,"averageSpeechSegmentSec": 1.48,"segments": [{ "start": 0.29, "end": 2.27, "duration": 1.98, "confidence": 0.76 },{ "start": 3.33, "end": 3.774, "duration": 0.444, "confidence": 0.47 }],"silences": [{ "start": 0, "end": 0.29, "duration": 0.29 },{ "start": 2.27, "end": 3.33, "duration": 1.06 }],"audioOutput": "shortenPauses","outputAudioUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/pauses-shortened-8ff172c0ce31fce3","outputFormat": "mp3","outputDurationSec": 9.6,"outputSizeBytes": 193350,"removedSec": 1.4,"settings": { "threshold": 0.5, "minSpeechDurationMs": 250, "minSilenceDurationMs": 100, "speechPadMs": 30, "maxSpeechDurationSec": 0 },"processingSec": 1.47,"truncated": false,"truncatedReason": null}
All times are in seconds from the start of the file. confidence is the mean speech probability inside the segment. speechSec includes the padding. When a file is longer than maxDurationMinutes, or the remaining run budget doesn't cover the whole file, only the beginning is analyzed and the item has truncated: true. When a file can't be downloaded or decoded, you get { "mediaUrl", "error", "isError": true } for it, and that item is free.
Pricing
This Actor uses pay-per-event pricing:
| Event | Price | Per 1,000 |
|---|---|---|
file-processed: one audio or video file analyzed | $0.001 | $1 per 1,000 files |
audio-minute: one started minute of analyzed audio (rounded up per file) | $0.002 | $2 per 1,000 minutes |
Examples: a 1-hour podcast costs 60 × $0.002 + $0.001 = $0.121, including the trimmed audio file. 1,000 voice notes of 20 seconds each cost 1,000 × ($0.002 + $0.001) = $3.
Failed downloads and unreadable files are not charged. Apify platform usage (compute units) is billed separately, according to the memory you choose and how long the run takes. 1 GB of memory is enough for most files.
FAQ
How accurate is it?
Silero VAD is one of the most accurate open-source voice activity detectors and is widely used in front of Whisper and other speech recognizers. On clean speech, segment boundaries are within a few tens of milliseconds of the real speech edges. In our tests it found no speech in solo piano music and in synthetic noise, while matching the pauses of an old radio speech to within about 30 ms. Singing is often detected as speech, and loud background chatter counts as speech too: raise the threshold (0.6-0.8) if you only want a dominant foreground voice.
How do I get sentence-level chunks instead of word groups?
Increase minSilenceDurationMs to 500-1000 ms. To cap chunk length for speech-to-text (e.g. 30 s for Whisper), set maxSpeechDurationSec; long segments are then split at the best pause.
What do "Remove silence" and "Shorten long pauses" produce?
Remove silence keeps only the speech segments (with speechPadMs padding on each side) and joins them. Shorten long pauses keeps the whole recording but cuts every pause longer than maxPauseMs down to that length, which sounds natural. Both are cut sample-accurately from the original-quality audio (up to 48 kHz stereo) with 8 ms fades. Video inputs produce an audio-only file; the video track is not re-cut.
What are the limits?
Each file is capped at maxDurationMinutes (default 180, up to 600) and 2 GB when an output audio file is requested. Analysis takes roughly 5 ms of CPU per second of audio, so even multi-hour files finish quickly. The link must be a direct media URL; YouTube or podcast web pages that embed a player don't work.
Which languages work? Any language. Silero VAD detects human speech, not words, and was trained on thousands of languages.
Is my audio private? Yes. The Silero model runs inside the Actor container. Your audio is never sent to any third-party service; results and trimmed files are stored only in your own Apify storage.
Which licenses apply? Silero VAD is MIT-licensed (snakers4/silero-vad). ffmpeg is used as a separate LGPL/GPL program from Debian, and onnxruntime is MIT.
Is it legal to analyze audio and video? Detecting speech in media is legal when you own the content, have permission, or the content is public domain or openly licensed. Respect copyright and privacy laws, including consent rules for recorded conversations in your jurisdiction.