Echophenomenon

Echophenomenon (also known as echo phenomenon; from Ancient Greek ἠχώ (ēkhṓ) "echo, reflected sound") is "automatic imitative actions without explicit awareness" or pathological repetitions of external stimuli or activities, actions, sounds, or phrases, indicative of an underlying disorder.

The echophenomena include repetition: