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

fix load

parent 730c952e
No related branches found
No related tags found
1 merge request!5fix load
Pipeline #3127 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
"""
......
  • 🤖 CI Bot @project_1247_bot_1b5f29a72d826746f0de20d4c092a6ca

    mentioned in commit a28aaed1

    ·

    mentioned in commit a28aaed1

    Toggle commit list
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