A compact low-cost speech recognition system