Fixed command listening code and optimized TTS