LEMAS‑Edit is a multilingual speech editing system, supporting 10 languages: Chinese English Spanish Russian French German Italian Portuguese Indonesian Vietnamese
See the codeLEMAS‑Edit is a multilingual version speech editing system, supporting 10 languages:
It bundles:
lemas_tts)lemas_edit)pretrained_models/)gradio_mix.py)Compared to the original LEMAS‑TTS repo, this project focuses on speech editing instead of pure TTS, and integrates both backends into a single interface.
Autoregressive codec speech editing backend
Multilingual speech editing (flow-matching backend)
multilingual_grl, multilingual_prosody)One Gradio UI for both backends
Edit Model selector: multilingual_grl, multilingual_prosody, autoregressivepretrained_models/git clone https://github.com/LEMAS-Project/LEMAS-Edit.git
cd ./LEMAS-Edit
conda create -n lemas-edit python=3.10
conda activate lemas-edit
You can install system dependencies via apt or conda:
sudo apt-get update
sudo apt-get install -y ffmpeg
or
conda install -c conda-forge ffmpeg
pip install -r requirements.txt
Install PyTorch + Torchaudio according to your device (CUDA / ROCm / CPU / MPS) following the official PyTorch instructions.
Download the pretrained models for both backends from https://huggingface.co/LEMAS-Project/LEMAS-Edit
and place pretrained_models/ in the directory next to the lemas_edit/ folder.
Once pretrained_models/ is in place, both lemas_tts and lemas_edit
will automatically find the checkpoints and vocabs.
All commands below assume:
cd ./LEMAS-Edit
export PYTHONPATH="$PWD:${PYTHONPATH}"
To launch the full editing UI locally:
python gradio_mix.py
You can customize host/port and sharing:
python gradio_mix.py --host 0.0.0.0 --port 7861 --share
The lemas_tts.scripts entrypoints are kept for convenience and behave as in
the original LEMAS‑TTS repo:
TTS from text:
lemas_tts.scripts.tts_multilinguallemas_tts/scripts/tts_multilingual.shspeech editing:
lemas_tts.scripts.speech_edit_multilinguallemas_tts/scripts/speech_edit_multilingual.shSee those scripts for detailed CLI options (model choice, ckpt paths, speed / NFE / CFG / Sway, etc.).
A direct CLI for the autoregressive codec backend is provided as a starting point:
lemas_edit.scripts.inference_lemas_editinglemas_edit/scripts/inference_lemas_editing.shThis script is a port of the original VoiceCraft/inference_lemas_editing.py
and is currently being adapted to the lemas_edit namespace. Its interface may
change; please refer to the script source for up‑to‑date arguments and usage.
We provide simple subjective listening tests (MUSHRA and ABX preference test) setup under ./eval.
To install the extra dependencies for evaluation, run:
pip install git+https://github.com/descriptinc/audiotools
pip install joypy pandas
To start the ABX preference test, install the extra dependencies and launch the tools:
cd ./eval/abx
python abx.py # launch Gradio ABX preference test UI
python plot.py # aggregate results and plot preference distributions
To start the MUSHRA listening test, install the extra dependencies and launch the tools:
cd ./eval/mushra
python mushra.py # launch Gradio MUSHRA listening test UI
This project builds on, and reuses code from, several open‑source projects:
If you use LEMAS‑Edit in your work, please also consider citing and acknowledging these upstream projects.
This repository is released under the CC‑BY‑4.0 license.
See https://creativecommons.org/licenses/by/4.0/ for more details.
10 commits
Python
99.5%
LEMAS‑Edit is a multilingual speech editing system, supporting 10 languages: Chinese English Spanish Russian French German Italian Portuguese Indonesian Vietnamese
See the codeLEMAS‑Edit is a multilingual version speech editing system, supporting 10 languages:
It bundles:
lemas_tts)lemas_edit)pretrained_models/)gradio_mix.py)Compared to the original LEMAS‑TTS repo, this project focuses on speech editing instead of pure TTS, and integrates both backends into a single interface.
Autoregressive codec speech editing backend
Multilingual speech editing (flow-matching backend)
multilingual_grl, multilingual_prosody)One Gradio UI for both backends
Edit Model selector: multilingual_grl, multilingual_prosody, autoregressivepretrained_models/git clone https://github.com/LEMAS-Project/LEMAS-Edit.git
cd ./LEMAS-Edit
conda create -n lemas-edit python=3.10
conda activate lemas-edit
You can install system dependencies via apt or conda:
sudo apt-get update
sudo apt-get install -y ffmpeg
or
conda install -c conda-forge ffmpeg
pip install -r requirements.txt
Install PyTorch + Torchaudio according to your device (CUDA / ROCm / CPU / MPS) following the official PyTorch instructions.
Download the pretrained models for both backends from https://huggingface.co/LEMAS-Project/LEMAS-Edit
and place pretrained_models/ in the directory next to the lemas_edit/ folder.
Once pretrained_models/ is in place, both lemas_tts and lemas_edit
will automatically find the checkpoints and vocabs.
All commands below assume:
cd ./LEMAS-Edit
export PYTHONPATH="$PWD:${PYTHONPATH}"
To launch the full editing UI locally:
python gradio_mix.py
You can customize host/port and sharing:
python gradio_mix.py --host 0.0.0.0 --port 7861 --share
The lemas_tts.scripts entrypoints are kept for convenience and behave as in
the original LEMAS‑TTS repo:
TTS from text:
lemas_tts.scripts.tts_multilinguallemas_tts/scripts/tts_multilingual.shspeech editing:
lemas_tts.scripts.speech_edit_multilinguallemas_tts/scripts/speech_edit_multilingual.shSee those scripts for detailed CLI options (model choice, ckpt paths, speed / NFE / CFG / Sway, etc.).
A direct CLI for the autoregressive codec backend is provided as a starting point:
lemas_edit.scripts.inference_lemas_editinglemas_edit/scripts/inference_lemas_editing.shThis script is a port of the original VoiceCraft/inference_lemas_editing.py
and is currently being adapted to the lemas_edit namespace. Its interface may
change; please refer to the script source for up‑to‑date arguments and usage.
We provide simple subjective listening tests (MUSHRA and ABX preference test) setup under ./eval.
To install the extra dependencies for evaluation, run:
pip install git+https://github.com/descriptinc/audiotools
pip install joypy pandas
To start the ABX preference test, install the extra dependencies and launch the tools:
cd ./eval/abx
python abx.py # launch Gradio ABX preference test UI
python plot.py # aggregate results and plot preference distributions
To start the MUSHRA listening test, install the extra dependencies and launch the tools:
cd ./eval/mushra
python mushra.py # launch Gradio MUSHRA listening test UI
This project builds on, and reuses code from, several open‑source projects:
If you use LEMAS‑Edit in your work, please also consider citing and acknowledging these upstream projects.
This repository is released under the CC‑BY‑4.0 license.
See https://creativecommons.org/licenses/by/4.0/ for more details.
10 commits
Python
99.5%