Linear redshift space distortions for cosmic voids based on galaxies in redshift space