I have not used the Wahoo app, but the virtual speed on most apps is based on your power, or power to weight ratio (w/kg).
The only things that actually changes when shifting gears in ERG mode since the power is theoretically, and in practice mostly the same is peddling dynamics (it's worth the 7 minutes to watch this video).