Imagine the source of protein you'd get! While probably not super handy (as it only happens during swarming times) and maybe even ecosystem-disruptive, turning them in to food would be useful.
Wouldn't look at this as a farming avenue, more a way to respond to such scaled issues using tools that may very well already exist or be modified to cater for such needs.
Certainly aware of crowd control sound weapons, I'd be supprised if the militaries of the world didn't have there own more powerful flavours begging for a PR test opportunity like this.
Now I wonder if there is a single resonant frequency that would work on all of them. The individual differences alone would be hard. Perhaps a general microwave type of weapon/harvester would work better?