Open Speech Corpus CLI
This repository contains the code required to download audiodata from openspeechcorpus.com
Open Speech Corpus is composed by far for three subcorpuses:
- Tales: A crowdsourced corpus based on reading of latin american short tales
- Aphasia: A crowdsourced corpus based in words categorized in 4 levels of difficulty
- Isolated words: A crowdsourced corpus based in isolated words
To download files from the Tales Project use
ops \
--output_folder tales/ \
--output_file tales.txt \
--corpus tales
To download files from the Isolated Words Project use
ops \
--output_folder isolated_words/ \
--output_file isolated_words.txt \
--corpus words
To download files from the Aphasia Project use
ops \
--output_folder aphasia/ \
--output_file aphasia.txt \
--corpus aphasia
Parameters ussage
--download_all
You can download the whole corpus using the flag --download_all
ops \
--output_folder aphasia/ \
--output_file aphasia.txt \
--corpus aphasia \
--download_all
--from and --to
By default the page size is 500, to modify it use the args --from and --to i.e:
ops \
--from 500 \
--to 1000 \
--output_folder aphasia/ \
--output_file aphasia.txt \
--corpus aphasia
If you use the flag --download_all with the flag --from the process will start in the specified arg from using a
page size of 500
--extra_query_params
We also support an argument --extra_query_params which overwrites the --from, --to and --download_all arguments
and downloads all files in the body response, you must define the --corpus argument anyway
ops \
--output_folder aphasia/ \
--output_file aphasia_letters.txt \
--corpus aphasia \
--extra_query_params "level_sentence__id__gte=846&level_sentence__id__lte=870"
Recursive Convert
The Open Speech Corpus stores its files in mp4 format, which is undesired for most audio processing tasks. To convert
the files into a wav format, first install ffmpeg, then you can execute the
recursive_convert utility which receives as first argument the source_folder with the mp4 files and as second argument
the output folder i.e.:
recursive_convert aphasia aphasia_wav
CMU Sphinx Configuration
The Open Speech Corpus also defines some scripts to generate configurations for CMU Sphinx.
First initialize a project with the sphinx_train command
sphinxtrain -t simple_words setup
To generate a configuration use the command configure_sphinx, which creates the transcription, fileids, fillers and
dic files.
configure_sphinx simple_words \
--transcription_file words.txt \
--etc_folder simple_words/etc \
--test_size 0.5
Also you need to define a language model which receives the DB_NAME and the base project folder
generate_language_model simple_words simple_words
To delete the configuration files use the command clean_previous_configuration
clean_previous_configuration simple_words --etc_folder simple_words/etc/
HTK Configuration
The Open Speech Corpus also defines some scripts to train models using HTK
To generate a word grammar use
configure_htk \
--transcription_file words.txt \
--project_folder htk_words \
--wav_folder words_wav \
htk_words
Metadata
Release files for openspeechcorpus 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openspeechcorpus-0.2.1.tar.gz | 13.7 kB | Without provenance | Details for openspeechcorpus-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openspeechcorpus-0.2.1-py3.8.egg | Legacy Egg format | - | - | Details for openspeechcorpus-0.2.1-py3.8.egg |
Total release size: 72.1 kB
Release files / openspeechcorpus-0.2.1.tar.gz
| Download URL | openspeechcorpus-0.2.1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23920952be0c5120586caa1d65e3374db909aa387faba310c8c5bb902cf4944e
|
|
BLAKE2b-256 checksum How to use checksums |
e85bfb43b2755cac9e40611f9421b4f31d3e4ef3aa6885fcfbfc592c7773e8d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Release files / openspeechcorpus-0.2.1-py3.8.egg
| Download URL | openspeechcorpus-0.2.1-py3.8.egg |
|---|---|
| Size | 58.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
2d9d5947210688c5753e0830fc3813712e25ff0bb8903759fd1efbf85a9a2c8d
|
|
BLAKE2b-256 checksum How to use checksums |
11a7f0cee4eb6916af59d3a988965ff28dea32f2e9f51c35514f582f5ee861e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Security for openspeechcorpus 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.