VAD found the speech. Why isn't that enough for subtitles?
A meeting recording starts with microphone adjustments, includes long pauses, and eventually reaches the discussion you need. Voice activity detection can mark where speech may occur. Think of those marks as annotations on the recording, not scissors: they do not transcribe words or remove any audio.
By the end, you should be able to interpret speech intervals, distinguish them from edited audio and subtitle timestamps, and identify the missing step in your application. This is a conceptual guide with no installation required. Its numbers are deliberately constructed illustrations, not model inference results.
1. Three questions, different capabilities
VAD, or voice activity detection, predicts which time regions contain speech. ASR, or automatic speech recognition, answers what was said. Subtitles also need a relationship between text and time; distinguishing participants requires speaker processing. VAD does not supply words or identify speakers. Two people taking turns without a gap can occupy a single speech interval.
In this ecosystem, FunASR is the toolkit that can call components such as VAD and recognition models. Fun-ASR and SenseVoice are model families, whose capabilities must be checked for the particular checkpoint. FunClip is an application for transcription, subtitles and clipping. This article concerns FSMN-VAD file-processing results in FunASR, not a universal format shared by other models, HTTP services or GGUF runtimes. See the official repository responsibilities.
If you only need text, start with the first-recording transcription tutorial. For subtitles or clipping, use the task-based selection guide. Do not add a second VAD stage simply to make a pipeline look complete: an existing pipeline may already segment audio, and repeated segmentation can alter context and timing.
2. Read the intervals: marks are not edits
In the FunASR FSMN-VAD file path, the returned record's value contains intervals shaped like [[start_ms, end_ms], ...]. Here start_ms and end_ms explain the two numbers; they are not additional response fields. Values are in milliseconds, relative to the beginning of the audio supplied for this processing operation. The implementation separates interval construction from the inference return value.
Imagine a 10-second recording and the intervals [[1000, 3000], [6000, 9000]]. These numbers are invented for explanation, not measured output from an audio file or model.
| Interval (ms) | Original position (s) | Duration |
|---|---|---|
| [1000, 3000] | 1.0 to 3.0 | 2.0 seconds |
| [6000, 9000] | 6.0 to 9.0 | 3.0 seconds |
Divide by 1000 to convert milliseconds into seconds: 6000 ms is 6 seconds. The second interval lasts (9000 − 6000) / 1000 = 3 seconds. This table says only where speech was marked. The original file still lasts 10 seconds, not 5. Editing happens only if another operation actually reads those spans, concatenates them and writes a new file.
Unmarked regions are not necessarily pure silence: they can contain background sound or missed quiet speech. A prediction cannot prove there is nothing important there. Keep the original and listen around boundaries, particularly quiet beginnings, word endings and speech over music.
3. After a cut, which clock are you using?
Suppose you save the second interval as a separate 3-second clip. That file starts at zero, but corresponds to 6 seconds into the original. If a downstream system supports timestamps and places a word at [0.4, 0.9] seconds inside the clip, its position in the original recording is [6.4, 6.9] seconds.
The mapping is: original time = clip-relative time + the clip's original start. This illustration assumes no speed change or time stretching, and an actual clip start of 6 seconds. If you retain extra audio around an interval, record the actual cut start, not the initial VAD boundary.
If you concatenate both intervals, the second one starts at 2 seconds in the concatenated file but at 6 seconds in the original. A single offset no longer works for the whole file. Keep a separate original-to-edited mapping for each piece. A timestamp crossing a join cannot be treated as one continuous span in the original recording.
For meeting subtitles or tracing a quotation back to its source, retaining the original and the mappings is usually the safer starting point. Removing pauses can be appropriate for an excerpt intended for listening. The important decision is which timeline the final subtitles or search results should address.
4. Why speech boundaries are not word alignment
Three seconds of speech could contain a sentence, part of a sentence, or overlapping voices. A VAD interval is not a semantic sentence and does not locate every word. Distributing text uniformly across that interval creates estimated timing; it is not model-produced word alignment.
- Searchable text: send audio matching the recognition interface's requirements, then check the transcript against the recording.
- Video subtitles: choose a model and interface that explicitly provide the required timestamps. Preserve timeline mappings, then check subtitle line breaks, display duration and synchronization. VAD segmentation does not replace text alignment.
- Search by participant: add suitable speaker processing. Anonymous labels distinguish participants within a recording; they are not real-world identities.
To determine whether segmentation saves time or reduces errors, compare complete pipelines on the same representative audio. Recognition cannot recover speech already discarded by a previous stage, and very short cuts can lose context. This article makes no real-time, accuracy-improvement or cost-saving promise from a single example.
5. File intervals are not streaming events
The explanation above concerns closed intervals after complete-file processing. In a stream, more audio is still arriving. The system may learn that speech has started before learning where it ends. This implementation can emit [start, -1], [-1, end], a complete interval or an empty list. Here -1 marks an endpoint not supplied in that event; it is not a negative crop position.
For a streaming application, follow the dedicated streaming VAD documentation for state, chunks and finalization. Do not use the file illustration as a streaming client protocol.
For AI agents: preserve the timeline before acting
These are application-side acceptance rules, not an SDK configuration object. This article runs no commands; an integration must verify the actual version's parameters and error behavior.
- Input: record an authorized real audio path, duration in seconds, sample rate in Hz, channel count, model ID, revision and runtime version. Do not infer the audio format from its extension or confuse renaming with resampling.
- Output: validate complete-file
valueas a nested numeric list with millisecond units. Before cropping, require finite endpoints in a sensible order,0 ≤ start < end, within the actual input duration. Preserve zero-length, out-of-range or unclosed results for investigation rather than silently repairing them and declaring the model correct. - Empty result: a successful operation returning
[]produced no speech intervals. That is not a network failure or proof that the file contains no speech. Keep the original, inspect input and detection conditions, and do not retry indefinitely. - Failure: distinguish an exception or nonzero exit from no detected speech. Preserve the error and use bounded retries only after addressing its cause. Do not silently switch models, upload audio, or pass an old output off as the new result.
- Permission: installing the toolkit and downloading model weights are separate operations. First loading may fetch additional files. Disconnected operation requires prepared and verified dependencies, weights and configuration. Downloads, external uploads, paid calls, overwriting and deleting audio each need appropriate authorization. The toolkit's license does not establish a model's terms.
Can you answer these three questions?
- The illustrative intervals total 5 seconds. Has the original shortened? No. Returning annotations does not write an edited file.
- Where is 0.4 seconds into the second clip on the original timeline? At 6.4 seconds, provided the actual cut started at 6 seconds and playback speed did not change.
- Does one VAD interval mean one sentence or one speaker? Neither.
This revision checks the pinned official implementation, repository responsibilities and illustrative arithmetic. It adds no model inference or performance evaluation. Unqualified timing and “everything tested” claims from the old article have been removed; illustrative numbers are not accuracy evidence.
Next, complete one recording to a local transcript. For subtitles or application integration, use the selection guide to check the specific capabilities you need. Decide which timeline you want before cutting the audio.