Urgent.News

What's breaking now, across thousands of outlets.

Tech

TTS That Changes "Recording Room" Every Time You Generate โ€” Style Falls Apart Unless You Match the Acoustics of Your Source Material

๐Ÿ“ Originally published (in Japanese) at forge.workstyle.tech . Why Generated TTS Sounds Different Every Time The training corpus for my voice model was generated using another TTS system. Same speaker settings, same model, same server. Yet the audio quality varies from clip to clip . I first noticed this when switching emotional styles. When changing from a "joy" style to a "sadness" style, notโ€ฆ

Generated TTS voices change their sound quality every time they are generated, even when using the same settings, model, and server. The variation in audio quality is most noticeable when switching between different emotional styles, such as joy, sadness, and anger. This is because the training corpus was generated using different reference audio for each emotion, which results in varying frequency characteristics.

The stricter the quality gate, the flatter the readings survive, leading to slightly different spectral shapes in each anchor. As a result, the TTS model learns not just the style but also the acoustic characteristics of the reference, causing the sound quality to shift between emotional groups.

To address this issue, a technique called LTAS (Long-Term Average Spectrum) was used to align all clips to a common frequency characteristic before training. The process involves computing the LTAS from the entire corpus or a reference clip group, calculating the difference between each clip's LTAS and the reference, and applying EQ to cancel out the difference.

The RMS gain is then normalized to prevent amplifying noise or introducing hiss in high-frequency ranges. Additionally, zero-phase processing is used to avoid shifting the phase during EQ application.

The main goal of this normalization process was to eliminate the sudden change in sound quality when switching emotional styles. However, an unexpected side effect was that extreme performance clips, such as screams or laughter, became trainable. Before normalization, these clips would degrade the entire model due to their high dynamic range and distinct spectra. After normalization, the model started learning the temporal structure of extreme performances, such as rapid pitch sweeps in screams.

While normalization helps remove irrelevant information, such as channel characteristics, overdoing it can cause issues like losing speaker identity or emotional acoustic features. The ยฑ10dB correction limit helps maintain emotional differences while avoiding the loss of important information. Choosing the right reference for alignment is also crucialโ€”using the average of the entire corpus can be problematic if many clips are of poor quality. To implement this technique, all clips should be processed in bulk just before training.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

Two AWS IAM privesc tools, one path finder

Four things that surprised me while grading PMapper and cloudfox against a deliberately broken AWS account. Over two weekends I deployed Bishop Fox's iam-vulnerable into a throwaway AWS account andโ€ฆ

  • PMapper crashed during grading due to unhandled errors in region search
  • cloudfox successfully completed grading with 94 principals and 44 trust edges
  • PMapper's grading answer key missed six potential privilege escalation mechanisms

More from Tuesday 1 September โ†’