本文介绍了如何检测同音字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对语音处理还很陌生,但是想知道如何检测到留声机.我正在寻找一种API,该API会根据两个单词的发音给出两个单词之间的相似性.
I am fairly new to speech processing, but wondering how homophones are detected. I am in search for an API which gives similarity between two words on the basis of how they are pronounced.
例如:至"和两个"在说至"和来自"方面的发音非常相似.
for example: "to" and "two" are highly similar in terms of how they sound with respect to say "to" and "from".
推荐答案
您可能希望尝试计算编辑距离,而不是根据原始字符串,而是根据发音,例如CMU发音词典中的 http://www.speech.cs.cmu.edu/cgi-bin/cmudict
You might want to try calculating the edit distance not on the original strings, but on pronunciations, like they are available in the CMU Pronouncing Dictionary at http://www.speech.cs.cmu.edu/cgi-bin/cmudict
这篇关于如何检测同音字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!