Skip to content
ExplanationUnreviewed

Synthesizer V vocoder architecture

The Synthesizer V vocoder converts frame-level acoustic features into 48 kHz dry singing audio and optionally outputs a separate aspiration stem. The vocoder pairs classical source-filter digital signal processing (DSP) with compact neural networks. A physical synthesizer builds pitch-accurate harmonic and noise waveforms first, and a subband neural network removes parametric artifacts at a reduced sample rate so synthesis stays real-time on consumer CPUs.

Acoustic input contract

The upstream acoustic model outputs one 72-dimensional real vector every 5 ms (200 Hz, or 240 samples per frame at 48 kHz). Each channel carries an explicit physical quantity derived from source-filter vocal analysis.

The table below maps the 72 channels to their physical roles and observed numeric bounds in Stardust Infinity.

Channels Width Physical role Observed range
1 1 Voicing flag (V/UV) separating voiced frames from unvoiced frames at threshold 0.5. 0.0 to 1.0
2 1 Natural log fundamental frequency (ln⁡F0\ln F_0), covering roughly 50 Hz to 1200 Hz. 3.91 to 7.09
3 1 Liljencrants-Fant (LF) glottal shape parameter (RdR_d) controlling vocal fold tension. 0.02 to 3.00
4 to 67 64 Log vocal-tract spectral envelope with source excitation already removed. Lower floor -12.10 to -11.28, upper peaks from +2.08 down to -2.39
68 to 72 5 Five-band aperiodicity ratio measuring noise energy relative to harmonic energy. Near 0.0 to 1.0

This representation separates vocal fold excitation, vocal tract resonance, and breath noise into distinct channels. Because the 64-band envelope isolates pure vocal-tract filtering, the vocoder can manipulate formant scaling directly and synthesize harmonic audio separately from breath noise.

Synthesis pipeline

Audio generation runs in five sequential stages that move from frame-rate feature conditioning to 48 kHz waveform synthesis.

1. Input normalization and feature preparation

Before running the neural subnetworks, the input adapter normalizes all 72 channels, including the log-pitch channel (channel 2), into [-1, 1] by using per-voicebank minimum and maximum bounds. When cosine pitch expansion is enabled, the adapter maps normalized pitch through a periodic cosine basis while copying the voicing flag and the trailing 70 acoustic channels unchanged.

Separately, the outer vocoder wrapper extracts the first three channels (V/UV, pitch, and RdR_d) to build frame control descriptors, applying the 0.5 threshold to mark voiced versus unvoiced frames. All downstream neural subnetworks consume the full 72-dimensional normalized feature sequence.

2. Frame-rate neural parameter refinement

Before generating waveform samples, the vocoder runs compact 200 Hz neural modules to refine the acoustic model’s frame predictions into smoother controls and spectral detail:

  • Per-frame scalar network: A three-layer 1D convolutional stack (72 to 256 to 128 to 1 channels, with kernel widths 3, 3, and 1, and a LeakyReLU activation with slope 0.2 before the final pointwise layer) produces one scalar control sequence per frame.
  • Recurrent context encoder: A float32 unidirectional gated recurrent unit (GRU) with 50 input channels and 192 hidden units aggregates temporal context across frames to supply a 192-dimensional conditioning stream.
  • Conditioned convolutional backbone: A three-layer gated convolutional network (256 hidden channels, kernel width 3, dilation 1) takes the 72-dimensional frame sequence conditioned on that 192-dimensional stream. Three parallel convolutional branches then expand the features across multiple scales alongside a float32 two-layer nonlinear mapping head (256 -> 64 -> 10).
  • Quantization and cepstral transform: The frontend convolutional stacks store weights in 16-bit row-scaled quantized form for fast CPU inference, while the GRU and output head stay in float32. The vocoder also bundles a 64-by-64 discrete cosine transform (DCT) and inverse DCT pair that matches the acoustic model’s internal transform within float32 precision.

3. Dual-branch physical DSP synthesis

Using the refined frame parameters, classical DSP generates two separate 48 kHz preliminary signals at a 240-sample hop size.

Harmonic branch

The harmonic branch models periodic vocal fold vibration passing through the vocal tract:

  1. Continuous phase accumulation: A phase accumulator integrates the frame-level F0F_0 contour across samples so glides and vibrato remain phase-continuous without clicks.
  2. Glottal excitation synthesis: The glottal parameter RdR_d indexes a lookup table that linearly interpolates five LF waveform parameters: three normalized timing parameters (tp, te, and ta) and two exponential shape rates (ee and aa, interpolated in log space and exponentiated). Time-domain LF pulse synthesis combines with additive sinusoidal harmonics to produce a clean periodic excitation source.
  3. Spectral transform and formant scaling: Built-in Ooura real FFT routines (rdft) move the signal into the short-time frequency domain. The engine loads per-voicebank spectral shaping controls including formant scaling (vocoder_formant_scale) and harmonic equalization (vocoder_eq_harmonic).
  4. Minimum-phase reconstruction and filtering: Because the 64-band envelope contains magnitude only, minimum-phase cepstral reconstruction derives a physically consistent vocal-tract phase response via complex exponentiation. Multiplying this filter with the harmonic source spectrum and running inverse Ooura FFT overlap-add produces the preliminary harmonic waveform.

Residual branch

The residual branch synthesizes breath, plosive bursts, and unvoiced fricatives:

  1. Broadband noise source: A PCG32-backed Marsaglia polar Gaussian generator produces 48 kHz white noise.
  2. Neural mask shaping: Driven by the five-band aperiodicity and frame features, a residual network applies a Sigmoid soft mask in the frequency domain to sculpt the white noise into phoneme-appropriate breath and frication spectra.
  3. Equalization and overlap-add: Voiced residual equalization (vocoder_eq_residual_voiced) shapes the remaining energy, and a second inverse STFT overlap-add pass produces the preliminary residual waveform.

4. Subband PQMF neural refinement

Pure source-filter DSP preserves pitch accuracy and harmonic-noise separation, while raw parametric waveforms still carry buzzing or rough voiced-to-unvoiced transitions. The Stardust Infinity vocoder performs neural post-filtering in a downsampled subband domain by using an 8-band pseudo-quadrature mirror filter bank (PQMF):

  1. Analysis filter bank (48 kHz to 8 x 6 kHz): Eight 65-tap cosine-modulated FIR analysis filters split the 48 kHz preliminary audio into eight 3 kHz subbands, each decimated by a factor of 8 to a 6 kHz sample rate. Combining both branches produces 16 subband channels at 6 kHz.
  2. Subband dilated WaveNet: A float32 five-layer gated dilated convolutional network (64 hidden channels, kernel width 3, dilations 1, 3, 9, 27, 81) processes the 16 subband channels at 6 kHz. Every layer receives the 72-dimensional frame features through a 1x1 projection to guide consonant transients, voicing boundaries, and singer texture. Aggregated skip outputs pass through a two-layer nonlinear post-net (Act -> 64 -> Act -> 8) to output 8 refined subband channels.
  3. Learned synthesis filter bank (8 x 6 kHz to 48 kHz): Eight 65-tap FIR synthesis filters upsample and recombine the 8 refined subbands back to 48 kHz. While the analysis filters form an analytical cosine-modulated PQMF bank, the synthesis taps are fine-tuned jointly with the subband WaveNet.

Operating at 6 kHz cuts the temporal step count by 8x while a 64-channel, five-layer receptive field covers enough waveform history to smooth parametric artifacts on CPU.

5. Track assembly and stem output

After core synthesis completes, the outer wrapper gathers the chunked harmonic and residual buffers into contiguous 48 kHz arrays:

  • Standard vocal render: Harmonic and residual tracks sum with configured gains to produce dry 48 kHz mono audio, followed by sample-rate conversion if the host project runs at another rate.
  • Aspiration stem export: Because the residual path remains physically separate through synthesis, the engine can export the residual signal directly as an isolated breath stem WAV file.

Design trade-offs and open boundaries

Separating physical synthesis from neural post-filtering gives Synthesizer V predictable pitch accuracy, controllable formant scaling, and low CPU load. Bundling a dedicated vocoder with each voicebank couples the neural post-filter weights to the individual singer’s timbre.

Two implementation details remain open from static analysis of the compiled binary. First, the exact feature assembly feeding the 50-dimensional input of the frontend 192-unit GRU is not fully traced through the obfuscated runtime wrapper. Second, the 8-band PQMF and five-layer WaveNet topology comes directly from a model-version 1 compatibility voicebank, so native second-generation voicebanks (vocoder.dnni) may vary subband width or post-filter depth while sharing the same 72-dimensional interface and dual-branch DSP core.

Type to search…

↑↓ navigate↵ selectEsc close