Skip to content
Snippets Groups Projects
Commit 241d1e10 authored by Simon Devauchelle's avatar Simon Devauchelle
Browse files

Variable name fixed

parent 8511719b
No related branches found
No related tags found
1 merge request!2Loading of new TIMIT data added : formant values and bandwidth annotations
......@@ -228,7 +228,7 @@ function timit_prepare(timitdir, dir, formantsdir=nothing; audio_fmt="SPHERE")
# Validate the data directory
! isdir(timitdir) && throw(ArgumentError("invalid path $(timitdir)"))
if formantsdir !== nothing
! isdir(timitdir) && throw(ArgumentError("invalid path $(timitdir)"))
! isdir(formantsdir) && throw(ArgumentError("invalid path $(formantsdir)"))
end
# Create the output directory.
......@@ -359,12 +359,12 @@ function timit_annotations(dir, formantsdir=nothing)
(idtuple in processed) && continue
push!(processed, (dialect, spk, name))
# Word
# Words
wpath = joinpath(root, name * ".wrd")
words = [last(split(line)) for line in eachline(wpath)]
# Phones
ppath = joinpath(root, name * ".phn")
ppath = joinpath(root, name * ".phn")
if formantsdir !== nothing
forpath = joinpath(formantsdir, dialect, spk, name * ".ft")
else
......
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