Views
No views yet

speech_clean subset of Cnam-LMSSC/vibravox (see VibraVox paper on arXiV)speech_clean subset of Cnam-LMSSC/vibravox1import torch, torchaudio
2from vibravox.torch_modules.dnn.eben_generator import EBENGenerator
3from datasets import load_dataset
4
5model = EBENGenerator.from_pretrained("Cnam-LMSSC/EBEN_reverse_forehead_accelerometer")
6test_dataset = load_dataset("Cnam-LMSSC/vibravox", "speech_clean", split="test", streaming=True)
7
8audio_48kHz = torch.Tensor(next(iter(test_dataset))["audio.headset_microphone"]["array"])
9audio_16kHz = torchaudio.functional.resample(audio_48kHz, orig_freq=48_000, new_freq=16_000)
10
11cut_audio_16kHz = model.cut_to_valid_length(audio_16kHz[None, None, :])
12degraded_audio_16kHz, _ = model(cut_audio_16kHz)