add permission record audio
be handling error when writing file