improve readDatabase

three channel mic database now uses the <irDatabase.dir> key to get the
base path
previously a separate key in <impulseResponses> struct was used
fix bug in speech recognition script
improve speech recognition script

octave compatibility
fix bugs and duplicate code