1
votes

I am facing issues while building a Voice bot using nodejs in Microsoft Azure, Currently i have made some research and built a sample chatbot which works fine using nodejs.

I have tried MS portals for voice bot integration and unable to take it forward, need guidance and suggestions.

My idea is getting a number from Twilio, then put my azure bot's end point URL in the twilio number.

Once my twilio gets an incoming call it will route the request to the Azure bot which will respond with a greeting and ask for few inputs, then the recorded voice should be passed to the LUIS app for Natural Language understanding and give the required text which will be further handled by the Azure bot.

I am not sure whether this is good solution, please suggest I am not able to see any sample code for nodejs. Steps for integration and a basic sample code is what i need as a basic to start with, Your inputs/suggestions on this is highly appreciated.

1

1 Answers

0
votes

Using the Bot Framework SDK for Node.js, you can specify text to be spoken by your bot on a speech-enabled channel in either of the following ways:

  1. Set the IMessage.speak property and send the message using the session.send() method
  2. Send the message using the session.say() method (passing parameters that specify display text, speech text, and options)
  3. Send the message using a built-in prompt (specifying options speak and retrySpeak).

Feel free to review the following documentation provided and sample code for more details.

Update