Figuring out how emacspeak starts

I'd like to get emacspeak working on, and integrated with, my main emacs. I tried a setup from scratch (while using Fedora), but got stuck somewhere in the speech synthesizer installation. When I upgraded to Debian, it came with emacspeak, which worked on the earlier of the two versions I downloaded (but ran into a tangle with other sound systems on the later of the two, which is similar to what got me to stop using Fedora). So now I'm trying to figure out what's going on inside.

emacspeak itself is a shell script, which sets up some environment variables (DTK_PROGRAM, DTK_PORT, DTK_TCL, DTK_DEVICE) and then starts emacs with a setup .el file loaded from the command line.