Module praatio

Praatio is a library for working praat files and audio data.

Praat is a popular tool for working with transcribed speech data. It has tools for annotating speech, manipulating speech, and extracting information from speech. Praat's homepage: <http://www.fon.hum.uva.nl/praat/

praatio's utility comes from the classes Textgrid, IntervalTier, and PointTier in tgio.py These classes represent the speech transcript data stored inside of .TextGrid files. tgio.py contains functions for reading/writing these objects from/to files. dataio.py and kgio.py contain similar code for other data files that praat works with.

pitch_and_intensity.py uses praat to extract pitch and intensity values from audio using praat.

praat_scripts.py enables one to run various praat scripts from within python. If preferred, one can access the praatScripts/ directory to view and edit the praat scripts or open them directly in praat. They can all be run independently of python.

audioio.py is for reading, reading, and performing simple manipulations to wave files.

praatio_scripts.py contains code that combines various code in praatio–mostly high-level functions for working with textgrids, sometimes in conjuction with audio files.

For example scripts that use various parts of the praatio library, please see 'examples/' in the root directory. If you downloaded praatio from pip, you can get the example files on the praatio github page: <https://github.com/timmahrt/praatIO

There is also a tutorial for working with praatio on the github page.

Expand source code
"""
Praatio is a library for working praat files and audio data.

Praat is a popular tool for working with transcribed speech data.
It has tools for annotating speech, manipulating speech, and extracting information from speech.
Praat's homepage: [http://www.fon.hum.uva.nl/praat/](http://www.fon.hum.uva.nl/praat/)

praatio's utility comes from the classes Textgrid, IntervalTier, and PointTier in **tgio.py**
These classes represent the speech transcript data stored inside of .TextGrid files.  tgio.py
contains functions for reading/writing these objects from/to files.
**dataio.py** and **kgio.py** contain similar code for other data files that praat works with.

**pitch_and_intensity.py** uses praat to extract pitch and intensity values from audio using praat.

**praat_scripts.py** enables one to run various praat scripts from within python.  If preferred, one
can access the **praatScripts/** directory to view and edit the praat scripts or open them directly in praat.
They can all be run independently of python.

**audioio.py** is for reading, reading, and performing simple manipulations to wave files.

**praatio_scripts.py** contains code that combines various code in praatio--mostly high-level functions for
working with textgrids, sometimes in conjuction with audio files.

For example scripts that use various parts of the praatio library, please see 'examples/' in the root directory.
If you downloaded praatio from pip, you can get the example files on the praatio github page:
[https://github.com/timmahrt/praatIO](https://github.com/timmahrt/praatIO)

There is also a tutorial for working with praatio on the github page.
"""

Sub-modules

praatio.audioio

Functions for reading, writing, querying, and manipulating audio …

praatio.dataio

Code for reading, writing, and representing less complicated praat data files …

praatio.kgio

Functions for reading/writing/manipulating klattgrid files …

praatio.pitch_and_intensity

Functions for working with pitch data …

praatio.praat_scripts

Python wrappers for various praat scripts contained in /praatScripts …

praatio.praatio_scripts

Common/generic scripts or utilities that extend the functionality of praatio …

praatio.tgio

Functions for reading/writing/manipulating textgrid files …

praatio.utilities

Various os, math, and language-related utilities.