Mic input voice testing

My app has a mic and I would like to test a few scenarios like tapping the mic and speaking something. The voice can either come from

  1. a human speaking near the device OR
  2. Playing back an audio file uploaded to TestProject as a data source OR
  3. Playing back an audio file located at a URL

Is this scenario supported out of the box in TestProject or is this something to be coded using the SDK? Any starting pointers?