refactor audio and avatar.