Audio-to-Audio
TensorRT
moonbox
inworld
voice-isolation
speech-enhancement
denoising
noise-suppression
48khz
full-band
Run this model with HF Jobs
Run moonbox-dev/voice-isolator-TensorRT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/moonbox-dev/voice-isolator-TensorRT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/moonbox-dev/voice-isolator-TensorRT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use moonbox-dev/voice-isolator-TensorRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use moonbox-dev/voice-isolator-TensorRT with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Model card and the original license
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627Inworld Voice IsolatorCopyright 2026 Inworld AI
The model weights were trained on Inworld's first-party data, including datapurchased from vendors under private terms, and on these third-party datasets:
- VocalSet — CC BY 4.0, https://zenodo.org/records/1442513- IndicVoices-R — CC BY 4.0, https://huggingface.co/datasets/ai4bharat/indicvoices_r- VCTK — ODC-By 1.0, https://datashare.ed.ac.uk/handle/10283/2119
This product optionally downloads and uses, at runtime, third-party models andlibraries that remain under their own licenses:
- Mamba selective-scan kernels (mamba-ssm, causal-conv1d) — Apache-2.0, https://github.com/state-spaces/mamba (optional [fast] extra; without it the same scan runs in plain PyTorch).
The golden parity fixtures include a modified LibriSpeech recording underCC BY 4.0; see tests/fixtures/README.md. They are not included in the Pythonpackage.
Changes by Moonbox (moonbox-dev): the offline model (denoiser.safetensors of inworld/voice-isolator, revision9b0285b3fe8403aa8e2f1dbb2165a80a4294c970) was exported to one ONNX graph (the network between the STFT and theiSTFT; the selective scan of the Mamba layers as an ONNX Scan with the same float32 arithmetic), stored with fp16weights, and built into a TensorRT engine with fp32 weights; pipeline.py / pipeline_trt.py reimplement the STFT, iSTFTand 8 s windowing of inworld-voice-isolation in numpy. Nothing was retrained or fine-tuned.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276---base_model: inworld/voice-isolatorbase_model_relation: quantizedlicense: apache-2.0pipeline_tag: audio-to-audiolibrary_name: tensorrttags:- tensorrt- moonbox- inworld- voice-isolation- speech-enhancement- denoising- noise-suppression- 48khz- full-band---
# Inworld Voice Isolator TensorRT
TensorRT engines of [Inworld Voice Isolator](https://huggingface.co/inworld/voice-isolator), made by Moonbox for NVIDIA RTX GPUs. Each precision is one folder holding theengine, `trt_runner.py` (a small numpy runner: TensorRT plus Polygraphy, no PyTorch) and a script that does the restof the pipeline. What the engine takes and returns is under *How to run*.
**Compatibility.** The engines are built *hardware compatible* (Ampere and newer: RTX 30, 40 and 50 series) and*version compatible* (any TensorRT 10.x from 10.13 on, through its lean runtime). That costs a little speed against anengine built for one GPU, but no rebuild is needed. Install the runtime with`pip install "tensorrt-cu12>=10.13,<11" "tensorrt-lean-cu12>=10.13,<11" polygraphy numpy`.
## Files
The last column is the benchmark (details under *How to run*).
| Precision | File | Size | sha256 | Benchmark ||---|---|---|---|---|| fp16 | [`fp16/model.engine`](https://huggingface.co/moonbox-dev/voice-isolator-TensorRT/blob/main/fp16/model.engine) | 375.3 MB | `3ad3e431070d` | fp32 math (as the ONNX fp16-storage build): PESQ 3.259, STOI 0.9553, SI-SDR 19.91 dB (the ONNX build 3.261 / 0.9553 / 19.91); no file below the ONNX build by more than 0.003 dB; RTF 0.087 (ONNX 0.26), 7.7 GB peak || fp16 | [`fp16/pipeline.py`](https://huggingface.co/moonbox-dev/voice-isolator-TensorRT/blob/main/fp16/pipeline.py) | 4.3 kB | `108a5130bf62` | fp32 math (as the ONNX fp16-storage build): PESQ 3.259, STOI 0.9553, SI-SDR 19.91 dB (the ONNX build 3.261 / 0.9553 / 19.91); no file below the ONNX build by more than 0.003 dB; RTF 0.087 (ONNX 0.26), 7.7 GB peak || fp16 | [`fp16/pipeline_trt.py`](https://huggingface.co/moonbox-dev/voice-isolator-TensorRT/blob/main/fp16/pipeline_trt.py) | 1.6 kB | `f2117455aba5` | fp32 math (as the ONNX fp16-storage build): PESQ 3.259, STOI 0.9553, SI-SDR 19.91 dB (the ONNX build 3.261 / 0.9553 / 19.91); no file below the ONNX build by more than 0.003 dB; RTF 0.087 (ONNX 0.26), 7.7 GB peak || fp16 | [`fp16/trt_runner.py`](https://huggingface.co/moonbox-dev/voice-isolator-TensorRT/blob/main/fp16/trt_runner.py) | 4.4 kB | `cbc9abb1f59c` | fp32 math (as the ONNX fp16-storage build): PESQ 3.259, STOI 0.9553, SI-SDR 19.91 dB (the ONNX build 3.261 / 0.9553 / 19.91); no file below the ONNX build by more than 0.003 dB; RTF 0.087 (ONNX 0.26), 7.7 GB peak |
## How to run
Inworld Voice Isolator v1 as one TensorRT engine and `pipeline_trt.py`. This is the offline model: 64M parameters, aband-split dual-path network with transformers and bidirectional Mamba along time and across bands. It keeps thevoice and removes noise, music and reverb from 48 kHz mono audio.
The pipeline is this model's ONNX `pipeline.py` with its graph run as the engine. The STFT, the iSTFT, and theoriginal's 8 s windows overlapping by 2 s with linear crossfades stay in numpy.
```pythonimport sys; sys.path.insert(0, "fp16")import soundfile as sffrom pipeline_trt import VoiceIsolatorTrt
iso = VoiceIsolatorTrt("fp16")audio, sr = sf.read("noisy.wav", dtype="float32") # mono, 48 kHz (resample other rates first)sf.write("voice.wav", iso.isolate(audio), 48000)```
Or `python fp16/pipeline_trt.py noisy.wav voice.wav`. It needs numpy, TensorRT 10.13 (`tensorrt-cu12` or`tensorrt-lean-cu12`) and Polygraphy, and soundfile to read files. The engine is version-compatible and built forAmpere or newer GPUs (RTX 30-series and up).
**The engine.** `model.engine` takes `spec` [1, 1025, T, 2] and returns `change` [1, 1025, T, 2].- `spec` holds the real and imaginary parts of the STFT: n_fft 2048, hop 480, periodic Hann, centred.- `change` is the complex correction to that spectrum. The output audio is the input plus the iSTFT of the change.- T runs from 100 to 801 frames, so each call takes 1 to 8 s. Longer audio goes through the 8 s windows; audio shorter than 1 s isn't accepted.
Inworld's realtime model is a separate graph, in[moonbox-dev/voice-isolator-realtime-ONNX](https://huggingface.co/moonbox-dev/voice-isolator-realtime-ONNX).
**Precisions.** `fp16/` is built from the ONNX `fp16/` build, whose weights are stored in fp16 and read as fp32 (fp16activations overflow in this network). The casts are folded into fp32 weights, so the engine's arithmetic is fp32 likethe ONNX build's, and the engine is 375 MB. The Mamba layers' selective scan, an ONNX Scan in the graph, runs as aTensorRT loop. There is no int8: TensorRT's int8 needs calibrated activations.
**Benchmark.**- **Data:** VoiceBank-DEMAND test, 824 files at 48 kHz, on an RTX 3080 Laptop GPU.- **Score:** PESQ-WB, STOI and SI-SDR against the clean speech, and the per-file SI-SDR difference from the ONNX `fp16/` build.- **Pass mark** (set before the first run): no file more than 0.5 dB SI-SDR below the ONNX build's. The ONNX build is itself 81.8 dB from the original (inworld-voice-isolation's `VoiceIsolator.isolate`, offline, fp32).
| | PESQ | STOI | SI-SDR | worst file vs the ONNX build | real-time factor ||---|---|---|---|---|---|| original (PyTorch fp32, CUDA) | 3.259 | 0.9553 | 19.91 dB | - | 0.22 || ONNX `fp16/` (CUDA) | 3.261 | 0.9553 | 19.91 dB | - | 0.26 || TensorRT `fp16/` | 3.259 | 0.9553 | 19.91 dB | -0.003 dB | 0.087 |
The process peaked at 7.7 GB of system memory on Windows, GPU memory included.
## How these were made
From [Inworld Voice Isolator](https://huggingface.co/inworld/voice-isolator) at revision `9b0285b3fe`: each engine was built with TensorRT's builder from Moonbox's publishedONNX graph of the same model and precision. The network is *strongly typed*: every tensor keeps the precision theONNX graph gives it, so an fp16 engine computes what the fp16 ONNX build computes. Built on an RTX 3080 Laptop GPU,it was benchmarked against the original before upload, and the `sha256` column above is what the files must hash to.
## License
Apache-2.0. These files are a derivative of the original model and carry its license: it is copied in thisrepository, and it governs your use of these files. The original model card follows unchanged.
---
# Original model card
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/inworld-logo-white.svg"> <img src="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/inworld-logo-black.svg" alt="Inworld" width="220"> </picture></p>
<h1 align="center">Voice Isolator</h1>
<p align="center"> Open-license (Apache-2.0) 48 kHz voice isolation for noisy speech recordings and live audio.</p>
<p align="center"> <a href="https://github.com/inworld-ai/voice-isolator"><img src="https://img.shields.io/badge/GitHub-inworld--ai%2Fvoice--isolator-181717?logo=github" alt="GitHub: inworld-ai/voice-isolator"></a></p>
---
## TL;DR
Inworld Voice Isolator v1 ships as two models that share one architecture:
| | `voice-isolator-v1` | `voice-isolator-v1-realtime` ||---|---|---|| made for | recorded audio and anything not latency-sensitive, at the best quality | live audio, as a stream in your pipeline or production || how it runs | offline: every frame sees its whole 8 s chunk | a causal stream with 20 ms of look-ahead || parameters | 64M | 58M |
**Use them for** cleaning recordings before playback or publication, curating speech datasets and voice pipelines where the speaker's identity must survive.With the realtime model, use them for live calls and streams.Subtract the isolated voice from the input to extract background noise or a backing-track residual for vocals/music separation.
**They are not** a speaker selector or a restoration model.Restoration is planned for version 2 (see [Plans](https://github.com/inworld-ai/voice-isolator#plans)).
## Quick start
Using a coding agent? Point it at the [setup section of AGENTS.md](https://github.com/inworld-ai/voice-isolator/blob/main/AGENTS.md#setting-up-the-voice-isolator-for-a-user): it installs the package, checks the machine with `voice-isolate-doctor` and cleans a first file.
```bashpip install inworld-voice-isolation# or from a clone: git clone https://github.com/inworld-ai/voice-isolator && cd voice-isolator && pip install -e .
# a noisy example; a clone also has it at demo/examples/sample_14.wavcurl -LO https://raw.githubusercontent.com/inworld-ai/voice-isolator/main/demo/examples/sample_14.wav
# offline isolation (downloads the offline model on first use):# the voice goes to sample_14_clean.wav and the removed background# to sample_14_clean_background.wav, beside itvoice-isolate sample_14.wav sample_14_clean.wav```
Both are float32 WAVs at 48 kHz, with their original levels preserved; together they reconstruct the aligned mono input.Use `--output-sr 0` to keep the input rate, `--background noise.wav` to choose the background path for one file, or `--no-background` to save only the voice.
```pythonfrom inworld import voice_isolation
# isolate a recording offlineoffline = voice_isolation.VoiceIsolator("inworld/voice-isolator")wav, sample_rate = voice_isolation.load_audio("sample_14.wav")voice = offline.isolate(wav, sample_rate)voice_isolation.save_audio("sample_14_clean.wav", voice, sample_rate, subtype="FLOAT")voice_isolation.save_audio("sample_14_clean_background.wav", wav - voice, sample_rate, subtype="FLOAT") # what was removed```
### Streaming
The realtime model isolates the voice as the audio arrives, with 20 ms of look-ahead:
```pythonimport torchfrom inworld import voice_isolation
live = voice_isolation.VoiceIsolator("inworld/voice-isolator", mode="streaming", lookahead_frames=2)session = live.stream() # takes 48 kHz mono, in pieces of any sizewav, sample_rate = voice_isolation.load_audio("sample_14.wav") # 48 kHz mono, standing in for a live sourcevoice = []for start in range(0, len(wav), 960): # 20 ms at a time, as a microphone delivers it voice.append(session.push(wav[start:start + 960])) # the samples that are final: play or send themvoice.append(session.flush()) # the rest, once the source endsvoice_isolation.save_audio("sample_14_streamed.wav", torch.cat(voice), sample_rate)```
The streaming CLI writes only the isolated voice, after the whole file has gone through:
```bashvoice-isolate sample_14.wav sample_14_streamed.wav --mode streaming --lookahead 2```
The weights download on first use, and their checksums are verified.The mode picks the checkpoint: `voice-isolator-v1` offline, `voice-isolator-v1-realtime` for streaming.CUDA is used when available, Apple's Metal backend (`mps`) on an Apple-silicon Mac with PyTorch 2.6 or later, and the CPU otherwise; `--device` picks one.
The code, the [interactive demo](https://github.com/inworld-ai/voice-isolator/blob/main/demo/README.md) and the [benchmark](https://github.com/inworld-ai/voice-isolator/blob/main/bench/README.md) are on GitHub: [inworld-ai/voice-isolator](https://github.com/inworld-ai/voice-isolator).The demo loads both models at startup: **Offline** processes files and samples into voice and background audio; **Online** streams the microphone for up to 60 seconds with updating waveforms and spectrograms, pausing capture before playback.
## Hardware
Tested on NVIDIA Ampere, Hopper and Blackwell GPUs (A100, H100, B200 and B300) and on CPU.Smaller GPUs are not tested yet (see [Plans](https://github.com/inworld-ai/voice-isolator#plans)).
## The VIBE benchmark
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/board-dark.svg"> <img src="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/board-light.svg" alt="Inworld VIBE full-band tier: denoising score per system" width="100%"> </picture></p>
Inworld VIBE (Voice Isolation Benchmark and Evals) ranks 48 kHz voice isolators on two boards.The chart is the denoising board, which ranks every system except those that put more than 10 dB more energy above a band-limited input's band than inside it; those are ranked on restoration.Inworld scores every system on its internal evaluation set, which is not distributed.
[How the systems are scored and what the scores mean](https://github.com/inworld-ai/voice-isolator/blob/main/bench/README.md).
## Architecture
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/architecture-dark.svg"> <img src="https://huggingface.co/inworld/voice-isolator/resolve/main/docs/assets/architecture-light.svg" alt="The network: STFT, band split, seven dual-path blocks, per-band heads, iSTFT; the two checkpoints" width="100%"> </picture></p>
A band-split dual-path network over the STFT (n_fft 2048, hop 480 at 48 kHz, 10 ms frames).Each frame's spectrum is cut into 46 bands, narrow at low frequency and wide at the top, one token per band and frame, width 512.Seven blocks refine the tokens, alternating two kinds.Four blocks run time attention with rotary position and exclusive self attention, followed by attention across bands.Three blocks run Mamba along time, followed by Mamba across bands (state 16).Per-band heads produce a bounded complex mask and a bounded per-bin residual, added to the input spectrum.The offline model has 64.0M parameters.The realtime model has 58.2M; its blocks are causal and it carries a look-ahead embedding.Input is one channel at 48 kHz; nothing is separated or synthesized beforehand.
## Two checkpoints
The offline model, `voice-isolator-v1`, is two-sided: every frame sees its whole 8 s chunk, and long inputs render in 8 s chunks overlapping by 2 s.The realtime model, `voice-isolator-v1-realtime`, is causal, with a trained look-ahead of 0, 20 or 40 ms; its algorithmic latency is 63 ms at 20 ms of look-ahead.Both keep the foreground voice: when two people speak at once, the louder voice is kept and one a few dB quieter is removed, while voices at similar levels are usually both kept.In the speech-enhancement literature, version 1 does denoising (noise suppression): it removes what surrounds the voice and restores nothing the recording lost, such as missing bandwidth; restoration comes with version 2.
## Training data
Inworld Voice Isolator v1 was trained on approximately 10,000 hours of unique audio.Paired examples built from recorded speech: read and conversational speech in many languages, expressive and character voices, whispered speech, singing, and the speaker's own non-verbal sounds such as laughter, breaths and sighs.The speech was mixed with environmental and household noise, traffic, rain and wind, music and crowd sound, isolated transient events and competing talkers, through measured and simulated room responses and telephony and codec degradations.Real recordings of the same speech, captured clean and in rooms, complete the set.The objective: return the voice as it was recorded, remove everything that is not the speaker (noise, music, other voices and the late room tail), keep the speaker's own non-verbal sounds, level and timing, and invent nothing.
Third-party datasets used in training are credited in [NOTICE](NOTICE).
## License
Code and weights are Apache-2.0 ([LICENSE](LICENSE)).Third-party notices are in [NOTICE](NOTICE).
## How to contribute
Everyone is welcome to use the model however they like and to make it better in any way they see fit!Development happens on GitHub: see [CONTRIBUTING.md](https://github.com/inworld-ai/voice-isolator/blob/main/CONTRIBUTING.md) for setup, tests and bug reports.
---
<p align="center">Built for people with ❤️ by Inworld.</p>LICENSEAdded+202
NOTICEAdded+27
README.mdAdded+276