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

Merge branch '8-cmudict' into 'main'

fixed cmudict path creationg

See merge request fast/speechdatasets.jl!6
parents 93a7d677 ade58cf6
No related branches found
No related tags found
No related merge requests found
# Tags # Tags
## [0.9.3](https://https://gitlab.lisn.upsaclay.fr/fast/speechcorpora.jl/-/tags/v0.9.3)- 12/02/2024
# Fixed
- `CMUDICT("dir/path")` fails if `dir` does not already exists.
## [0.9.2](https://https://gitlab.lisn.upsaclay.fr/fast/speechcorpora.jl/-/tags/v0.9.2)- 09/02/2024 ## [0.9.2](https://https://gitlab.lisn.upsaclay.fr/fast/speechcorpora.jl/-/tags/v0.9.2)- 09/02/2024
# Fixed # Fixed
- invalid type for field `channels` of `Recording` - invalid type for field `channels` of `Recording`
......
name = "SpeechDatasets" name = "SpeechDatasets"
uuid = "ae813453-fab8-46d9-ab8f-a64c05464021" uuid = "ae813453-fab8-46d9-ab8f-a64c05464021"
authors = ["Lucas ONDEL YANG <lucas.ondel@cnrs.fr>"] authors = ["Lucas ONDEL YANG <lucas.ondel@cnrs.fr>"]
version = "0.9.2" version = "0.9.3"
[deps] [deps]
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
......
...@@ -22,6 +22,7 @@ calls will only read the file `path` without downloading again the data. ...@@ -22,6 +22,7 @@ calls will only read the file `path` without downloading again the data.
""" """
function CMUDICT(path) function CMUDICT(path)
if ! isfile(path) if ! isfile(path)
mkpath(dirname(path))
dir = mktempdir() dir = mktempdir()
run(`wget -P $dir $CMUDICT_URL`) run(`wget -P $dir $CMUDICT_URL`)
mv(joinpath(dir, "cmudict_SPHINX_40"), path) mv(joinpath(dir, "cmudict_SPHINX_40"), path)
......
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