Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m2ci-msp/jtgt
Java TextGridTools
https://github.com/m2ci-msp/jtgt
annotation java praat textgrid textgridtools
Last synced: about 1 month ago
JSON representation
Java TextGridTools
- Host: GitHub
- URL: https://github.com/m2ci-msp/jtgt
- Owner: m2ci-msp
- License: lgpl-3.0
- Created: 2017-06-13T13:44:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-15T07:40:10.000Z (about 2 years ago)
- Last Synced: 2023-08-20T15:49:37.267Z (over 1 year ago)
- Topics: annotation, java, praat, textgrid, textgridtools
- Language: Java
- Homepage:
- Size: 386 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![CI](https://github.com/m2ci-msp/jtgt/actions/workflows/main.yml/badge.svg)](https://github.com/m2ci-msp/jtgt/actions/workflows/main.yml)
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)# JTGT
JTGT is a Java library for loading, manipulating, and writing [Praat] TextGrid files, and similar annotation files, such as XWaves lab.
It's inspired by the [TextGridTools] module for Python.## Dependency Information
Snapshot builds are [OSSRH].
Release versions are hosted on [OSSRH] and indexed in [Maven Central].## Examples
### Loading a TextGrid file
```java
String tgStr = new File("path/to/my.TextGrid").getText();
TextGrid tg = new TextGridSerializer().fromString(tgStr);
```### Iterating over intervals
```java
for (Annotation annot : tg.getTiers().get(0).getAnnotations()) {
System.out.println(annot.getText());
}
```## [Javadoc]
[Praat]: https://praat.org/
[TextGridTools]: https://github.com/hbuschme/TextGridTools
[OSSRH]: https://s01.oss.sonatype.org/
[Maven Central]: https://search.maven.org/
[Javadoc]: https://m2ci-msp.github.io/jtgt/docs/javadoc/