datasets_test.py 421 Bytes
Newer Older
1
2
from torchaudio.datasets.librispeech import LIBRISPEECH
from torchaudio.datasets.speechcommands import SPEECHCOMMANDS
moto's avatar
moto committed
3
4
from torchaudio.datasets.vctk import VCTK

5
from torchaudio_unittest.common_utils import (
moto's avatar
moto committed
6
7
8
9
10
11
12
13
14
15
16
17
    TorchaudioTestCase,
    get_asset_path,
)


class TestDatasets(TorchaudioTestCase):
    backend = 'default'
    path = get_asset_path()

    def test_vctk(self):
        data = VCTK(self.path)
        data[0]