Skip to main content

Tools


I tinker a lot, and often build things to simplify my teaching or research, or to help others with their projects. Sometimes I tidy these up into something that is suitable for wider distribution. This is a list of some of these tools.

Data visualization

3ᴅ Spectrogram Viewer

Spectrograms are three-dimensional visual representations of sound, but we usually only observe them in two dimensions. This is very useful for documents, and for a long time was the only practical way to generate spectrograms (through early spectrograph machines and in the early computer era). However, the connection between waveforms (intensity × time), spectra (intensity × frequency), and spectrograms (intensity × frequency × time) is not immediately intuitive for newcomers to phonetics. In the modern day, it is no longer computationally intensive to generate spectrograms or a rotatable 3D object, so I made a little browser-based viewer that represents the three dimensions of a spectrogram in three spatial dimensions. Hopefully, provides an interesting and more accessible way to think about these dimensions of sound.

Praat scripts

Simple vowel space plotting

This is a very simple script, intended for use in a phonetics classroom, in which you can enter F1 and F2 values for monophthongs and diphthongs and have Praat plot them in the Picture window. The script essentially just sets up some labelled axes, and then plots the given text at the given coordinates (or an arrow, in the case of diphthongs). This is sufficient to visualize the relative positions of vowels based on some manual formant measurements, in order to illustrate the relationships of F1 and F2 with vowel height and backness. (The sample below illustrates some vowels of Vietnamese, which I commonly use in a class activity along with this script.)

LaTeX tools

Automated transliteration of other writing systems

Text entry and display can be complicated and messy, particularly where multiple writing systems are involved in the same document. LaTeX editors and terminal emulators also usually only support one font for the entered text, and it often happens that the font used will not have glyphs for all of the writing systems appearing in the document. (This happens to everyone, right, not just me?) Even if all of the glyphs are available, the text may not render correctly, or the directionality of the graphemes may be messed up (for right-to-left systems). Some writing systems may not have easy and established input methods, or those input methods may not be something you're used to using. 

For all of these reasons, it may be preferable to enter Roman alphabet text in your LaTeX document, but have it automatically be transliterated into another writing system at compile time. This is possible with the wonderful TECKit library, which does all sorts of conversions between different text encodings, but can also be used for systematic and context-sensitive substitution of Unicode characters.

A set of transliteration files and instructions for using them are available in a Github repository. This hasn't been updated in a while at the time of writing, but more complete (and easy-to-adopt) versions will be coming soon™ and the most recent public versions will all be provided there.

Connections mini-package

I found it useful when writing syntax manuscripts to create abbreviated representations in which movement or agreement relations are illustrated by arrows underneath a text example, rather than through a full tree. You've likely come across this kind of representation:

It was awfully messy to write the code out for this every time in LaTeX, so I write a set of macros to simplify the notation. This isn't a proper package, just a set of TiKZ commands, but I've gotten some good use out of it and maybe you will too!