Instructions to use multimodalart/resemble-enhance-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use multimodalart/resemble-enhance-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download multimodalart/resemble-enhance-mlx --local-dir resemble-enhance-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
File size: 534 Bytes
1edb764 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import sys
import soundfile as sf
from huggingface_hub import hf_hub_download
import resemble_enhance_mlx as re
ckpt = hf_hub_download("multimodalart/resemble-enhance-mlx", "resemble-enhance-mlx.safetensors")
model = re.load(ckpt, lambd=0.5)
src = sys.argv[1] if len(sys.argv) > 1 else "input.wav"
wav, sr = sf.read(src, dtype="float32")
if wav.ndim > 1:
wav = wav.mean(axis=1)
out, out_sr = re.enhance(model, wav, sr)
sf.write("enhanced.wav", out, out_sr)
print(f"wrote enhanced.wav ({len(out) / out_sr:.1f}s @ {out_sr} Hz)")
|