﻿# Same-length convolution does not preserve the speech target origin

A practical investigation of same-length convolution does not preserve the speech target origin, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-synthetic-scipy-same-convolution-speech-target-origin/
Language: en

## The generated-data scenario

A speech generator convolves a clean utterance with a causal room impulse response and requests same output length. It then pairs the result with the unchanged clean timeline. Equal sample counts look reassuring, but they do not prove aligned origins. The investigation asks which portion of the full convolution entered the artifact and how that crop affects supervised waveform and event targets.

## The generation mechanism

SciPy fftconvolve documents same as an output matching the first input length and centered relative to the full convolution. The inspected implementation takes a centered slice. This differs from an explicitly selected initial segment of a causal convolution. The crop location belongs to the signal transformation and must remain visible when the generated audio is aligned with an unprocessed reference.

## Define the dataset contract

Define the room response origin, desired propagation delay, full convolution interval and final retained interval. Distinguish intentionally delayed direct-path targets from source-time targets and from dereverberation targets. A fixed-length training window can legitimately remove some material, but its new origin must be declared. Do not infer alignment from the fact that both arrays can be stacked into the same batch.

## A step-by-step protocol

Prepare a sparse diagnostic signal with an isolated marker and a controlled impulse response. Compute the full result, identify the selected crop and trace marker positions into the exported waveform. Compare same with the explicitly intended causal window. Apply the corresponding time transformation to labels and references. Inspect boundary truncation independently from amplitude normalization, which cannot recover discarded timing information.

## Evidence required for acceptance

Acceptance requires the impulse-response identity, convolution mode, selected interval and a marker correspondence after serialization. Preserve both original and derived timing metadata. If the target retains direct-path delay, document that rather than automatically shifting every waveform to align peaks. A visually similar waveform or matching duration does not establish the intended sample-level relationship between input, mixture and training target.

## Failure cases and limits

This protocol does not claim all same convolutions are wrong or that removing delay is always desirable. The correct window depends on the task. Real room acoustics and intelligibility require additional evaluation, while a simulator response remains generated evidence. The proposed check isolates output-centering behavior and target-origin consistency without reporting separation quality, dereverberation improvement or an executed acoustic benchmark.

## Primary references and related reading

SciPy same takes a centered crop; preserve its offset when aligning synthetic reverberant speech. [SciPy full versus centered same convolution](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.fftconvolve.html); [SciPy convolution output centering implementation](https://raw.githubusercontent.com/scipy/scipy/main/scipy/signal/_signaltools.py).

The proposed investigation of scipy same convolution speech target origin is a proposed dataset-contract review; no production dataset was generated or evaluated. Related reading: [WHAMR targets: separating speakers and removing reverberation are different objectives](/journal/fg2-whamr-direct-path-target-reverberant-separation/); [Audio resampling for datasets: keep timestamps aligned when sample counts change](/journal/data-guide-audio-resample-time-labels/).
