This figure of speech is Simile.
The simile is a figure of explicit language of comparison, characterized by the use of connectives to emphasize the comparison that is being made.
This is exactly the case, where the narrator compares the maternal voice to a dark room using a comparative connector.