Both words are correct and gender do not refer to the speaker, but to the Spanish word as in Spanish words are assigned a gender (masculin or femenin).
"Lengua" or "lenguaje" are used in mostly in academic texts than "idioma" which is a most broadly used.