The production of electric currents by certain crystals when they are squeezed or stretched?

You are talking about piezoelectricity. See related links below.