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
FAST
SpeechDatasets.jl
Commits
8dfd49d2
Verified
Commit
8dfd49d2
authored
1 year ago
by
Lucas Ondel Yang
Browse files
Options
Downloads
Patches
Plain Diff
preparing recipe timit
parent
7cf16bf1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/SpeechCorpora.jl
+6
-1
6 additions, 1 deletion
src/SpeechCorpora.jl
src/corpora/timit.jl
+170
-0
170 additions, 0 deletions
src/corpora/timit.jl
src/speechcorpus.jl
+21
-7
21 additions, 7 deletions
src/speechcorpus.jl
with
197 additions
and
8 deletions
src/SpeechCorpora.jl
+
6
−
1
View file @
8dfd49d2
...
...
@@ -23,11 +23,15 @@ export
# Corpora interface
download
,
lang
,
name
,
path
,
prepare
,
# Corpora
MultilingualLibriSpeech
,
MiniLibriSpeech
MiniLibriSpeech
,
TIMIT
...
...
@@ -46,5 +50,6 @@ include("manifest_item.jl")
include
(
"manifest_io.jl"
)
include
(
"corpora/multilingual_librispeech.jl"
)
include
(
"corpora/mini_librispeech.jl"
)
include
(
"corpora/timit.jl"
)
end
This diff is collapsed.
Click to expand it.
src/corpora/timit.jl
0 → 100644
+
170
−
0
View file @
8dfd49d2
# SPDX-License-Identifier: CECILL-2.1
#######################################################################
const
TIMIT_SUBSETS
=
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l"
,
"ch"
=>
"ch"
,
"d"
=>
"d"
,
"dcl"
=>
"vcl"
,
"dh"
=>
"dh"
,
"dx"
=>
"dx"
,
"eh"
=>
"eh"
,
"el"
=>
"el"
,
"em"
=>
"m"
,
"en"
=>
"en"
,
"eng"
=>
"ng"
,
"epi"
=>
"epi"
,
"er"
=>
"er"
,
"ey"
=>
"ey"
,
"f"
=>
"f"
,
"g"
=>
"g"
,
"gcl"
=>
"vcl"
,
"h#"
=>
"sil"
,
"hh"
=>
"hh"
,
"hv"
=>
"hh"
,
"ih"
=>
"ih"
,
"ix"
=>
"ix"
,
"iy"
=>
"iy"
,
"jh"
=>
"jh"
,
"k"
=>
"k"
,
"kcl"
=>
"cl"
,
"l"
=>
"l"
,
"m"
=>
"m"
,
"n"
=>
"n"
,
"ng"
=>
"ng"
,
"nx"
=>
"n"
,
"ow"
=>
"ow"
,
"oy"
=>
"oy"
,
"p"
=>
"p"
,
"pau"
=>
"sil"
,
"pcl"
=>
"cl"
,
"q"
=>
""
,
"r"
=>
"r"
,
"s"
=>
"s"
,
"sh"
=>
"sh"
,
"t"
=>
"t"
,
"tcl"
=>
"cl"
,
"th"
=>
"th"
,
"uh"
=>
"uh"
,
"uw"
=>
"uw"
,
"ux"
=>
"uw"
,
"v"
=>
"v"
,
"w"
=>
"w"
,
"y"
=>
"y"
,
"z"
=>
"z"
,
"zh"
=>
"zh"
)
#######################################################################
struct
TIMIT<:
SpeechCorpus
datapath
::
AbstractString
end
lang
(
::
TIMIT
)
=
"eng"
name
(
::
TIMIT
)
=
"timit"
function
prepare
(
timit
::
TIMIT
)
end
This diff is collapsed.
Click to expand it.
src/speechcorpus.jl
+
21
−
7
View file @
8dfd49d2
...
...
@@ -7,24 +7,38 @@ Abstract type for all speech corpora.
"""
abstract type
SpeechCorpus
end
"""
lang(corpus)
Return the ISO 639-3 code of the language of the corpus.
"""
lang
"""
name(corpus)
Return the name identifier of the corpus.
"""
name
"""
path(corpus)
Path to the directory where
is
stored the corpus
' data
.
Path to the directory where
are
stored the
manifests of the
corpus.
"""
path
(
corpus
::
SpeechCorpus
,
dir
)
=
joinpath
(
dir
,
corpus
.
lang
,
corpus
.
name
)
path
(
corpus
::
SpeechCorpus
)
=
joinpath
(
dir
,
corpus
.
lang
,
corpus
.
name
)
"""
download(corpus
[, dir = homedir()]
)
download(corpus)
Download the data of the corpus to `dir`.
"""
Base
.
download
(
corpus
::
SpeechCorpus
)
=
download
(
corpus
,
SPEECH_CORPORA_ROOTDIR
)
Base
.
download
(
corpus
::
SpeechCorpus
)
"""
prepare(corpus
[, dir = homedir()]
)
prepare(corpus)
Prepare the manifests of corpus
to `dir`
.
Prepare the manifests of corpus.
"""
prepare
(
corpus
::
SpeechCorpus
)
=
prepare
(
corpus
,
SPEECH_CORPORA_ROOTDIR
)
prepare
(
corpus
::
SpeechCorpus
)
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