Senegal's National Assembly elected ousted prime minister Ousmane Sonko as its speaker Tuesday in a vote boycotted by the opposition, following months of tension that culminated in the firebrand's sacking.