In the circuit shown in the figure we have the way to excite a small speaker from a TTL output. The speaker should typically be 32 to 100 ohms impedance.