An n-dimensional Wiener-Plancherel formula