We tried teaching the 'speak' command to get our little girl to stop barking. We succeeded in teaching her to bark on command, for a treat of course, but it absolutely failed at keeping her from barking at any other time when she feels like it (like the postman, wind, tv, etc.)!
I've given up now and just accepted that she is a very talkative little cocker!