Somniloquy is very fascinating.
It is unclear what are the causes, but most of the time it is not seen as a medical condition.
"Sleep talking usually occurs by itself and is most often harmless. However, in some cases, it might be a sign of a more serious sleep disorder or health condition."
http://www.webmd.com/sleep-disorders/excessive-sleepiness-10/talking-in-your-sleep
Here is a brief descriptive testimony of someone having this condition:
This is what happened to me for about one year: almost every night, I talk unconsciously while sleeping (of course I don't know, but my room mate told me that). I dream almost every night and I consciously perceive that I'm dreaming, that I'm talking to someone, that what is happening in my dream.
Why does this happen? Is it a kind of mental disorder? Is it because my brain is too active and I keep thinking too much about one thing, so that it keeps obsessing me, even in my dream?
In other words, I understand that Bringing dreams to conscious awareness is possible, but why are facial muscles sometimes activated when talking in dreams? Are there correlations with other types of sleep disorders?