Added support to record a message and save it in the documents directory.