Hey Guys,
I'm using a 7.2 Ohm miniature speaker and using the Arduino to generate tones. Previously, I had a 100uf capacitor in series with the speaker (because the speaker wants AC), however, I have now added a transistor (2n2222) to amplify the signal. I don't get any sound out when the capacitor is in the circuit.
Transistors require a DC bias, speakers should not have DC current. You had the idea of the cap right, but no DC for the transistor, basically.
The circuit jremington gives above has an extra RC filter (C2, R3) - to render the tones less harsh I believe. But R1 is the key to allowing the transistor to function at all.