语音识别减少可能的搜索结果搜索结果、语音识别

2023-09-05 11:09:15 作者:藏进云朵里

我已经开始用语音识别采用了android,SL4A和python,到目前为止,它工作正常。 我的用户只是假定输入数字0到9之间与他的声音。有没有办法告诉机器人在这些数字只搜索,从而减少识别的时间(也可能是错误的)?

I have started with Speech recognition using android, sl4a and python and so far, it works fine. My user is just supposed to input numbers between 0 and 9 with his voice. Is there a way to tell android to only search in those number and therefore reduce the time of recognition (and probably errors) ?

推荐答案

没有。你不能改变什么谷歌返回。您只能处理结果。

No. You cannot change what google returns. You can only process the results.

幸运的是,可以处理结果,以增加的匹配的机会。

Fortunately, you can process the results to increase the chance of a match.

例如,您可以使用语音匹配算法像 探测法

For example, you could use a phonetic matching algorithm like Soundex

使用探测法或类似的东西,如果识别器听到类似真正的你的code仍可将其识别为2号。

Using Soundex or something similar, if the recognizer hears something like "true" your code could still recognize it as the number 2.