replace potmeter on motorctrl with digital potmeter to use arduino to controll

I thought ac voltage wasn’t controllable by pots and you mush use a variable frequency drive?

I have never controlled an ac motor with a pot only dc.