Style as a Slow Trajectory: Time-Resolved Texture Statistics for Expressive Spectrogram Translation

Many voice-conversion and music style-transfer systems treat audio as an image. They convert sound into a spectrogram, a picture with time on one axis and frequency on the other. A neural network then repaints the picture so it keeps the words or melody but takes on another voice, emotion, or instrument. The usual way to say what "style" means is a Gram matrix: the correlations between a network's feature channels, averaged over the whole clip. Averaging over time works because it throws away when things happen, and therefore throws away the words. It also throws away every style property that has a "when": an utterance that starts calm and turns angry, a vibrato that appears only on the held note, a glissando into a phrase. Such a system cannot represent these, so it cannot transfer them.

We propose treating style as a trajectory: a sequence of local texture statistics that changes slowly over the clip. The claim to test is that the speed at which the style signal is allowed to change is the key control. Phonetic content changes at roughly the rate of syllables. Emotional arcs and phrase-level prosody change much more slowly. If style is held below a chosen temporal bandwidth, the system should transfer time-varying expression while still blocking content from leaking out of the reference. The research question is whether that window exists, and how wide it is, on emotional speech and on singing. A secondary question asks what we gain from the spatio-temporal feature-extraction literature: does a recurrent convolutional encoder that keeps the frequency axis intact track style trajectories better than a frame-by-frame encoder that flattens it?

Core Claim and What Is New

The time-averaged Gram loss has two jobs: it carries style, and it blocks content leakage. It is used in Voice Conversion Using Speech-to-Speech Neuro-Style Transfer, Neural TTS Stylization with Adversarial and Collaborative Games, Controllable Emotion Transfer For End-to-End Speech Synthesis and EmoMix. These papers motivate this proposal: they show the loss works for static style, with 80% emotion accuracy on EMT-4 and 98% subjective recognition of angry speech. Because the loss averages over the whole utterance, none of them can express a style that changes within it.

Two existing systems have something "time-varying," and both differ from what we propose. Music Style Transfer with Time-Varying Inversion of Diffusion Models learns a style embedding that varies over the denoising steps of a diffusion model, a generator that turns noise into samples step by step. Along the acoustic time axis its style is still constant. PFlow-VC does extract frame-level timbre tokens. However, it does not control their temporal bandwidth, and it says nothing about how fast style may change before content leaks.

Two other systems constrain the design, because they disentangle by destroying time. VarietySound shuffles and pools the reference audio to isolate timbre. DeepEST uses a 3D-CNN plus bidirectional-LSTM emotion recognizer, but only as a frozen extractor that outputs one vector per utterance. Its authors report that conversion quality is limited by that recognizer's errors.

What is new here is a style representation, together with a loss, that is explicitly time-resolved and explicitly limited in bandwidth. We also measure the leakage–expressivity trade-off as a function of that bandwidth. To our knowledge no paper in this literature does that measurement.

Concretely, let $F_k \in \mathbb{R}^{C}$ be the feature vector at time frame $k$ from a fixed spectrogram encoder with $C$ channels. Let $W_t$ be a window of $w$ frames centered at frame $t$. The local Gram matrix is

$$G_t = \frac{1}{w}\sum_{k \in W_t} F_k F_k^{\top},$$

and the style trajectory is $S_t = (h_{f_c} * G)_t$. Here $h_{f_c}$ is a temporal low-pass filter with cutoff frequency $f_c$ in Hz, and $*$ is convolution along time. Setting $w$ to the full clip, or $f_c \to 0$, recovers the classical global Gram loss. We train the generator to match $S_t$ of its output to the reference trajectory after the reference has been time-aligned to the source. The training signal is the per-frame distance between the two trajectories, summed over frames.

Research Program

All style pathways sit inside one shared generator, so that only the style representation changes between arms. The generator is a conditional flow-matching voice converter modeled on PFlow-VC: HuBERT content features, discrete pitch tokens, and a HiFi-GAN vocoder. Flow matching is a generator trained to move noise toward data along learned paths.

The style input is the reference trajectory, warped onto the source timeline. We use dynamic time warping on parallel pairs, and relative-time warping where content is not shared. We compare three encoders for producing $S_t$:

  1. Filtered Gram. The analytic filtered Gram trajectory above, with no learned temporal model.
  2. Frame encoder. A frame-wise 1D encoder that flattens frequency at each frame, as in frame-token approaches.
  3. ConvLSTM encoder. A convolutional LSTM, a recurrent cell whose gates are convolutions so its hidden state stays a 2D frequency map, run along the spectrogram's time axis. This is the operator used for road-network grids in CRS-ConvLSTM. Its recurrent state is naturally smooth in time, and it keeps the harmonic layout along frequency. Skeleton-based Action Recognition Using LSTM and CNN found that preserving this kind of layout beat flattened recurrent baselines.

The analysis sweeps the cutoff $f_c$ from 0 (global Gram) to well above syllable rate. At each setting we measure two things. Leakage is measured with a linear phoneme probe applied to $S_t$, and by recognition error when the source and reference say different sentences. Expressivity is measured by how well the output follows a style change inside the reference.

Baselines

The naive reference point is the source passed through the same vocoder unchanged. This sets the floor for emotion transfer and the ceiling for intelligibility.

The classical reference is the global Gram style loss, as used in Neural TTS Stylization with Adversarial and Collaborative Games and EmoMix. We implement it as the $f_c = 0$ setting in our own generator, so it receives the same data, training steps, and tuning budget.

The strongest existing competitor is PFlow-VC. It already models time-varying timbre with a fast 1D pipeline. On ESD it reports an emotion-consistency score of 0.725, against 0.650 for Diff-HierVC, and on LibriTTS it reports 0.920 speaker cosine similarity at a real-time factor of 0.13 (Enhancing Expressive Voice Conversion with Discrete Pitch-Conditioned Flow Matching Model). We will reimplement it in our shared backbone and also compare against its reported figures on ESD.

Beating PFlow-VC means three things on the time-varying test sets described below. Emotion consistency must be higher at the per-segment level, and must not fall below 0.725 on standard whole-utterance ESD conversion. Speaker similarity must not degrade. Word error rate must stay within one point of PFlow-VC's.

For music, the reference point is time-varying inversion on Riffusion. It reports a CLAP content-preservation score of 0.4645, versus 0.3481 for plain textual inversion (Music Style Transfer with Time-Varying Inversion). We use it only as a secondary comparison on the Pixabay clips. For singing technique transfer on GTSinger, we found no reported conversion result on Lacuna.

The key ablation is the bandwidth sweep itself. A second ablation compares the filtered Gram, frame encoder, and ConvLSTM encoders at matched parameter count and matched $f_c$, which isolates whether the recurrent 2D operator adds anything.

Why not just…?

Why not just use frame-level style tokens in a 1D model, as PFlow-VC already does? This is the main threat. If 1D frame tokens with an implicit, unconstrained bandwidth already track mid-utterance emotion changes without leakage, our contribution shrinks to a diagnostic. The leakage probe and the spliced-reference test settle the question directly: we apply both to PFlow-VC's timbre tokens. Our prediction is that unconstrained tokens either leak phonetic content, which the probe would detect, or smooth emotion changes away. We expect an explicit cutoff to dominate them on the trade-off curve. If it does not, we report that result.

Why not just compute windowed Gram matrices and low-pass them, with no learned spatio-temporal encoder? This alternative is plausible enough that we made it the central method rather than a strawman. The ConvLSTM encoder is a secondary arm, kept only if it beats the analytic trajectory at matched compute on vibrato and glissando. Those are the cases where frequency-axis structure plausibly matters, because GTSinger defines these techniques as structured oscillations across frequency over time. The extra computational cost of ConvLSTM is a known weakness, and it has to buy measurable accuracy.

Why not just condition on a pretrained emotion recognizer's embedding? DeepEST and EmoMix do this, and they produce a single static vector per utterance. DeepEST's authors also report that recognizer mistakes, for example on happy speech, carry directly into the conversion. A frame-wise recognizer could be used instead, but it would encode only the emotion categories it was trained on. It would not capture texture such as vibrato extent. We include a frame-wise recognizer-embedding trajectory, low-passed at the same $f_c$, as an extra comparison arm.

Proposed Experiments

The primary benchmark is the Emotional Speech Dataset (ESD), which has 350 parallel utterances per speaker across five emotions. Its parallel structure gives aligned ground truth. We build spliced references by concatenating parallel segments of different emotions, for example neutral followed by angry, at a known switch point. Outputs are scored with a frame-level emotion recognizer. The main measure is the error between the true switch time and the switch time detected in the output, alongside per-segment emotion consistency, word error rate, and speaker similarity.

The leakage test pairs a source with a reference whose sentence is different. Leakage shows up as higher word error rate and higher phoneme-probe accuracy on $S_t$.

For singing we use GTSinger, which provides technique labels for vibrato, glissando, and breathy voice. We transfer techniques that occur only on part of a phrase. We score technique presence with a recognizer over time, and score vibrato rate and depth from F0 contours, against the reference.

The decisive check is the shape of the trade-off curve. If there is a cutoff band, which we expect around a few Hz, where switch-time error and technique-tracking error are low while leakage stays at the level of the global Gram loss, the claim holds. If leakage rises monotonically as soon as $f_c > 0$, with no such plateau, then time-resolved style is incompatible with Gram-style disentanglement. That would be a useful negative result. Separately, the ConvLSTM encoder is kept only if it beats the filtered Gram trajectory on GTSinger technique tracking at matched compute.