added method to obtain recorded sound as dataurl string