MossFormer2 offline speech enhancement, 48 kHz

AudioOfflineCommercial use OK

Keeps the voice of a video at 48 kHz and takes out noise, room sound and much of what is not speech, with the speech enhancement model of Alibaba's ClearerVoice-Studio, on your own computer. It runs on the CPU with no PyTorch, in about a fifth of the time the video plays.

Install it from Subtitld

Settings Add-ons MossFormer2 (offline speech enhancement, 48 kHz) Install

Subtitld downloads it, checks its SHA-256, and keeps it updated.

Source on GitHub
Models
1
Add-on download
14–17 MB
RAM, at least
768 MB

What it does

Voice and the rest

MossFormer2 gives Subtitld two tracks: what it keeps as speech, at 48 kHz, and the rest of the sound: noise, room sound and much of the music. Singing is not speech to it; for a song, use HTDemucs.

Your dub over the original

Export audio with Include background audio and your dub is mixed over the background, without the original voice.

Voices for cloning

When a voice-cloning add-on needs a sample of a speaker, Subtitld cuts it from the cleaned voice.

Once per video

Subtitld separates a video when you open it and keeps both tracks, so reopening the project reuses them.

Choose it under Global settings › General › Audio separator. The built-in ffmpeg separator stays in the list.

Before you install

MossFormer2 sits between the noise suppressors and HTDemucs:

  • Disk: about 240 MB, most of it the 221 MB model, downloaded the first time you separate a video. While it works, the add-on also keeps the video's decoded sound in Subtitld's temporary folder, about 11 MB a minute of video.
  • Memory: about 400 MB, whatever the length of the video.
  • Time: about 11 seconds for a minute of video on an Intel Core i7-13700T.

Which separator?

Separator Best for Speed Memory
Built-in ffmpeg A quick result, nothing to install Seconds Little
HTDemucs Voices over music and effects About real time About 1.5 GB
MossFormer2 Speech over noise and room sound About a fifth of real time About 400 MB
DeepFilterNet Speech over background noise About a tenth of real time About 200 MB
RNNoise Speech over hum, hiss and wind A second a minute About 100 MB

Models

There is one model, MossFormer2_SE_48K, the 48 kHz speech enhancement model of Alibaba's ClearerVoice-Studio, with its weights in 32-bit floats, as the audio.cpp project converted it.

Model DownloadGood for
MossFormer2 SE 48 kHz Default mossformer2-se-48k
211 MB
Speech over noise, room sound and music

It is not inside the add-on: it downloads into Subtitld's shared model cache the first time you separate a video, from Hugging Face at a pinned revision, and is checked. An interrupted download resumes where it stopped. Updating or removing the add-on keeps the model.

How it separates

The add-on reads the video's first audio track with Subtitld's own ffmpeg, so nothing else needs installing. The model then takes the sound in 30-second pieces, each overlapping the one before by a second, and blends the overlaps, so no seam is heard. Both tracks come back as 48 kHz mono, as the built-in separator's do. A cancelled separation stops between two pieces.

Subtitld keeps the tracks of every video it has separated and reuses them, so choosing another separator applies to videos that haven't been separated yet. To redo one, delete its files from the audioseparation folder in Subtitld's cache. From Subtitld 26.12, while the built-in separator is the default, you can also right-click the Music/Voice control and pick an add-on under Separate this video with, to try it on the open video.

Options

In Settings › Add-ons › MossFormer2 (offline speech enhancement, 48 kHz) › Configure.

CPU threads
Default: 0

0 picks the performance cores on CPUs that also have efficiency cores. Fewer threads keep the computer more responsive while it separates.

Platforms

System DownloadTested
Linux x86-64 16.9 MBSeparated real videos on a real machine and checked on AlmaLinux 8; built and checked in CI
macOS (Apple silicon) 16.1 MBIn CI, the installed add-on downloads the model, separates a video and cancels a separation (Apple Silicon)
Windows x86-64 13.6 MBIn CI, the installed add-on downloads the model, separates a video and cancels a separation

Linux x86-64 (any distribution from 2018 on, glibc 2.28 or newer), macOS 13.3 or newer on Apple Silicon, and Windows x86-64. Each release is built on all three, and on each CI installs the add-on, separates a video and cancels a separation.

Troubleshooting

From Subtitld 26.12 a failed separation shows its message; in earlier versions the Music/Voice control just stays off.

  • network_unavailableThe model couldn't be downloaded. Check your connection and try again: the download resumes.
  • disk_fullNot enough disk space, for the model or for the video's decoded sound.
  • oomOut of memory. Close other programs; MossFormer2 needs about 400 MB free.
  • bad_paramsThe video has no sound, or ffmpeg couldn't read it. The message says which.
  • internalSomething failed inside the add-on; the message has the details.

License

Add-on
Apache-2.0
Engine
Apache-2.0
audio.cpp, with ggml (MIT)
Model
Apache-2.0
MossFormer2_SE_48K weights, by Alibaba (ClearerVoice-Studio)

Fine for commercial work: the add-on, the audio.cpp engine and the MossFormer2 weights are all Apache-2.0, and ggml, which audio.cpp runs on, is MIT.

Versions

  • 26.11.1

    The voice of a video at 48 kHz, kept offline by the speech enhancement model of Alibaba's ClearerVoice-Studio, MossFormer2_SE_48K, run by audio.cpp on the CPU: no PyTorch.

    • Serves audio.separate: what MossFormer2 keeps is the voice, the rest of the mix the background. Noise, room and much of the music go; singing is not speech to it (for songs, use the HTDemucs add-on).
    • The model, 221 MB, downloads on the first separation, pinned and checked by sha256; an interrupted download resumes.
    • The sound goes through in 30-second pieces, crossfaded: about 400 MB of memory for any length, and Cancel stops between two pieces.
    • The voice and the background come back as 48 kHz mono FLAC.
    • A minute of video takes about 11 seconds on an Intel Core i7-13700T.

Other Audio add-ons