SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.01219 · 2019

WaveFlow: A Compact Flow-based Model for Raw Audio

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 4 failures of our instrument; 2 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/1912.01219.json · badge: /api/ran/1912.01219.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
L0SG/WaveFlow community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
bipartize Ran
ran on a synthesized input
L0SG/WaveFlow/functions.py
code served (permissive licence) · get_code("21e38cc8239d26e5")
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 4, dtype family float, shape (2, 1, 4, 3) 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 valid input tensor with shape [B, 1, H, W]
# B=2 (batch), 1 (channel), H=4 (height, must be even), W=3 (width)
x = torch.randn(2, 1, 4, 3)

ARGS = {
    "x": x
}
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 Tensor, ndim 4, dtype family float, shape (2, 1, 4, 3) — shape (2, 1, 4, 3) 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
dynamic_range_compression Ran
ran; our contract draft was wrong, not the code
L0SG/WaveFlow/tacotron2_custom/audio_processing.py
code served (permissive licence) · get_code("83e2c862f7374ac7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) 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 small tensor with positive values for dynamic range compression
# This simulates magnitude spectrogram or similar audio processing data
x = torch.rand(2, 4) * 10  # Random values between 0 and 10

# C is compression factor (default 1)
C = 1

# clip_val is minimum clipping value (default 1e-05)
clip_val = 1e-05

ARGS = {
    'x': x,
    'C': C,
    'clip_val': clip_val
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
files_to_list Ran
ran on a synthesized input
L0SG/WaveFlow/mel2samp.py
code served (permissive licence) · get_code("6e8184ff4faf3139")
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 tempfile
import os

# Create a temporary file with some filenames
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8', suffix='.txt')
temp_file.write("file1.txt\n")
temp_file.write("file2.txt\n")
temp_file.write("file3.txt\n")
temp_file.close()

ARGS = {
    "filename": temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
gaussian_log_p Ran
ran; our contract draft was wrong, not the code
L0SG/WaveFlow/functions.py
code served (permissive licence) · get_code("054f22912d47c960")
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 2, dtype family float, shape (2, 4) 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
from math import log, pi

torch.manual_seed(0)

# Create small tensors for the Gaussian log probability function
# The function computes log probability of x under a Gaussian with given mean and log_sd
x = torch.randn(2, 4)  # batch size 2, dim 4
mean = torch.randn(2, 4)  # batch size 2, dim 4
log_sd = torch.randn(2, 4)  # batch size 2, dim 4

ARGS = {
    'x': x,
    'mean': mean,
    'log_sd': log_sd
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
gaussian_sample Ran
ran, honoured the contract we drafted
L0SG/WaveFlow/functions.py
code served (permissive licence) · get_code("87324754644a55a3")
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 2, dtype family float, shape (2, 4) 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 the gaussian_sample function
# eps: random noise tensor
eps = torch.randn(2, 4)

# mean: mean of the distribution
mean = torch.randn(2, 4)

# log_sd: log standard deviation
log_sd = torch.randn(2, 4)

ARGS = {
    'eps': eps,
    'mean': mean,
    'log_sd': log_sd
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
griffin_lim Ran
ran; our contract draft was wrong, not the code
L0SG/WaveFlow/tacotron2_custom/audio_processing.py
code served (permissive licence) · get_code("9f9ec26d4cdfdf7d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 11) 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
import numpy as np

torch.manual_seed(0)

class STFT:
    def __init__(self):
        pass
    
    def transform(self, signal):
        # Returns (magnitudes, angles)
        # signal shape: (batch, time)
        batch_size = signal.size(0)
        time_len = signal.size(1)
        # Return magnitudes and angles with shape (batch, freq, time_frames)
        freq_bins = 5
        time_frames = 7
        magnitudes = torch.abs(torch.randn(batch_size, freq_bins, time_frames))
        angles = torch.randn(batch_size, freq_bins, time_frames)
        return magnitudes, angles
    
    def inverse(self, magnitudes, angles):
        # magnitudes shape: (batch, freq, time_frames)
        # angles shape: (batch, freq, time_frames)
        # Returns signal with shape (batch, 1, time)
        batch_size = magnitudes.size(0)
        time_len = 11
        signal = torch.randn(batch_size, 1, time_len)
        return signal

stft_fn = STFT()

# Create magnitudes tensor with shape (batch=2, freq=5, time_frames=7)
magnitudes = torch.abs(torch.randn(2, 5, 7))

ARGS = {
    'magnitudes': magnitudes,
    'stft_fn': stft_fn,
    'n_iters': 3
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 11) — shape (2, 11) 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
load_wav_to_torch Ran
ran; our contract draft was wrong, not the code
L0SG/WaveFlow/mel2samp.py
code served (permissive licence) · get_code("50d1245d6b4055c4")
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 tuple. 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
import tempfile
import os
from scipy.io.wavfile import write

torch.manual_seed(0)

# Create a temporary wav file
temp_dir = tempfile.gettempdir()
temp_wav_path = os.path.join(temp_dir, "test_audio.wav")

# Generate simple audio data
sampling_rate = 16000
duration = 0.1  # 100ms
num_samples = int(sampling_rate * duration)
audio_data = np.random.randint(-32768, 32767, num_samples, dtype=np.int16)

# Write the wav file
write(temp_wav_path, sampling_rate, audio_data)

ARGS = {
    "full_path": temp_wav_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
fused_add_tanh_sigmoid_multiply Not yet run
unverified (harvested, no recorded run)
L0SG/WaveFlow/modules.py
code served (permissive licence) · get_code("4537862a4c53b4c3")
How it ran

no invocation recorded.

fused_res_skip Not yet run
unverified (harvested, no recorded run)
L0SG/WaveFlow/modules.py
code served (permissive licence) · get_code("504a64a95e4d96d6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 8 later) and 1 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
griffin_lim 14 other papers
6 dated earlier, 8 later
1803.09017 (2018-03)
Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis
1811.02122 (2018-11)
Robust and fine-grained prosody control of end-to-end speech synthesis
1812.04342 (2018-12)
Learning latent representations for style control and transfer in end-to-end speech synthesis
and 11 more not named here
dynamic_range_compression 13 other papers
7 dated earlier, 6 later
1803.09017 (2018-03)
Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis
1811.02122 (2018-11)
Robust and fine-grained prosody control of end-to-end speech synthesis
1812.04342 (2018-12)
Learning latent representations for style control and transfer in end-to-end speech synthesis
and 10 more not named here
files_to_list 5 other papers
3 dated earlier, 2 later
1702.07825 (2017-02)
Deep Voice: Real-time Neural Text-to-Speech
1811.00002 (2018-11)
WaveGlow: A Flow-based Generative Network for Speech Synthesis
1910.06711 (2019-10)
MelGAN: Generative Adversarial Networks for Conditional Waveform Synthesis
and 2 more not named here
gaussian_log_p 5 other papers
1 dated earlier, 4 later · 1 only as an assembly brick
1807.03039 (2018-07)
Glow: Generative Flow with Invertible 1x1 Convolutions
2206.05075 (2022-06)
Diffeomorphic Counterfactuals with Generative Models
and 2 more not named here
gaussian_sample 4 other papers
1 dated earlier, 3 later
1807.03039 (2018-07)
Glow: Generative Flow with Invertible 1x1 Convolutions
2206.05075 (2022-06)
Diffeomorphic Counterfactuals with Generative Models
and 1 more not named here
load_wav_to_torch 2 other papers
1 dated earlier, 1 later
1811.00002 (2018-11)
WaveGlow: A Flow-based Generative Network for Speech Synthesis
2005.05957 (2020-05)
Flowtron: an Autoregressive Flow-based Generative Network for Text-to-Speech Synthesis
fused_add_tanh_sigmoid_multiply 1 other paper
1 later
2204.05841 (2022-04)
VoiceFixer: A Unified Framework for High-Fidelity Speech Restoration
fused_res_skip 1 other paper
1 later
2204.05841 (2022-04)
VoiceFixer: A Unified Framework for High-Fidelity Speech Restoration

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 propose WaveFlow, a small-footprint generative flow for raw audio, which is directly trained with maximum likelihood. It handles the long-range structure of 1-D waveform with a dilated 2-D convolutional architecture, while modeling the local variations using expressive autoregressive functions. WaveFlow provides a unified view of likelihood-based models for 1-D data, including WaveNet and WaveGlow as special cases. It generates high-fidelity speech as WaveNet, while synthesizing several orders of magnitude faster as it only requires a few sequential steps to generate very long waveforms with hundreds of thousands of time-steps. Furthermore, it can significantly reduce the likelihood gap that has existed between autoregressive models and flow-based models for efficient synthesis. Finally, our small-footprint WaveFlow has only 5.91M parameters, which is 15$\times$ smaller than WaveGlow. It can generate 22.05 kHz high-fidelity audio 42.6$\times$ faster than real-time (at a rate of 939.3 kHz) on a V100 GPU without engineered inference kernels.

For agents

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

get_harvested_code_for_paper("1912.01219")
get_code_for_paper("1912.01219")
have("1912.01219")

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

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

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

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

Connect an agent — have() is free.