but I do not know how to set up myData. I am assuming it is a lookalike to an audio file such as a "wav" but I do not know how to create this. Can anyone help?
For myData you can pass NSData object in which you have stored your WAV-File. In order to do that properly you should make sure you know how to create WAV-files, set up the header and the data part. Consult the WAV format specification.