Let's break it down:
* Pero: But
* Me gusta: I like
* Cuando: When
* Tú: You
* Hablas: Speak
* Español: Spanish
This phrase expresses that the speaker enjoys hearing the other person speak Spanish, even if there's a contrasting element implied by the "pero" (but).