moved sound message logic out of api into chatcontroller