Instructions to use NewGame/libritts_lace_soundstream with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ESPnet
How to use NewGame/libritts_lace_soundstream with ESPnet:
unknown model type (must be text-to-speech or automatic-speech-recognition)
- Notebooks
- Google Colab
- Kaggle
ESPnet3 lace model
Packed model bundle generated from egs3/libritts/lace.
Model
- Repository:
NewGame/libritts_lace_soundstream - Recipe:
egs3/libritts/lace - Corpus:
libritts - System:
lace - Creator:
thanapattrachu - Created:
2026-11-29T10:51:44 - Branch:
espnet3/recipe/libritts_lace - Git:
cbe258bcb5f(clean) - Origin: https://github.com/NewGamezzz/espnet.git
Model summary
- Class:
LACE - Total parameters:
54,907,438 - Learnable parameters:
54,907,438(100.0%) - Non-trainable parameters:
0 - Parameter size:
219.63 MB - Buffers:
33,666,992(134.67 MB) - Modules:
970total,406leaf - DType composition:
torch.float32(161.3%)
Usage
from espnet3.publication import InferenceModel
model = InferenceModel.from_pretrained("NewGame/libritts_lace_soundstream")
output = model({"audio": "speech.wav"}) # a path, a (rate, samples) pair, or an array
audio = output["resyn_audio"] # the resynthesized Audio: audio.array (float32) at audio.rate
The input is encoded with the LACE codec at its compression rate and decoded back; it is resampled to the codec's rate and averaged to one channel before encoding.
Any LACEAudioCoding argument replaces the packed one, for example the
compression rate:
model = InferenceModel.from_pretrained("NewGame/libritts_lace_soundstream", rate=0.25)
Packaging
- Bundle:
model_pack - Exp dir:
./exp/soundstream - Strategy:
copy experiment outputs; register named artifact files; apply exclude filters
Results
| dataset | ci_sdr | dns_overall | dns_p808 | sdr | si_snr | utmos |
|---|---|---|---|---|---|---|
| test | 3.0749 | 3.0914 | 3.7416 | 3.1194 | 0.0299 | 3.7334 |
Training config
expand
num_device: 4
num_nodes: 1
recipe_dir: .
data_dir: ./data
exp_tag: soundstream
exp_dir: ./exp/soundstream
stats_dir: ./exp/soundstream/stats
inference_dir: ./exp/soundstream/inference
create_dataset:
recipe_dir: .
dataset:
_target_: espnet3.components.data.data_organizer.DataOrganizer
recipe_dir: .
train:
- data_src_args:
split: train
valid:
- data_src_args:
split: valid
preprocessor:
_target_: espnet2.train.preprocessor.CommonPreprocessor
train: true
token_type: null
speech_name: audio
force_single_channel: true
audio_pad_value: 0.0
_convert_: all
_convert_: all
model:
_target_: espnet3.systems.lace.src.lace.LACE
freeze_codec_module_name: none
compression_model:
name: dp_segmentation
params:
max_span: 4
min_rate: 0.25
max_rate: 1.0
random_rate: per_quantizer
eval_rate: 0.5
pretrained_model_tag: espnet/libritts_soundstream24k
_convert_: all
optimizers:
generator:
optimizer:
_target_: torch.optim.AdamW
lr: 0.0001
betas:
- 0.5
- 0.9
eps: 1.0e-09
weight_decay: 0.0
_convert_: all
params: generator
accum_grad_steps: 1
step_every_n_iters: 1
gradient_clip_val: 1.0
discriminator:
optimizer:
_target_: torch.optim.AdamW
lr: 0.0001
betas:
- 0.5
- 0.9
eps: 1.0e-09
weight_decay: 0.0
_convert_: all
params: discriminator
accum_grad_steps: 1
step_every_n_iters: 1
gradient_clip_val: 1.0
schedulers:
generator:
scheduler:
_target_: torch.optim.lr_scheduler.ExponentialLR
gamma: 0.999998
_convert_: all
interval: step
discriminator:
scheduler:
_target_: torch.optim.lr_scheduler.ExponentialLR
gamma: 0.999998
_convert_: all
interval: step
optimizer: null
scheduler: null
scheduler_interval: null
scheduler_monitor: null
best_model_criterion:
- - valid/mel_loss
- 5
- min
- - train/mel_loss
- 5
- min
- - step
- 5
- max
seed: null
parallel:
env: local
n_workers: 1
dataloader:
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
train:
iter_factory:
_target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
batch_size: 16
chunk_length: 24000
num_cache_chunks: 64
num_samples_per_epoch: 10000
shuffle: true
num_workers: 4
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
batches:
type: unsorted
batch_size: 1
batch_bins: 0
shape_files:
- ./data/manifest/train.tsv
_convert_: all
valid:
iter_factory:
_target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
batch_size: 16
chunk_length: 24000
num_cache_chunks: 64
shuffle: false
num_workers: 4
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
batches:
type: unsorted
batch_size: 1
batch_bins: 0
shape_files:
- ./data/manifest/valid.tsv
_convert_: all
trainer:
accelerator: auto
devices: 4
num_nodes: 1
strategy: ddp_find_unused_parameters_true
accumulate_grad_batches: 1
check_val_every_n_epoch: 1
log_every_n_steps: 500
max_steps: 30000
gan:
generator_first: true
skip_discriminator_prob: 0.3
logger:
- _target_: lightning.pytorch.loggers.TensorBoardLogger
save_dir: ./exp/soundstream/tensorboard
name: tb_logger
_convert_: all
fit: {}
Citing ESPnet
@inproceedings{watanabe2018espnet,
author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and
Jiro Nishitoba and Yuya Unno and Nelson Yalta and Jahn Heymann and Matthew Wiesner
and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
title={{ESPnet}: End-to-End Speech Processing Toolkit},
year={2018},
booktitle={Proceedings of Interspeech},
pages={2207--2211},
doi={10.21437/Interspeech.2018-1456}
}
- Downloads last month
- 30
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support