Fully working switching grammars and writing audio and grammars on temp folders