AudioOutputSPIFFSWAV writes a valid WAV file to the SPIFFS filesystem. Be sure to do a SPIFFS.start() or .format before calling any output. Set the filename using the additional ->SetFilename() call.