Somniloquy

The phenomenon of talking while asleep.

Somniloquy is a sleep disorder. People with the condition often talk during their sleep.