This actually came up in the Lincoln movie. There was a very close vote on the amendment that outlawed slavery so the Speaker cast a vote.
Except in ties or exceptionally important matters the speaker usually doesn't register a vote.
Thanks, x.
Not sure I ever knew that.