SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.07675 · 2024

Multichannel Long-Term Streaming Neural Speech Enhancement for Static and Moving Speakers

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.07675.json · badge: /api/ran/2403.07675.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
audio-westlakeu/nbss canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
MVDR Ran
ran; our contract draft was wrong, not the code
audio-westlakeu/nbss/models/oracle_beamformer.py
pointer only (licence: MIT); the stored copy get_code serves, from Audio-WestlakeU/RealMAN, is pointer only (licence: NONE) · get_code("58450c67e0f277f5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Audio-WestlakeU/RealMAN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

default_collate_func Ran
ran; our contract draft was wrong, not the code
audio-westlakeu/nbss/data_loaders/sms_wsj.py
code served (permissive licence) · get_code("99adb47f1e62a79c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torch import Tensor
from typing import Any, Dict, List, Tuple

torch.manual_seed(0)

# Construct sample batches: List[Tuple[Tensor, Tensor, Dict[str, Any]]]
# Each batch item has:
# - First element: Tensor (features)
# - Second element: Tensor (labels)
# - Third element: Dict (metadata)

batch_item_1 = (
    torch.randn(4, 3),  # features tensor
    torch.randint(0, 2, (4,)),  # labels tensor
    {"id": 1, "source": "train"}  # metadata dict
)

batch_item_2 = (
    torch.randn(4, 3),  # features tensor
    torch.randint(0, 2, (4,)),  # labels tensor
    {"id": 2, "source": "val"}  # metadata dict
)

batch_item_3 = (
    torch.randn(4, 3),  # features tensor
    torch.randint(0, 2, (4,)),  # labels tensor
    {"id": 3, "source": "test"}  # metadata dict
)

batches = [batch_item_1, batch_item_2, batch_item_3]

ARGS = {
    "batches": batches
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gen_obs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
audio-westlakeu/nbss/data_loaders/reverb.py
code served (permissive licence) · get_code("4a970fa622717fd1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 1172) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import math

# Set random seed for reproducibility
np.random.seed(0)

# Create small test data
# x: single channel clean wav - 1D array
x = np.random.randn(1000).astype(np.float32)

# RIR: Room Impulse Response, shape [T, Chn]
# T is time dimension, Chn is channels (2 channels)
RIR = np.random.randn(200, 2).astype(np.float32)

# NOISE: shape [T, Chn]
# Should be longer than what we need, will be trimmed in function
NOISE = np.random.randn(2000, 2).astype(np.float32)

# SNRdB: Signal-to-Noise Ratio in dB
SNRdB = 10.0

ARGS = {
    'x': x,
    'RIR': RIR,
    'NOISE': NOISE,
    'SNRdB': SNRdB
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 1172) — shape (2, 1172) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_shift_samples Ran
ran, violated the contract we drafted
audio-westlakeu/nbss/data_loaders/sms_wsj.py
code served (permissive licence) · get_code("ad21d8e6a7cea754")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.signal import correlate

np.random.seed(0)

# Test case 1: 1D arrays
a_1d = np.array([1.0, 2.0, 3.0, 4.0])
b_1d = np.array([1.0, 2.0, 3.0, 4.0])

# Test case 2: 2D arrays
a_2d = np.random.randn(2, 4)
b_2d = np.random.randn(2, 4)

# Test case 3: 3D arrays
a_3d = np.random.randn(2, 3, 4)
b_3d = np.random.randn(2, 3, 4)

ARGS = {
    "a": a_1d,
    "b": b_1d,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
neg_si_sdr Ran
ran; our contract draft was wrong, not the code
audio-westlakeu/nbss/models/arch/NBSS.py
code served (permissive licence) · get_code("1f8fdc296c7454ba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for preds and target
# batch_size=2, and some reasonable audio signal length
batch_size = 2
signal_length = 4

preds = torch.randn(batch_size, signal_length)
target = torch.randn(batch_size, signal_length)

ARGS = {
    "preds": preds,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchmetrics — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
randfloat Ran
ran, honoured the contract we drafted
audio-westlakeu/nbss/data_loaders/spk4_wsj0_mix_sp.py
code served (permissive licence) · get_code("9ed1176b4d8ac52a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a generator for torch.rand
g = torch.Generator(device='cpu')
g.manual_seed(42)

# Define low and high as floats
low = 1.5
high = 10.7

ARGS = {
    'g': g,
    'low': low,
    'high': high,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
randint Ran
ran, honoured the contract we drafted
audio-westlakeu/nbss/data_loaders/spk4_wsj0_mix_sp.py
code served (permissive licence) · get_code("321d0163fb51d2fe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a Generator object for the function
g = torch.Generator(device='cpu')
g.manual_seed(42)

# Define parameters for randint function
low = 1
high = 100

# Construct the ARGS dictionary
ARGS = {
    'g': g,
    'low': low,
    'high': high
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reverberation_time_shortening_window Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
audio-westlakeu/nbss/data_loaders/sms_wsj.py
code served (permissive licence) · get_code("fca195af665563ab")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (16000,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a synthetic RIR (Room Impulse Response)
# RIR should be 1D array representing impulse response over time
rir = np.random.randn(16000)  # 2 seconds at 8kHz sample rate

# Original T60 (reverberation time in seconds) - time for sound to decay 60dB
original_T60 = 0.5

# Target T60 we want to shorten to
target_T60 = 0.2

# Sample rate in Hz
sr = 8000

# Time after the maximum amplitude to keep (in seconds)
time_after_max = 0.002

# Time before the maximum amplitude to window out (in seconds)
time_before_max = 0.01

ARGS = {
    "rir": rir,
    "original_T60": original_T60,
    "target_T60": target_T60,
    "sr": sr,
    "time_after_max": time_after_max,
    "time_before_max": time_before_max,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (16000,) — shape (16000,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stft Ran
ran; our contract draft was wrong, not the code
audio-westlakeu/nbss/models/oracle_beamformer.py
pointer only (licence: MIT); the stored copy get_code serves, from Audio-WestlakeU/RealMAN, is pointer only (licence: NONE) · get_code("fd9146f3aa7abf0a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Audio-WestlakeU/RealMAN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

istft Not yet run
unverified (harvested, no recorded run)
audio-westlakeu/nbss/models/oracle_beamformer.py
pointer only (licence: MIT); the stored copy get_code serves, from Audio-WestlakeU/RealMAN, is pointer only (licence: NONE) · get_code("cd36ae67cf96481f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Audio-WestlakeU/RealMAN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
MVDR 1 other paper
1 later
2406.19959 (2024-06)
RealMAN: A Real-Recorded and Annotated Microphone Array Dataset for Dynamic Speech Enhancement and Localization
istft 1 other paper
1 later
2406.19959 (2024-06)
RealMAN: A Real-Recorded and Annotated Microphone Array Dataset for Dynamic Speech Enhancement and Localization
stft 1 other paper
1 later
2406.19959 (2024-06)
RealMAN: A Real-Recorded and Annotated Microphone Array Dataset for Dynamic Speech Enhancement and Localization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In this work, we extend our previously proposed offline SpatialNet for long-term streaming multichannel speech enhancement in both static and moving speaker scenarios. SpatialNet exploits spatial information, such as the spatial/steering direction of speech, for discriminating between target speech and interferences, and achieved outstanding performance. The core of SpatialNet is a narrow-band self-attention module used for learning the temporal dynamic of spatial vectors. Towards long-term streaming speech enhancement, we propose to replace the offline self-attention network with online networks that have linear inference complexity w.r.t signal length and meanwhile maintain the capability of learning long-term information. Three variants are developed based on (i) masked self-attention, (ii) Retention, a self-attention variant with linear inference complexity, and (iii) Mamba, a structured-state-space-based RNN-like network. Moreover, we investigate the length extrapolation ability of different networks, namely test on signals that are much longer than training signals, and propose a short-signal training plus long-signal fine-tuning strategy, which largely improves the length extrapolation ability of the networks within limited training time. Overall, the proposed online SpatialNet achieves outstanding speech enhancement performance for long audio streams, and for both static and moving speakers. The proposed method is open-sourced in https://github.com/Audio-WestlakeU/NBSS.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.07675")
get_code_for_paper("2403.07675")
have("2403.07675")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.07675.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.07675.svg)](https://syntology.ai/paper/2403.07675)

Connect an agent — have() is free.