SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.05742 · 2019

One-shot Voice Conversion by Separating Speaker and Content Representations with Instance Normalization

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 0 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/1904.05742.json · badge: /api/ran/1904.05742.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
jjery2243542/adaptive_voice_conversion canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
cc Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/utils.py
code served (permissive licence) · get_code("75a00560df788300")
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 SimpleNet. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn

torch.manual_seed(0)

class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

net = SimpleNet()

ARGS = {
    'net': net
}
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 SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_data_loader Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/data_utils.py
code served (permissive licence) · get_code("a45438efc97d07d0")
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 DataLoader. 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.utils.data import Dataset

torch.manual_seed(0)

class DummyDataset(Dataset):
    def __init__(self, num_samples=2, seq_len=8, num_channels=3):
        self.num_samples = num_samples
        self.seq_len = seq_len
        self.num_channels = num_channels
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return a tensor of shape (seq_len, num_channels)
        return np.random.randn(self.seq_len, self.num_channels).astype(np.float32)

dataset = DummyDataset(num_samples=2, seq_len=8, num_channels=3)

ARGS = {
    'dataset': dataset,
    'batch_size': 2,
    'frame_size': 2,
    'shuffle': True,
    'num_workers': 0,
    'drop_last': False
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_speaker2path Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/preprocess/make_datasets_libri.py
code served (permissive licence) · get_code("1f4ed5944db2a69c")
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 defaultdict. 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 tempfile
import os
from pathlib import Path

# Create a temporary directory structure with dummy .wav files
temp_dir = tempfile.mkdtemp()

# Create the expected directory structure: root_dir/dset/speaker_id/chapter_id/*.wav
dset_name = "train"
dset_path = os.path.join(temp_dir, dset_name)
speaker_dir = os.path.join(dset_path, "121")
chapter_dir = os.path.join(speaker_dir, "101")
os.makedirs(chapter_dir, exist_ok=True)

# Create dummy .wav files with the expected naming pattern: speaker_chapter_utt_num.wav
dummy_files = [
    os.path.join(chapter_dir, "121_101_001_0.wav"),
    os.path.join(chapter_dir, "121_101_002_0.wav"),
]

for f in dummy_files:
    Path(f).touch()

# Create another speaker
speaker_dir_2 = os.path.join(dset_path, "122")
chapter_dir_2 = os.path.join(speaker_dir_2, "102")
os.makedirs(chapter_dir_2, exist_ok=True)

dummy_files_2 = [
    os.path.join(chapter_dir_2, "122_102_001_0.wav"),
]

for f in dummy_files_2:
    Path(f).touch()

ARGS = {
    "root_dir": temp_dir,
    "dset": dset_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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
pad_layer Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/model.py
code served (permissive licence) · get_code("4d66dbe3ce9ed5bd")
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 3, dtype family float, shape (2, 3, 8) 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create a simple Conv1d layer as the 'layer' parameter
# The function accesses layer.kernel_size[0], so we need a proper Conv1d
conv_layer = nn.Conv1d(in_channels=4, out_channels=3, kernel_size=5)

# Create a small input tensor
# Conv1d expects (batch, channels, length)
inp = torch.randn(2, 4, 8)

ARGS = {
    'inp': inp,
    'layer': conv_layer,
    'pad_type': 'reflect'
}
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 3, dtype family float, shape (2, 3, 8) — shape (2, 3, 8) 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
pad_layer_2d Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/model.py
code served (permissive licence) · get_code("9d60aa7ca2f53c37")
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, 8, 8, 5) 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small Conv2d layer that the function will use
# The function accesses layer.kernel_size and calls layer(inp)
layer = nn.Conv2d(in_channels=4, out_channels=8, kernel_size=(3, 5))

# Create a small input tensor: batch_size=2, channels=4, height=6, width=7
inp = torch.randn(2, 4, 6, 7)

# pad_type parameter with a valid padding mode
pad_type = 'reflect'

ARGS = {
    'inp': inp,
    'layer': layer,
    'pad_type': pad_type
}
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, 8, 8, 5) — shape (2, 8, 8, 5) 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
pixel_shuffle_1d Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/model.py
code served (permissive licence) · get_code("b3d23676fc738d19")
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 3, dtype family float, shape (2, 4, 8) 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 torch.nn as nn

torch.manual_seed(0)

# Construct a small input tensor
# The function expects: batch_size, channels, in_width
# Using batch_size=2, channels=8, in_width=4
inp = torch.randn(2, 8, 4)

ARGS = {
    "inp": inp,
    "scale_factor": 2
}
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 3, dtype family float, shape (2, 4, 8) — shape (2, 4, 8) 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
read_filenames Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/preprocess/make_datasets_vctk.py
code served (permissive licence) · get_code("4162a1eee2cf318b")
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 defaultdict. 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 os
import tempfile
import shutil

# Create a temporary directory structure with mock audio files
tmpdir = tempfile.mkdtemp()

# Create speaker directories and files matching the expected pattern
speaker_dirs = {
    'p001': [1, 2, 3],
    'p002': [1, 2],
}

for speaker_id, utt_ids in speaker_dirs.items():
    speaker_dir = os.path.join(tmpdir, speaker_id)
    os.makedirs(speaker_dir, exist_ok=True)
    for utt_id in utt_ids:
        filename = f'{speaker_id}_{utt_id:03d}.wav'
        filepath = os.path.join(speaker_dir, filename)
        with open(filepath, 'w') as f:
            f.write('')

root_directory = tmpdir

ARGS = {
    'root_dir': root_directory,
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
read_paths Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/preprocess/make_datasets_libri.py
code served (permissive licence) · get_code("15481785b05a3880")
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 os
import tempfile
import shutil

# Create a temporary directory structure to mimic the expected dataset layout
temp_root = tempfile.mkdtemp()
dset_name = "train"
dset_dir = os.path.join(temp_root, dset_name)

# Create the nested directory structure: {dset}/*/*/
# Pattern is {dset}/subdir1/subdir2/*.wav
os.makedirs(os.path.join(dset_dir, "speaker1", "sample1"), exist_ok=True)
os.makedirs(os.path.join(dset_dir, "speaker2", "sample2"), exist_ok=True)

# Create dummy .wav files
open(os.path.join(dset_dir, "speaker1", "sample1", "audio1.wav"), 'w').close()
open(os.path.join(dset_dir, "speaker1", "sample1", "audio2.wav"), 'w').close()
open(os.path.join(dset_dir, "speaker2", "sample2", "audio3.wav"), 'w').close()

ARGS = {
    "root_dir": temp_root,
    "dset": dset_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
read_speaker_info Ran
ran on a synthesized input
jjery2243542/adaptive_voice_conversion/preprocess/make_datasets_libri.py
code served (permissive licence) · get_code("587ed6e8bf7f5b6c")
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 speaker info data
temp_dir = tempfile.mkdtemp()
speaker_info_path = os.path.join(temp_dir, "speaker_info.txt")

# Write sample speaker info file with header and speaker IDs
with open(speaker_info_path, 'w') as f:
    f.write("speaker_id name age gender\n")
    f.write("spk001 John 30 M\n")
    f.write("spk002 Jane 28 F\n")
    f.write("spk003 Bob 35 M\n")

ARGS = {
    "speaker_info_path": speaker_info_path
}
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

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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

Recently, voice conversion (VC) without parallel data has been successfully adapted to multi-target scenario in which a single model is trained to convert the input voice to many different speakers. However, such model suffers from the limitation that it can only convert the voice to the speakers in the training data, which narrows down the applicable scenario of VC. In this paper, we proposed a novel one-shot VC approach which is able to perform VC by only an example utterance from source and target speaker respectively, and the source and target speaker do not even need to be seen during training. This is achieved by disentangling speaker and content representations with instance normalization (IN). Objective and subjective evaluation shows that our model is able to generate the voice similar to target speaker. In addition to the performance measurement, we also demonstrate that this model is able to learn meaningful speaker representations without any supervision.

For agents

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

get_harvested_code_for_paper("1904.05742")
get_code_for_paper("1904.05742")
have("1904.05742")

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

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

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

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

Connect an agent — have() is free.