Command-line interface (CLI) to modify TextGrids and their corresponding audio files.
Project description
textgrid-tools
Command-line interface (CLI) to modify TextGrids and their corresponding audio files.
Features
- grids
merge
: merge grids togetherexport-vocabulary
: export vocabulary out of multiple grid filesplot-durations
: plot durationsexport-marks
: exports marks of a tier to a file
- grid
create
: convert text files to grid filessync
: synchronize grid minTime and maxTime according to the corresponding audio filesplit
: split a grid file on intervals into multiple grid files (incl. audio files)print-stats
: print statistics
- tiers
apply-mapping
: apply mapping table to markstranscribe
: transcribe words of tiers using a pronunciation dictionaryremove
: remove tiersremove-symbols
: remove symbols from tiersmark-silence
: mark silence intervals
- tier
rename
: rename tierclone
: clone tiermap
: map tier to other tiersmove
: move tier to another positionexport
: export content of tier to a txt fileimport
: import content of tier from a txt file
- intervals
join-between-pauses
: join intervals between pausesjoin-by-boundary
: join intervals by boundaries of a tierjoin-by-duration
: join intervals by a durationjoin-marks
: join intervals containing specific marksjoin-symbols
: join intervals containing specific symbolsfix-boundaries
: align boundaries of tiers according to a reference tiersplit
: split intervalsremove
: remove intervalsplot-durations
: plot durations
Roadmap
- Performance improvement
- Adding more tests
Installation
pip install textgrid-tools --user
Usage
textgrid-tools-cli
Dependencies
numpy>=1.18.5
scipy>=1.8.0
tqdm>=4.63.0
TextGrid>=1.5
pandas>=1.4.0
ordered_set>=4.1.0
matplotlib>=3.5.0
pronunciation_dictionary>=0.0.4
Troubleshooting
If recordings/audio files are not in .wav
format they need to be converted:
sudo apt-get install ffmpeg -y
# e.g., mp3 to wav conversion
ffmpeg -i *.mp3 -acodec pcm_s16le -ar 22050 *.wav
License
MIT License
Acknowledgments
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410
Citation
If you want to cite this repo, you can use this BibTeX-entry:
@misc{tstgt22,
author = {Taubert, Stefan},
title = {textgrid-tools},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/stefantaubert/textgrid-ipa}}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textgrid-tools-0.0.4.tar.gz
(59.0 kB
view hashes)
Built Distribution
textgrid_tools-0.0.4-py3-none-any.whl
(107.7 kB
view hashes)
Close
Hashes for textgrid_tools-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d827670bf7bf46d20777ba452d3ace2d2f0fc2a8c65af4bcb70b794d5f4f96 |
|
MD5 | 149d35b12fc864bba0d16b9bd971bd35 |
|
BLAKE2b-256 | 12707d723b6791c5aeb3ddfe96fdc441447042e5338fcbfc5b045ffe24837b12 |