how to isolate the audio output?

In my device the Tone() function is working well but sometimes i get some noise from the system (weird electric noises). Its something i can do to minimize this in order to have a clean audio?

thanks

You can 'gate' the tone output pin:

thanks a lot !! this is the solution i was looking for!