
MossFormer2 speech super-resolution. Mixes each AudioFrame to mono, resamples up into a 48 kHz container, and runs MossFormer2_SR_48K to restore the high band lost to low-rate capture, emitting one mono 48 kHz AudioFrame per input.
Lift telephone-band speech to 48 kHz before transcription: a recorded file is super-resolved to restore the high band, then transcribed for cleaner ASR on the wider bandwidth.
Denoise first, then super-resolve: a full-band speech denoiser strips noise so the SR model extends a clean signal, the SR model being trained on clean speech. The result is written to a 48 kHz file.
AudioFrame yields exactly one output AudioFrame. An empty input frame is returned unchanged at its original rate without invoking the model, so it is the one case the output is not 48 kHz. A clip too short for the model's STFT/band-split front end is passed through resampled to 48 kHz, without bandwidth extension.device is fixed at startup with no runtime mutation; changing it requires a redeploy, and it falls back to CPU when no GPU is present — CPU mode is well below real-time for this model. The MossFormer2_SR_48K weights are fetched by the ClearVoice runtime on first deploy and cached, so the first call also pays the download and cold-kernel cost.Automated release