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

发布于 2024-12-25 16:29:35 字数 121 浏览 1 评论 0原文

我开始使用 android、sl4a 和 python 进行语音识别,到目前为止,它运行良好。 我的用户应该用他的声音输入 0 到 9 之间的数字。有没有办法告诉android只搜索这些数字,从而减少识别时间(可能还有错误)?

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) ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

动听の歌 2025-01-01 16:29:35

不可以。您无法更改 google 返回的内容。您只能处理结果。

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

例如,您可以使用语音匹配算法,例如
Soundex

使用 Soundex 或类似的东西,如果识别器听到类似“true”的内容,您的代码仍然可以将其识别为数字 2。

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文