textgrid-tools
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}}
}
Release files for textgrid-tools 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textgrid-tools-0.0.3.tar.gz | 58.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textgrid_tools-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 165.6 kB
Release files / textgrid-tools-0.0.3.tar.gz
| Download URL | textgrid-tools-0.0.3.tar.gz |
|---|---|
| Size | 58.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7d5122b09409a64ad6be5d8a451b622890012e7c84d7099d80be107c1387bb4
|
|
BLAKE2b-256 checksum How to use checksums |
f50863b7e30f7f6d980802915423626d295732407a94c02774f5d8ee6f3d811f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Release files / textgrid_tools-0.0.3-py3-none-any.whl
| Download URL | textgrid_tools-0.0.3-py3-none-any.whl |
|---|---|
| Size | 107.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbe467451bca2ac12dd837a16e77465fc6f2c5b125ff532171ca44393cec8faa
|
|
BLAKE2b-256 checksum How to use checksums |
3d9088fd64a278b33421663a2705d3b6a6936fb86845b6c3d28146c3ef6d6b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|