# SPDX-License-Identifier: CECILL-2.1 """ abstract type SpeechCorpus Abstract type for all speech corpora. """ abstract type SpeechCorpus end """ path(corpus) Path to the directory where is stored the corpus' data. """ path(corpus::SpeechCorpus, dir) = joinpath(dir, corpus.lang, corpus.name) """ download(corpus[, dir = homedir()]) Download the data of the corpus to `dir`. """ Base.download(corpus::SpeechCorpus) = download(corpus, SPEECH_CORPORA_ROOTDIR) """ prepare(corpus[, dir = homedir()]) Prepare the manifests of corpus to `dir`. """ prepare(corpus::SpeechCorpus) = prepare(corpus, SPEECH_CORPORA_ROOTDIR)