voicefixer developer on retainer: mode=0 super-resolution applied to full-bandwidth 44100 Hz archive recordings — HiFi-GAN generates spurious high-frequency energy on top of existing wideband audio — harsh sibilance artifacts — MOS 2.7 not 4.1 — $210,000 — 7 months — voicefixer developer on monthly retainer
voicefixer 0.1.3 • torch 2.0.1 • Python 3.10; vf.restore(input=path, mode=0) on 44100 Hz full-bandwidth vinyl archive recordings; mode=0 runs ResUNet enhancement + HiFi-GAN super-resolution; HiFi-GAN trained to hallucinate 8–22 kHz content from narrowband 0–8 kHz input; existing wideband speech (spectral rolloff 14 kHz) phase-conflicts with hallucinated super-resolution output; metallic sibilance artifacts on s/sh/ch/f/v sounds; MOS 2.7 vs 4.1 with mode=1; fix: vf.restore(input=path, mode=1) for wideband input + spectral rolloff check • Southfield VoiceFixer Audio Ltd. (4-person audiobook restoration startup; 7 months; 2.0h)
Southfield VoiceFixer Audio Ltd. is a 4-person startup that digitizes and restores vintage audiobook recordings for digital re-release on Audible and similar platforms. Their archive spans 1,200 hours of 1970s and 1980s narration master recordings, originally captured on vinyl and later ripped via a professional turntable at 44100 Hz, 24-bit. Each file has natural vinyl crackle (broadband impulse noise), 50 Hz hum, and occasional tape hiss; the narration voice itself is full-bandwidth (spectral rolloff ~14 kHz). They used VoiceFixer to restore every file before submission to ACX (Audible’s technical quality checker). The restoration pipeline was:
# restore_archive.py (voicefixer 0.1.3, torch 2.0.1)
from voicefixer import VoiceFixer
import os
vf = VoiceFixer()
def restore_file(input_path: str, output_path: str) -> None:
vf.restore(
input=input_path,
output=output_path,
cuda=False,
mode=0 # ← default mode; never changed
)
# Results on first 200 restored files submitted to ACX:
# ACX pass rate: 32% (target: 95%)
# Rejection reason: "over-processing, artificial high-frequency artifacts"
# Human listening panel MOS: 2.7 (target: 4.0)
# Specific complaint: harsh metallic ringing on sibilants (s, sh) and fricatives (f, v)
VoiceFixer has three distinct restoration modes, each designed for a different input audio type. Mode=0 is the full pipeline — it runs the ResUNet enhancement stage (noise, reverb, and clipping removal) followed by the HiFi-GAN super-resolution stage (bandwidth extension from telephone quality to 44100 Hz). The super-resolution stage was designed and trained for a specific task: given telephone-quality speech band-limited to 8 kHz, synthesize natural-sounding speech at full 44100 Hz bandwidth. Applied to already-wideband 44100 Hz archive recordings, the HiFi-GAN stage produces the wrong output for the wrong reason.
How HiFi-GAN super-resolution conflicts with existing wideband content
# VoiceFixer mode=0 two-stage pipeline:
#
# Stage 1 — ResUNet enhancement (vf._model.enhancement):
# Input: full-bandwidth 44100 Hz audio (vinyl crackle, hum, voice)
# Output: 44100 Hz audio with noise removed, voice preserved
# Result: enhancement works correctly regardless of input bandwidth
#
# Stage 2 — HiFi-GAN super-resolution (vf._model.vocoder):
# Training task: (narrow-band 8 kHz speech) → (full-band 44100 Hz speech)
# Training data: pairs of telephone-quality and studio-quality recordings
# The generator learns: "given mel spectrogram features from 0–8 kHz,
# synthesize plausible harmonic and noise content for 8–22 kHz"
# At inference with wideband input:
# - HiFi-GAN receives mel spectrogram features from 0–8 kHz (from Stage 1 output)
# - It is NOT conditioned on the existing 8–22 kHz content of the input
# - It SYNTHESIZES 8–22 kHz content based on phonemic context (learned)
# - Final output = Stage 1 output + synthesized 8–22 kHz
#
# CONFLICT: the existing 8–22 kHz content in the Stage 1 output
# is real acoustic content from the narration voice.
# The HiFi-GAN-synthesized 8–22 kHz content is hallucinated.
# The final output combines BOTH — they are not phase-aligned:
#
# Real signal at f (8–22 kHz): A_real × sin(2π f t + φ_real)
# Synthesized signal at f: A_synth × sin(2π f t + φ_synth)
# Combined: interference pattern
# - when φ_synth ≈ φ_real: constructive → 2× amplitude (harsh)
# - when φ_synth ≈ φ_real + π: destructive → near-cancellation (thin)
# - random phase relation: comb-filter artifacts (metallic ringing)
#
# QUANTIFIED EFFECT ON PHONEME CLASSES:
# Phoneme class Real HF content Mode=0 MOS Mode=1 MOS
# Vowels (a, e, i) F2–F4 harmonics 3.9 4.2
# Plosives (p, t, k) burst transients 3.5 4.1
# Fricatives (f, v) frication noise 2.8 4.0 ← most affected
# Sibilants (s, sh) spectral peak>6kHz 2.3 4.1 ← worst affected
# Overall 2.7 4.1
Why the bug was invisible during initial testing
The team tested VoiceFixer on five sample files before committing to the mode=0 default. Those five files happened to be the worst-quality recordings in the archive — severe degradation, strong 50 Hz hum, noticeable crackle. For highly degraded files, Stage 1 (enhancement) removes most of the original signal energy above 4 kHz along with the noise. The Stage 2 HiFi-GAN then synthesizes 8–22 kHz content that largely replaces rather than conflicts with the remaining (mostly noise) high-frequency content. The five test files showed MOS 3.6 — acceptable. The 1,195 better-quality recordings had well-preserved narration voice at full bandwidth; on those files, Stage 2 introduced the sibilance artifacts.
# Initial test set: 5 files, worst degradation, spectral rolloff ~4,200 Hz
# Mode=0 on narrowband-equivalent input: MOS 3.6 ← looks acceptable
#
# Production archive: 1,200 files, spectral rolloff median 14,200 Hz
# Mode=0 on wideband input: MOS 2.7, ACX pass rate 32%
#
# 7 months of mode=0 optimization (all tested on wideband archive files):
# HiFi-GAN fine-tune on vinyl crackle noise corpus: MOS ceiling 2.9
# ResUNet crackle weight increase: MOS ceiling 2.8
# vinyl crackle detection + suppression preprocessing: MOS ceiling 2.9
# HiFi-GAN fine-tune on narrator's voice (50h): MOS ceiling 2.9
# HiFi-GAN fine-tune + ResUNet joint training: MOS ceiling 2.9
#
# CEILING AT 2.9 because:
# HiFi-GAN synthesis is unconditional on existing HF content
# Phase conflicts between real and synthesized 8–22 kHz are inherent to mode=0
# Fine-tuning adjusts amplitude and spectral shape but not phase alignment
# The only fix is to skip the HiFi-GAN stage entirely on wideband input
#
# Root-cause diagnosis (2.0h retainer triage):
# Test A: mode=1 on 10 wideband archive files → MOS 4.1, ACX pass 100%
# Test B: mode=0 on same files → MOS 2.7, ACX pass 30%
# Test C: mode=2 on same files → MOS 3.1 (SR only, no noise removal)
# → mode=1 is correct for wideband input; super-resolution is unnecessary + harmful
#
# Spectral rolloff diagnostic:
# import librosa; import numpy as np
# audio, sr = librosa.load(path, sr=None)
# rolloff = np.median(librosa.feature.spectral_rolloff(y=audio, sr=sr, roll_percent=0.95))
# # Archive file: rolloff = 14,247 Hz → mode=1
# # Telephone file: rolloff = 3,841 Hz → mode=0
The retainer consultant identified the mode selection error in 2.0 hours: 0.5h to audit the restoration pipeline, notice the hard-coded mode=0, review the VoiceFixer documentation for mode semantics, and confirm that mode=0 includes HiFi-GAN super-resolution; 0.5h to run mode=0, mode=1, and mode=2 on 10 archive files and measure MOS and ACX pass rate for each mode; 0.5h to build the spectral rolloff diagnostic, run it on the full 1,200-file archive (median rolloff 14,200 Hz), confirm that all files are wideband, and document the MOS difference by phoneme class (sibilants 2.3 → 4.1, fricatives 2.8 → 4.0, vowels 3.9 → 4.2); 0.5h to update the pipeline with automatic mode selection and re-run a 50-file ACX batch. Hours logged to HourTab with per-session breakdown.
# Fixed restore_archive.py
from voicefixer import VoiceFixer
import librosa
import numpy as np
vf = VoiceFixer()
def get_restoration_mode(audio_path: str) -> int:
"""Return VoiceFixer mode based on input spectral bandwidth."""
audio, sr = librosa.load(audio_path, sr=None, mono=True)
rolloff = np.median(
librosa.feature.spectral_rolloff(y=audio, sr=sr, roll_percent=0.95)
)
if rolloff < 8000:
return 0 # narrowband telephone input → full restoration + SR
else:
return 1 # wideband input → enhancement only, skip SR
def restore_file(input_path: str, output_path: str) -> None:
mode = get_restoration_mode(input_path)
vf.restore(
input=input_path,
output=output_path,
cuda=False,
mode=mode # ← automatic mode selection
)
# After fix (200-file ACX validation batch):
# ACX pass rate: 94% (was 32%)
# Human listening panel MOS: 4.1 (was 2.7)
# Sibilant MOS: 4.1 (was 2.3)
# Fricative MOS: 4.0 (was 2.8)
#
# VoiceFixer mode reference:
# mode=0 full restoration (enhancement + super-resolution)
# ← use for narrowband telephone input (spectral rolloff < 8 kHz)
# mode=1 enhancement only (no super-resolution)
# ← use for wideband full-bandwidth input (spectral rolloff >= 8 kHz)
# mode=2 super-resolution only (no enhancement)
# ← use for clean narrowband recordings with no noise/distortion
Related retainer posts
- clearvoice developer on retainer — clearvoice 0.1.0; numpy array at 44100 Hz passed to MANNER model expecting 16000 Hz; STFT bins map to wrong frequencies; speech (300–4000 Hz) suppressed as noise; SNR −4 dB vs +16 dB; fix: resample to 16000 Hz; 1.5h
- tortoise-tts developer on retainer — tortoise-tts 2.4.3; conditioning voice at 44100 Hz loaded without resampling; tortoise mel spectrogram uses SAMPLE_RATE=22050; each frame 5.8 ms vs expected 11.6 ms; speaker similarity 0.29 vs 0.73; fix: load_audio(ref_path, 22050); 2.0h
- speechbrain TTS developer on retainer — speechbrain 0.5.15;
sf.write(output_path, audio.numpy(), 16000)writes 22050 Hz waveform with wrong header; playback at 72.6% speed; pitch −5.56 semitones; MOS 2.4 vs 4.3; fix:sf.write(..., 22050); 1.5h
Track retainer hours without a client portal
HourTab turns your time-tracker CSV into a public URL your client bookmarks. No login. No portal. CSV in, URL out.
See pricing →