Refactor audio extract