Home automation system based on speech recognition