DAC auto-encoder models
provide compact discrete tokenization of speech and audio signals that facilitate signal generation by cascaded generative AI models (e.g. multi-modal generative AI models) and high-quality reconstruction of the original signals.
The current finetuned models
improve upon the
original DAC models
by allowing a more compact representation for wide-band speech signals with high-quality signal reconstruction. The models achieve speech reconstruction, which is
nearly indistinguishable from PCM
with a rate of 150-300 tokens per second
(1500-3000 bps).
The evaluation
used comprehensive English speech data encompassing different recording conditions, including studio settings.
This command will create
.dac
files with the same name as the input files. It will also preserve the directory structure relative to input root and re-create it in the output directory. Please use
python -m dac encode --help
for more options.
This command will create
.wav
files with the same name as the input files. It will also preserve the directory structure relative to input root and re-create it in the output directory. Please use
python -m dac decode --help
for more options.
Programmatic Usage
import dac
from audiotools import AudioSignal
# Download a model
model_path = 'weights_24khz_3.0kbps_v1.0.pth'
model = dac.DAC.load(model_path)
model.to('cuda')
# Load audio signal file
signal = AudioSignal('input.wav')
# Encode audio signal as one long file# (may run out of GPU memory on long files)
signal.to(model.device)
x = model.preprocess(signal.audio_data, signal.sample_rate)
z, codes, latents, _, _ = model.encode(x)
# Decode audio signal
y = model.decode(z)
# Alternatively, use the `compress` and `decompress` functions# to compress long files.
signal = signal.cpu()
x = model.compress(signal)
# Save and load to and from disk
x.save("compressed.dac")
x = dac.DACFile.load("compressed.dac")
# Decompress it back to an AudioSignal
y = model.decompress(x)
# Write to file
y.write('output.wav')
DAC.speech.v1.0 huggingface.co is an AI model on huggingface.co that provides DAC.speech.v1.0's model effect (), which can be used instantly with this ibm-research DAC.speech.v1.0 model. huggingface.co supports a free trial of the DAC.speech.v1.0 model, and also provides paid use of the DAC.speech.v1.0. Support call DAC.speech.v1.0 model through api, including Node.js, Python, http.
DAC.speech.v1.0 huggingface.co is an online trial and call api platform, which integrates DAC.speech.v1.0's modeling effects, including api services, and provides a free online trial of DAC.speech.v1.0, you can try DAC.speech.v1.0 online for free by clicking the link below.
ibm-research DAC.speech.v1.0 online free url in huggingface.co:
DAC.speech.v1.0 is an open source model from GitHub that offers a free installation service, and any user can find DAC.speech.v1.0 on GitHub to install. At the same time, huggingface.co provides the effect of DAC.speech.v1.0 install, users can directly use DAC.speech.v1.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.