Trainable algorithm for automatic measurement of voice onset time