We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f3eaf commit 1147299Copy full SHA for 1147299
audio_data_pytorch/datasets/libri_speech_dataset.py
@@ -30,7 +30,7 @@ def __getitem__(
30
) -> Union[Tensor, Tuple[Tensor, Dict]]:
31
idx = idx.tolist() if torch.is_tensor(idx) else idx # type: ignore
32
data = self.dataset[idx]
33
- waveform = torch.tensor(data["audio"]["array"]).view(1, -1)
+ waveform = torch.tensor(data["audio"]["array"]).view(1, -1).float()
34
info = dict(
35
sample_rate=data["audio"]["sampling_rate"],
36
text=data["text"],
setup.py
@@ -3,7 +3,7 @@
3
setup(
4
name="audio-data-pytorch",
5
packages=find_packages(exclude=[]),
6
- version="0.0.11",
+ version="0.0.12",
7
license="MIT",
8
description="Audio Data - PyTorch",
9
long_description_content_type="text/markdown",
0 commit comments