/// <summary> /// Builds the grammar required to recognize the voice commands that control the <see cref="IAirConditioner"/>. /// </summary> /// <returns> The grammar with the supported commands. </returns> private Grammar BuildAirConditionerControlGrammar() { Choices commandCatalog = new Choices(); return(commandCatalog.AddPowerOnCommand() .AddPowerOffCommand() .AddCurrentTemperatureCommand() .AddHeatRoomCommand() .AddCoolRoomCommand() .AddChangeTemperatureCommand() .BuildGrammar()); }