CLI to modify TextGrids and their corresponding audio files.
Project description
textgrid-tools
CLI to modify TextGrids and their corresponding audio files.
Features
- grids
- merge grids together
- export vocabulary out of multiple grid files
- plot durations
- exports marks of a tier to a file
- grid
- convert text files to grid files
- synchronize grid minTime and maxTime according to the corresponding audio file
- split a grid file on intervals into multiple grid files (incl. audio files)
- print statistics
- tiers
- apply mapping table to marks
- transcribe words of tiers using a pronunciation dictionary
- remove tiers
- remove symbols from tiers
- mark silence intervals
- tier
- rename tier
- clone tier
- copy tier from one grid to another
- map tier to other tiers
- move tier to another position
- export content of tier to a txt file
- import content of tier from a txt file
- intervals
- join intervals between pauses
- join intervals by boundaries of a tier
- join intervals by a duration
- join intervals containing specific marks
- join intervals containing specific symbols
- align boundaries of tiers according to a reference tier
- split intervals
- remove intervals
- plot durations
Roadmap
- Performance improvement
- Better logging
- Adding more tests
Installation
pip install textgrid-tools --user
Usage
textgrid-tools-cli
Dependencies
- scipy
- numpy
- tqdm
- TextGrid
- pandas
- matplotlib
- ordered-set >=4.1.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
Citation
If you want to cite this repo, you can use this BibTeX-entry:
@misc{tstgu22,
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.1.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for textgrid_tools-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec50b1ad404bc307e0c90f9a1c03320f44885f34bfffe0013da2709754f65e6d |
|
MD5 | b7573838078ce85aa63011eab8c056e2 |
|
BLAKE2b-256 | c71531b2fb9ab182c1c5de6fff9e9ab72428acc82e7b087a53a631ec30222f01 |