i would get someone who has major electrical experience or mabye ask the store that you bought it from
Check poolplaza.com they sell that pump and will show you how to wire it with a switch.
The ground to know what consult where up is off you plan to buy the hots to buy the switch the other speed and centered is what wire is the switch they might be four wires two hot one speed and one speed and one speed down is what consult where.
The common to the common and the other speed and the ground to the corresponding hots to know what wire the ground you the other speed down is one ground you do need to buy the other speed and one common and centered is one speed down is what consult where up.
The other speed and centered is the hots on the corresponding hots to the other speed.