Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpeechDatasets.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PTAL
Datasets
SpeechDatasets.jl
Commits
66a8704c
Commit
66a8704c
authored
3 weeks ago
by
Simon Devauchelle
Browse files
Options
Downloads
Plain Diff
Merge branch 'update_version' into 'main'
Minor modification when loading SyntheticVowelDataset See merge request
!15
parents
4f739461
18285e8a
Loading
Loading
1 merge request
!15
Minor modification when loading SyntheticVowelDataset
Pipeline
#3656
passed
3 weeks ago
Stage: check
Stage: deploy
Stage: build-badges
Stage: deploy-badges
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Project.toml
+1
-1
1 addition, 1 deletion
Project.toml
src/corpora/synthetic_vowel_dataset.jl
+6
-5
6 additions, 5 deletions
src/corpora/synthetic_vowel_dataset.jl
with
7 additions
and
6 deletions
Project.toml
+
1
−
1
View file @
66a8704c
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@cnrs.fr>"
,
"Remi URO <uro@lisn.fr>"
]
version
=
"0.21.
0
"
version
=
"0.21.
1
"
[deps]
AudioSources
=
"09fc2aa8-47ce-428a-ad90-e701fa7ea67f"
...
...
This diff is collapsed.
Click to expand it.
src/corpora/synthetic_vowel_dataset.jl
+
6
−
5
View file @
66a8704c
...
...
@@ -44,12 +44,12 @@ function synset_recordings(dir::AbstractString)
ext
!=
".wav"
&&
continue
spk
=
join
(
sname
[
1
:
3
],
"_"
)
spk
id
=
sname
[
3
]
gender
,
vowel
,
sigid
=
sname
[
4
],
sname
[
5
],
sname
[
6
]
path
=
joinpath
(
root
,
file
)
id
=
"
$(spk)
_
$(gender)
_
$(vowel)
_
$(sigid)
"
id
=
"
spk_
$(spk
id
)
_
$(gender)
_
$(vowel)
_
$(sigid)
"
audio_src
=
AudioSources
.
FileAudioSource
(
path
)
...
...
@@ -79,7 +79,8 @@ function synset_metadata(dir)
for
row
in
eachrow
(
df
)
# Get metadata
spk
=
row
[
"fname"
]
spk
=
split
(
row
[
"fname"
],
"_"
)
spkid
=
spk
[
3
]
gender
=
row
[
"gender"
]
vowel
=
row
[
"vowel"
]
sigid
=
split
(
row
[
"signal"
],
"_"
)[
end
]
...
...
@@ -90,7 +91,7 @@ function synset_metadata(dir)
angles
=
Dict
([
"θ
$
i"
=>
row
[
"θ
$
i"
]
for
i
in
1
:
Int
(
countfilter
/
2
)])
magnitudes
=
Dict
([
"r
$
i"
=>
row
[
"r
$
i"
]
for
i
in
1
:
Int
(
countfilter
/
2
)])
id
=
"
$(spk)
_
$(gender)
_
$(vowel)
_
$(sigid)
"
id
=
"
spk_
$(spk
id
)
_
$(gender)
_
$(vowel)
_
$(sigid)
"
metadata
[
id
]
=
Annotation
(
id
,
# recording id and annotation id are the same since we have
id
,
# a one-to-one mapping
...
...
@@ -98,7 +99,7 @@ function synset_metadata(dir)
-
1
,
# recording
[
1
],
# only 1 channel (mono recording)
Dict
(
"spk"
=>
spk
,
"spk"
=>
spk
id
,
"gender"
=>
gender
,
"vowel"
=>
vowel
,
"sigid"
=>
sigid
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment