Downloads · 30 days
7
32% of all-time downloads
puterijessica/xcodec2-25TPS-24k
xcodec2-25TPS-24k is a audio-to-audio model from puterijessica. Use it for the audio-to-audio task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This repository contains the improved X-Codec-2.0 model as described in the paper Improving X-Codec-2.0 for Multi-Lingual Speech: 25 Hz Latent Rate and 24 kHz Sampling.
Downloads · 30 days
7
32% of all-time downloads
All-time downloads
22
Public
Parameters
825M
75.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.ckpt66.9 GB · 89%
From the Hugging Face model README
This repository contains the improved X-Codec-2.0 model as described in the paper Improving X-Codec-2.0 for Multi-Lingual Speech: 25 Hz Latent Rate and 24 kHz Sampling.
Improve https://huggingface.co/HKUSTAudio/xcodec2 from 50 TPS to become 25 TPS and upscale output to 24k sample rate.
WanDB at https://wandb.ai/huseinzol05/xcodec2-24k-25tps, we also pushed all checkpoints in checkpoint.
noise and audioset_0.5s.cml-tts and libritts_r_filteredsg_podcast and malaysian_podcastgit clone https://github.com/Scicom-AI-Enterprise-Organization/X-Codec-2.0-25TPS-24k
cd X-Codec-2.0-25TPS-24k
from modeling_xcodec2 import XCodec2Model
model = XCodec2Model.from_pretrained("Scicom-intl/xcodec2-25TPS-24k")
import librosa
import torch
y, sr = librosa.load('259041.mp3', sr = 16000)
wav_tensor = torch.from_numpy(y).float().unsqueeze(0)
codes = model.encode_code(wav_tensor)
import IPython.display as ipd
ipd.Audio(model.decode_code(codes)[0, 0].cpu(), rate = 24000)
Source code at https://github.com/Scicom-AI-Enterprise-Organization/X-Codec-2.0-25TPS-24k