Echolalia
From ActuallyAutistic Wiki
Echolalia... echolalia...
Echolalia is the repeating of words or sounds heard. This can be immediate or delayed. An example of immediate echolalia could be meowing back at a cat. Delayed echolalia can be part of scripting, or for fun.
Immediate echolalia
Immediate echolalia is repeating a sound, word, or phrase right after hearing it. It could be anything from a single word to a whole sentence.
Delayed echolalia
More detail please!