Playout buffering of speech packets based on a quality maximization approach