Skip to content
Snippets Groups Projects
Commit 1af0caca authored by Martin Kocour's avatar Martin Kocour
Browse files

Resolve "timit dataset not complete"

parent 546cff43
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE")
# Create the output directory.
dir = mkpath(dir)
rm(joinpath(dir, "recordings.jsonl"), force=true)
for (subset, subdir) in [("train", "train"), ("dev", "train"), ("test", "test")]
sdir = joinpath(timitdir, subdir)
......@@ -238,7 +239,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE")
manifestpath = joinpath(dir, "recordings.jsonl")
@debug "preparing $manifestpath"
recordings = timit_recordings(sdir; fmt=audio_fmt)
open(manifestpath, "w") do f
open(manifestpath, "a") do f
writemanifest(f, recordings)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment