callback for speak function