Only a small fraction of a typical barrel of oil is allocated to energy generation. The majority goes to transportation/industrial use-cases. The transportation usage can be allayed with sonar energy, but the industrial use-cases cannot.
I don't think anyone is making the argument that solar panels can completely replace fossil fuels in the short term. However, more electrification is better all around.