Shake the phone to start the triangle wave generator.
This wave is then compared to the signal, creating a PWM signal. This is then amplified by a MOSFET current amplifier and passed through a low pass filter to restore the original signal, only amplified.
The signal wild have some high frequency noise.