Thegeneralprocessto achievethisgoalis to build (oradapt) amodel, apply a spokencommandagainstthat model in a recognition process, and thendecide on an actionin a dialogmanager.
That allows the software to not just recognize a spokencommand, but react differently based on where a user is and who the user knows, ask for clarification, and follow a long string of related commands.