Role of photoacoustics in optogalvanics