Welcome to JSPraat
JSPraat is a work in progress. It aims to make some Praat features available via a web interface. Work has begun in providing a compatibility layer with Praat's TextGrid format.
A List of Classes
- JSPraat.TextGrid - A JS class for representing a single TextGrid. It has been tested on a small set of examples including interval tiers and point tiers. The constructor takes either a path to a .TextGrid file or takes the contents of a TextGrid file. See main.js for example usage.
- JSPraat.TimeSyncedGrid - A TimeSyncedGrid displays exactly one WAV form time-synchronized to exactly one TextGrid below the WAV form.
- jQuery.mousewheel (2013 Brandon Aaron)
- D3 v3
The following is an example of displaying a TimeSyncedGrid as an element in your webpage.
<div class='TSG-container' data-textgrid='path/to/your/textgrid.TextGrid' data-audio='path/to/your/audiofile.wav'></div> <!-- put this anywhere at the end--> <script>JSPraat.TimeSyncedGrid.autoRender();</script>
This type of usage is great for talking about TextGrids in personal Blogs and Wikis.
The Speech Lab @ Queens College is run by Dr. Andrew Rosenberg.