Refactor audio helper