fixed bug in recording, integrated sox. need to integrate sphinx_fe later