I got the impression, both from this article and the original (here: https://advances.sciencemag.org/content/7/11/eabd9138) that the electricity wasn't generated by the fungus, but instead the increased compressibility of the wood after being rotted enhanced its pre-existing piezoelectric properties. The original article does mention "mitigation of climate change" as a possible application, by the way.