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
Loading
...@@ -230,6 +230,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE") ...@@ -230,6 +230,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE")
# Create the output directory. # Create the output directory.
dir = mkpath(dir) dir = mkpath(dir)
rm(joinpath(dir, "recordings.jsonl"), force=true)
for (subset, subdir) in [("train", "train"), ("dev", "train"), ("test", "test")] for (subset, subdir) in [("train", "train"), ("dev", "train"), ("test", "test")]
sdir = joinpath(timitdir, subdir) sdir = joinpath(timitdir, subdir)
...@@ -238,7 +239,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE") ...@@ -238,7 +239,7 @@ function timit_prepare(timitdir, dir; audio_fmt="SPHERE")
manifestpath = joinpath(dir, "recordings.jsonl") manifestpath = joinpath(dir, "recordings.jsonl")
@debug "preparing $manifestpath" @debug "preparing $manifestpath"
recordings = timit_recordings(sdir; fmt=audio_fmt) recordings = timit_recordings(sdir; fmt=audio_fmt)
open(manifestpath, "w") do f open(manifestpath, "a") do f
writemanifest(f, recordings) writemanifest(f, recordings)
end 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