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

Generating VoiceXML using the VoiceXmlDomUtils class. #5

Open
Rohith2304 opened this issue Aug 13, 2021 · 1 comment
Open

Generating VoiceXML using the VoiceXmlDomUtils class. #5

Rohith2304 opened this issue Aug 13, 2021 · 1 comment

Comments

@Rohith2304
Copy link

Rohith2304 commented Aug 13, 2021

Hi, I am looking at the VoiceXmlDomUtils class where I can generate different number of tags, but I am unable to find any sample codes from Github. Can someone please help me?

@gawi gawi changed the title Hi , I am looking for VoiceXmlDomUtils Class where I can generate different number of tags ,But unable to find any sample codes from the github. Can someone please help me Generating VoiceXML using the VoiceXmlDomUtils class. Aug 18, 2021
@gawi
Copy link
Member

gawi commented Aug 18, 2021

The goal of Rivr is to let play with abstractions such as Interaction, Message, Transfer, etc. so that you don't have to generate VoiceXML yourself. The provided output turns should provide you with all the functionality you would typically need in order to build an IVR application.

That being said, if for some reason you need to do something tricky, such as exploiting a VoiceXML platform extension, you may have to generate you own VoiceXML document or adapt the VoiceXML documents generated by Rivr.

There are 2 mecanisms:

  • Create your own "OutputTurn" (see Adding a custom log turn as an example)
  • Modify the generated VoiceXML document with a VoiceXmlDocumentAdapter. In this case, your implementation has to modify the DOM to suit your needs. It has to be set on the VoiceXmlDialogueServlet using the setVoiceXmlDocumentAdapters method.

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