voice-isolator-ExecuTorch

This repository hosts the Inworld Voice Isolator v1 voice isolation model exported for the React Native ExecuTorch library as an ExecuTorch .pte program, ready to run on device.

Upstream model: Inworld Voice Isolator (the offline checkpoint, voice-isolator-v1, 64M parameters)

Inputs and outputs

The Voice Isolator keeps the foreground voice of a recording and removes what surrounds it: noise, music, other voices and the late room tail. It restores nothing the recording lost. This export runs it at 48 kHz.

The file has one inference method, forward.

forward(wav) -> wav

  • wav float32 [N]: 48 kHz mono in [-1, 1]. N runs from 9600 to 384000 samples (0.2 to 8 s) and must be a multiple of 480 (10 ms): pad a clip's last samples with zeros and trim the output. Resampling to 48 kHz and downmixing to mono happen outside the model.
  • output float32 [N]: the isolated voice, 48 kHz mono, as long as the input and at its level. Subtract it from the input to get what was removed.

Pass a clip of up to 8 s at its real length. Render a longer one as the original model does: in 8 s windows that overlap by 2 s, joined with a linear crossfade, the last window ending at the clip's end.

Variants

Path Backend Precision
mlx/fp16/voice_isolator_mlx_fp16.pte mlx fp16

Repository structure

LICENSE                                   11.4 kB
NOTICE                                    904 B
config.json                               36 B
mlx/fp16/voice_isolator_mlx_fp16.pte      160.4 MB

Compatibility

This file is published for the ExecuTorch v1.4.1 runtime with the MLX backend (Apple GPUs). ExecuTorch gives no forward compatibility guarantee, so an older runtime may fail to load it.

The program runs custom Metal kernels: the MLX backend must be built with ET_MLX_ALLOW_CUSTOM_KERNEL_EXECUTION, as React Native ExecuTorch's is.

The file carries the get_model_schema method that React Native ExecuTorch reads for the input's length range. The library has no task pipeline for this model yet. See the documentation for loading models.

To load it in your own ExecuTorch runtime, read the compatibility note first.

Model details

  • MLX on the GPU. The network computes in fp16, and the STFT, the inverse STFT, the band encoders' and decoder's layer norms and the complex mask in fp32. The Mamba convolutions and selective scans, the rotary positions, the exclusive self attention, the GELUs and the Mamba layer norms run as custom Metal kernels.
  • Scaled for fp16. The Mamba scans' outputs pass fp16's range on real audio, so they are computed scaled by 2โปโธ. The scaling is exact.

Measured with MLX's default 256 MB buffer cache. Quality is the signal-to-noise ratio of the output against the original model's (PyTorch, fp32) on a noisy clip.

Device Input Time Peak memory
Apple M4 Pro 2 s 0.17 s ~1.0 GB
Apple M4 Pro 4 s 0.34 s ~1.2 GB
Apple M4 Pro 8 s 0.70 s ~1.3 GB
iPhone 17 8 s 1.05 s ~0.9 GB

The Mac's memory includes about 0.3 GB of the Python process that ran the measurement.

Comparison SNR
Apple M4 Pro vs the original 74.7 dB
iPhone 17 vs the original 64.6 dB

License

The model is released by Inworld AI under the Apache License, version 2.0. A copy is in LICENSE, and Inworld's notices, with the datasets the model was trained on, in NOTICE; keep both when redistributing the model.

Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for software-mansion/voice-isolator-ExecuTorch

Quantized
(4)
this model