从db到语音输入的文本编译 [英] Text compair from db to speech input

查看:79
本文介绍了从db到语音输入的文本编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在用c#编写应用程序。

1: - 与Alexa设备对话

2: - 需要来自Alexa api的字符串,并从语音输入中执行我的sql。



问题是在Alexa,当我说rajnarayan时,alexa将其捕获为ratnaran 。

所以当我登记我的数据库时没有找到记录。



请帮我解决这类问题。



我尝试过:



在谷歌搜索中尝试过。但我没有得到一个合适的链接来解决问题

解决方案

这个问题将保持不变,即使我们输入谷歌我们有时会得到同样的问题



但是如果你记得谷歌提供simillar匹配到我们的搜索



这里是伪代码 -

1)尝试计算两个单词的匹配百分比 - 一个是口语,另一个来自数据库,你需要遍历数据库中的每个单词

2)显示结果显示为是你的意思是?



阅读此博客 - 关于计算匹配百分比

C#:计算2个字符串的相似度 - TechNet文章 - 美国(英语) - TechNet Wiki [ ^ ]

Hi All,
I am writing a application in c#.
1:- Speak to a Alexa Device
2:- takes the string from Alexa api and executing my sql from the speech input .

the problem is that in Alexa when i say "rajnarayan" , alexa capture it as "ratnaran".
So when i check in my DB no record found .

Please help me how to solve this kind of issue .

What I have tried:

Tried in Google search. but i am not getting a suitable link to solve the issue

解决方案

this problem will remain the same, even when we type in google we sometime get the same issue

but if you remember google provides simillar matches to our search

here are pseudo code -
1) try calculating the matching percentage of two words - one which is spoken and one from database, you need to loop through each words in database
2) display the result showing as "Did you mean?"

read this blog - on calculating the matching percentage
C#: Calculating Percentage Similarity of 2 strings - TechNet Articles - United States (English) - TechNet Wiki[^]


这篇关于从db到语音输入的文本编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆