Completed replace audio functionality, bugfixes for extract audio