You searched for: “somniloquism”
somniloquism (s) (noun), somniloquisms (pl)
The act or habit of talking while sleeping.