Controlling volume from speakers

xxryan1234:

Grumpy_Mike:
You could use a digital pot to controle the volume of a sound signal:-
http://arduino.cc/en/Tutorial/SPIDigitalPot
Or do you want to generate the sound as well?

Yes, I do want to generate sound as well. I want the sound to depend on the strength of my blow through the wind sensor.

My toneAC library is a replacement for the standard tone library and includes a volume setting. You can specify a volume for each note. There's also a host of other advantages of using my library over tone.

Tim