added function to get volume of the room based on user information