Skip to content
Snippets Groups Projects
Verified Commit 93a7d677 authored by Lucas Ondel Yang's avatar Lucas Ondel Yang
Browse files

minor fixes

parent d07b03db
No related branches found
No related tags found
No related merge requests found
# Tags
## [0.9.2](https://https://gitlab.lisn.upsaclay.fr/fast/speechcorpora.jl/-/tags/v0.9.2)- 09/02/2024
# Fixed
- invalid type for field `channels` of `Recording`
- `MINILIBRISPEECH` broken
## [0.9.1](https://https://gitlab.lisn.upsaclay.fr/fast/speechcorpora.jl/-/tags/v0.9.1)- 09/02/2024
# Fixed
- not possible to use `:` as channel specifier
......
name = "SpeechDatasets"
uuid = "ae813453-fab8-46d9-ab8f-a64c05464021"
authors = ["Lucas ONDEL YANG <lucas.ondel@cnrs.fr>"]
version = "0.9.1"
version = "0.9.2"
[deps]
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
......
......@@ -32,12 +32,12 @@ julia> ds[1]
)
```
"""
function dataset(manifestroot::AbstractString, partition)
sup_path = joinpath(manifestroot, "supervisions-$(subset).jsonl")
function dataset(manifestroot, partition)
sup_path = joinpath(manifestroot, "supervisions-$(partition).jsonl")
rec_path = joinpath(manifestroot, "recordings.jsonl")
supervisions = load(Supervision, sup_path)
recordings = load(Recording, rec_path)
dataset(supervisions, recordings)
dataset(supervisions, recordings, partition)
end
function dataset(supervisions, recordings, partition)
......
......@@ -74,7 +74,7 @@ struct Supervision <: ManifestItem
recording_id::AbstractString
start::Float64
duration::Float64
channels::Union{Vector{Integer}, Colon}
channels::Union{Vector, Colon}
data::Dict
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