Add audio api functionality

As per #149, this implements the audio API. 

Still needs documentation, but go ahead and test!!