Introduction of neuphonic-neucodec-onnx-decoder-int8-mirror
Model Details of neuphonic-neucodec-onnx-decoder-int8-mirror
NeuCodec Onnx Decoder
This is an onnx-compiled version of the decoder of
NeuCodec
, quantized to int8.
It's main use case is providing a low footprint decoder for on-device TTS.
Usage
import librosa
import torch
import soundfile as sf
from torchaudio import transforms as T
from neucodec import NeuCodec, NeuCodecOnnxDecoder
model = NeuCodec.from_pretrained("neuphonic/neucodec")
model.eval()
compiled_model = NeuCodecOnnxDecoder.from_pretrained("neuphonic/neucodec-onnx-decoder-int8")
y, sr = torchaudio.load(librosa.ex("libri1"))
if sr != 16_000:
y = T.Resample(sr, 16_000)(y)[None, ...] # (B, 1, T_16)with torch.no_grad():
fsq_codes = model.encode_code(y)
# fsq_codes = model.encode_code(librosa.ex("libri1")) # or directly pass your filepath!print(f"Codes shape: {fsq_codes.shape}")
recon = compiled_model.decode_code(fsq_codes) # (B, 1, T_24)
sf.write("reconstructed.wav", recon, 24_000)
Runs of aoiandroid neuphonic-neucodec-onnx-decoder-int8-mirror on huggingface.co
36
Total runs
1
24-hour runs
0
3-day runs
8
7-day runs
-441
30-day runs
More Information About neuphonic-neucodec-onnx-decoder-int8-mirror huggingface.co Model
More neuphonic-neucodec-onnx-decoder-int8-mirror license Visit here:
neuphonic-neucodec-onnx-decoder-int8-mirror huggingface.co is an AI model on huggingface.co that provides neuphonic-neucodec-onnx-decoder-int8-mirror's model effect (), which can be used instantly with this aoiandroid neuphonic-neucodec-onnx-decoder-int8-mirror model. huggingface.co supports a free trial of the neuphonic-neucodec-onnx-decoder-int8-mirror model, and also provides paid use of the neuphonic-neucodec-onnx-decoder-int8-mirror. Support call neuphonic-neucodec-onnx-decoder-int8-mirror model through api, including Node.js, Python, http.
neuphonic-neucodec-onnx-decoder-int8-mirror huggingface.co is an online trial and call api platform, which integrates neuphonic-neucodec-onnx-decoder-int8-mirror's modeling effects, including api services, and provides a free online trial of neuphonic-neucodec-onnx-decoder-int8-mirror, you can try neuphonic-neucodec-onnx-decoder-int8-mirror online for free by clicking the link below.
aoiandroid neuphonic-neucodec-onnx-decoder-int8-mirror online free url in huggingface.co:
neuphonic-neucodec-onnx-decoder-int8-mirror is an open source model from GitHub that offers a free installation service, and any user can find neuphonic-neucodec-onnx-decoder-int8-mirror on GitHub to install. At the same time, huggingface.co provides the effect of neuphonic-neucodec-onnx-decoder-int8-mirror install, users can directly use neuphonic-neucodec-onnx-decoder-int8-mirror installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
neuphonic-neucodec-onnx-decoder-int8-mirror install url in huggingface.co: