working version of local recording WITHOUT audio feedback loop