Optical spectroscopy of galaxies in the direction of the Virgo cluster