Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speech Recognition with Intents missing the query words after special character #33

Closed
karthikeyanmlp opened this issue Feb 7, 2019 · 2 comments

Comments

@karthikeyanmlp
Copy link

Speech Recognition with Intents missing query words on Intent Recognition
In Javascript Speech SDK intent recognized with LanguageUnderstandingServiceResponse_JsonResult.
The recognized query words are missed after the special characters($, +, etc.,) occurrence.
Solution: Recognized query words from Speech SDK must parsing/encoded while process with LUIS.

Steps to reproduce the behavior

  1. Speek with sentence with &
  2. Check the SpeechSDK.ResultReason.RecognizedSpeech for exact text we speak
  3. Check the SpeechSDK.ResultReason.RecognizedIntent there where the words after & is missed

Expected behavior
Recognized query words from Speech SDK must parsing/encoded while process with LUIS.

Version of the Cognitive Services Speech SDK
SpeechSDK-JavaScript-1.1.0
SpeechSDK-JavaScript-1.2.1

Programming Language

  • Programming language: JavaScript

Issues with log information
Sample item to reproduce the issue:
*Note: Problematic lines are highlighted below

(sessionStarted) SessionId: 712B58292F564C9C85B9E45CD6C14AA9
(speechStartDetected) SessionId: 712B58292F564C9C85B9E45CD6C14AA9
(recognizing) Reason: RecognizingIntent Text: he
(recognizing) Reason: RecognizingIntent Text: show
(recognizing) Reason: RecognizingIntent Text: show comp
(recognizing) Reason: RecognizingIntent Text: show company
(recognizing) Reason: RecognizingIntent Text: show company did
(recognizing) Reason: RecognizingIntent Text: show company detail
(recognizing) Reason: RecognizingIntent Text: show company details
(recognizing) Reason: RecognizingIntent Text: show company details for
(recognizing) Reason: RecognizingIntent Text: show company details for 80
(recognizing) Reason: RecognizingIntent Text: show company details for AT and
(recognizing) Reason: RecognizingIntent Text: show company details for AT&T
(recognizing) Reason: RecognizingIntent Text: show company details for AT&T lab
(recognizing) Reason: RecognizingIntent Text: show company details for AT&T laboratory
(recognizing) Reason: RecognizingIntent Text: show company details for AT&T laboratories
(speechEndDetected) SessionId: 712B58292F564C9C85B9E45CD6C14AA9
(recognized) Reason: RecognizedIntent Text: Show company details for AT&T laboratories. IntentId: BusinessDetails Intent JSON: {
"query": "show company details for AT",
"topScoringIntent": {
"intent": "BusinessDetails",
"score": 0.835796535
},
"entities": []
}
(continuation) Reason: RecognizedIntent Text: Show company details for AT&T laboratories. IntentId: BusinessDetails Intent JSON: {
"query": "show company details for AT",
"topScoringIntent": {
"intent": "BusinessDetails",
"score": 0.835796535
},
"entities": []
}
(sessionStopped) SessionId: 712B58292F564C9C85B9E45CD6C14AA9

@fmegen
Copy link
Member

fmegen commented Feb 7, 2019

thank you for reporting the issue, we will look into the root cause.
we can reproduce the incorrect behavior and work on a fix for the issue

(duplicate of Azure-Samples/cognitive-services-speech-sdk#154)

@karthikeyanmlp
Copy link
Author

Thank you @fmegen and @mahilleb-msft, Now it is working fine with SpeechSDK-JavaScript-1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants