Controlling volume from speakers

Then use the tone out function to generate the noise and use the digital pot to control the output signal before you put it into an audio amplifier.