Skip to content
Snippets Groups Projects
Commit b7e1a3cb authored by Nicolas Denier's avatar Nicolas Denier
Browse files

fixed load name conflict

fixes #3
parent 0de1122a
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ authors = ["Lucas ONDEL YANG <lucas.ondel@cnrs.fr>", "Simon DEVAUCHELLE <simon.d
version = "0.15.0"
[deps]
AudioSources = "09fc2aa8-47ce-428a-ad90-e701fa7ea67f"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
......
......@@ -4,6 +4,7 @@ module SpeechDatasets
using JSON
import MLUtils
using AudioSources
export
# ManifestItem
......
......@@ -104,8 +104,7 @@ function load(r::Recording; start = -1, duration = -1, channels = r.channels)
subrange = (:)
end
x, sr = loadaudio(r.source, subrange)
x[:,channels], sr
AudioSources.load(r.source, subrange, channels)
end
load(r::Recording, a::Annotation) = load(r; start = a.start, duration = a.duration, channels = a.channels)
......
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