Li and Yarowsky (2008a) computed the Levenshtein distance (LD) on the Pinyin of the two words in the pair to reflect the phonetic similarity.
as a general string metric, LD does not capture the (dis-)similarity between two Pinyin pronunciations well as it is too coarse-grained.