Refactor audio module for bellbirds purposes.
Add some input validation and remove some bellbird related dead code.