Installing A-Z+T
You need Python 3+ and one dependency (PyAudio) to run A-Z+T. Download this repository (https://github.com/kent-rasmussen/azt), and run main.py
. If this is enough information for you, great; if not, please read this whole document, or follow the simple install instructions.
If you have any trouble with anything on this page, please copy all error messages and paste them into an Email to me and/or Google.
If you click on an icon and get a flash and nothing more, check out this page to find your logs to see what happened. That page also incldes instructions in case you really can't find any logs.
Download A-Z+T
To get the program, either
- run
git clone https://github.com/kent-rasmussen/azt.git
(in terminal) - click on the green
code
button on the main page for download options.
If you download an archive (e.g., zip file), extract it so you have a folder of files. Either way, put it somewhere sensible, so you can find it later. If you use git clone
, you can update in the future with the Help/Update [A-Z+T]
menu item (or with git pull
), and just download the changes since you last updated.
If you need to install Python (you may already have it), you can find it here.
- If you have more than one version of python installed (e.g. 2.7 and 3.6.8), be sure to know how to run version 3 for this program (may be called
python
orpython3
).
This should get you all the necessary packages: sudo apt-get install python3-tk python3-pip portaudio19-dev
(add optional texlive-xetex below)
Then this will get you the needed python modules: python3 -m pip install pyaudio tkinter lxml Pillow
The last two are not necessary, but helpful, and not much extra to do at this point.
- Be sure to check "add to PATH" (or whatever options are appropriate), so Windows knows where Python is installed. If you miss this step, A-Z+T will not work:
For some reason, I have had trouble getting pyaudio installed on Windows machines with certain versions of Python. You may have better mileage than I. In any case, I have found that it works smoothly to download and install Python 3.12.4 (e.g., from here).
- Depending on how Python is installed on your system, you may also need
tkinter
. On Ubuntu,sudo apt-get install python3-tk
is sufficient to do this.pip
. On Ubuntu,sudo apt-get install python3-pip
is sufficient to do this.
- PyAudio: to install, run
python -m pip install pyaudio
in a terminal (e.g.,⊞ win
+R
then type 'cmd' in Windows).- On Windows, if the above gives you problems, it may work to do the following:
python -m pip install pipwin
pipwin install pyaudio
- to get optional dependencies, too:
pipwin install Pillow
andpipwin install lxml
(one at a time)
- On Linux (and Mac?),
pyaudio
may in turn have a dependency ofportaudio19-dev
, which you should install with your package manager (e.g.,sudo apt-get install portaudio19-dev
).
- On Windows, if the above gives you problems, it may work to do the following:
If you don't already have Charis SIL on your system, download and install the most recent version from here.
to keep your data up to date in your repository: python -m pip install patiencediff
Patiencediff is not yet used as of Jan 2022, so if you get an error trying to install it, just skip it for now.
There are lots of ways to install this, e.g., with this file. For more options, start here.
This install allows for visual rendering of tone glyphs that aren't currently working in tkinter:
python -m pip install --upgrade pip
(if your pip hasn't been upgraded recently)
python -m pip install --upgrade Pillow
If you have any problem installing this, it is not a problem for using AZT —you will simply see tone marks badly ligatured, like (˦ ˦ ˨ ˨ ˥ ˩ ˦) instead of like (˦˦ ˨˨ ˥˩˦).
This is just required to compile reports into PDF. If you're not doing that (e.g.,plan on compiling yourself through XXE anyway), you don't need this:
python -m pip install lxml
A-Z+T will eventually try to produce the first draft of reports directly to PDF. In order for this to work, you must have XeLaTeX installed:
- Debian/Ubuntu Linux:
sudo apt-get install texlive-xetex
- MS Windows: There are many ways to do this, e.g.,
To make full use of A-Z+T's report output, I strongly advise you to be ready to use XLingPaper, if you are not already. It can be downloaded here; this page also includes information on downloading the XMLmind XML Editor (XXE), which is critical to most uses of XLingPaper.
If you have Praat installed, A-Z+T can open sound files you have recorded there for you. To enable this feature in A-Z+T, the Praat executable must be in your operating system path. You may need to ask your IT support for help, if you don't know how to do this. If you use this feature much, you should install either at least version 6.2.04 of Praat or the helper program sendpraat, again into your operating system path, available for Windows, Linux, and Mac.
To run A-Z+T
Assuming your system is configured correctly, just run main.py
. Depending on your system, that may be just a click on the file (or a link to it on your desktop or wherever), or you may need to type that into a terminal. Your operating system should know to open main.py
with python, but you can also explicitly tell it to with python main.py
.
For usage information, see USAGE