Skip to content
Snippets Groups Projects
Commit 37e9c322 authored by Lucas Ondel Yang's avatar Lucas Ondel Yang
Browse files

Merge branch 'fix_load_pair' into 'main'

fix load

See merge request !5
parents 730c952e 40d3314a
No related branches found
No related tags found
1 merge request!5fix load
Pipeline #3128 passed
# Tags
## [0.17.1](https://https://gitlab.lisn.upsaclay.fr/fast/speechdatasets.jl/-/tags/v0.17.1) - 25/09/2024
### Fixed
- Loading tuple of recording / annotation
## [0.17.0](https://https://gitlab.lisn.upsaclay.fr/fast/speechdatasets.jl/-/tags/v0.17.0) - 26/08/2024
### Changed
- Datasets are now loadable with `dataset("name", inputdir, outputdir; <keyword arguments>)`
- New corpus can be added by simply creating a single file and implementing at least one function.
- New corpus can be added by simply creating a single file and implementing at least one function.
### Added
- Supported corpora are referenced in `corpora.json`
- Added documentation, will update on new corpus.
......
name = "SpeechDatasets"
uuid = "ae813453-fab8-46d9-ab8f-a64c05464021"
authors = ["Lucas ONDEL YANG <lucas.ondel@cnrs.fr>", "Simon DEVAUCHELLE <simon.devauchelle@universite-paris-saclay.fr>", "Nicolas DENIER <nicolas.denier@lisn.fr>"]
version = "0.17.0"
version = "0.17.1"
[deps]
SpeechFeatures = "6f3487c4-5ca2-4050-bfeb-2cf56df92307"
......
......@@ -88,7 +88,7 @@ Annotation(id, recid; channels = missing, start = -1, duration = -1, data = miss
Load the signal from a recording. `start`, `duration` (in seconds)
The function returns a tuple `(x, sr)` where `x` is a ``N×C`` array
The function returns a tuple `(x, sr)` where `x` is a ``N×C`` array
- ``N`` is the length of the signal and ``C`` is the number of channels
- and `sr` is the sampling rate of the signal.
"""
......@@ -101,7 +101,7 @@ function AudioSources.load(r::Recording; start = -1, duration = -1, channels = r
subrange = (:)
end
AudioSources.load(r.source, true, subrange=subrange, ch=channels)
AudioSources.load(r.source, subrange, channels)
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