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

InterDigitTimeout property for multiple grammar files #30

Open
Jayapriya97 opened this issue Apr 8, 2022 · 2 comments
Open

InterDigitTimeout property for multiple grammar files #30

Jayapriya97 opened this issue Apr 8, 2022 · 2 comments

Comments

@Jayapriya97
Copy link

Hi Team, I am keeping two grammar files to recognize digits in dtmf mode.

  1. GrammarItem 1 - to understand combination of 5 digits (0 to 9).
  2. GrammarItem 2 - to understand "1"

Currently, when I entered "12345", second grammar file recognizing this and proceeding as it starts with "1".Rest of the inputs working fine except starting with "1". Tried setting inter digit timeout as well, but not worked out in this case.

"dtmfRecognition.setInterDigitTimeout(Duration.seconds(2));"

Please help on this!

@Jayapriya97
Copy link
Author

Any solution to fix this?

@gawi
Copy link
Member

gawi commented Apr 20, 2022

See VoiceXML 2.0 spec, Appendix D. Timing Properties.

I'm not sur ewhy the engine returns immediately after 1 being pressed. It seems that the state (i.e. can terminate, must terminate) is evaluated on each grammar individually and not on the combination of all grammars.

You can try specifying a termchar (e.g. #) and a termtimeout.

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