1. A method for matching speech data used to determine the similarity between an input speech data and a sample speech data, the method comprising: segmenting the input speech data into a plurality of input speech frames; segmenting the sample speech data into a plurality of sample speech frames; building a matching matrix, wherein each element of the matching matrix corresponds to one of the input speech frames and one of the sample speech frames and indicates a distance value between the corresponding input speech frame and the corresponding sample speech frame; calculating a matching score, wherein the matching score is obtained by calculating the distance value indicated in each element of the matching matrix; and determining whether the input speech data and the sample speech data are similar according to the matching score.