Skip to content
Snippets Groups Projects
SpeechCorpora.jl 821 B
Newer Older
# SPDX-License-Identifier: CECILL-2.1

module SpeechCorpora

using Base64
using HTTP
using JSON
using WAV

export
    # ManifestItem
    CmdAudioSource,
    FileAudioSource,
    RawAudioSource,
    URLAudioSource,
    Recording,
    Supervision,
    load,

    # Manifest interface
    writemanifest,
    readmanifest,

    # Corpora interface
    download,
    prepare,

    # Corpora
    MultilingualLibriSpeech,
    MiniLibriSpeech
SPEECH_CORPORA_ROOTDIR = homedir()
"""
    setrootdir(path)
Set the root directory where to store the datasets. Default to the user
home directory.
"""
setrootdir(path) = global SPEECH_CORPORA_ROOTDIR = path

include("speechcorpus.jl")
include("manifest_item.jl")
include("manifest_io.jl")
include("corpora/multilingual_librispeech.jl")
include("corpora/mini_librispeech.jl")