Who Elects the Speaker of the House?

After a general election the house has a special meeting in which they nominate potential speakers. After the nomination they vote and the winner of the majority of the votes is elected Speaker of the House. This person now speaks for the house even though usually they are more representative of their specific party.