Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 22-Feb-18 19:45pm
Comments
Richard MacCutchan 22-Feb-18 11:30am    
That is just an issue with speech simulators, they are not 100% accurate. In fact even humans can make similar mistakes.
Rajnarrayan Bose 23-Feb-18 2:23am    
Thanks

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900