A simple Nuance HTTP Client for NodeJS.
npm install nuance --save
First, you need to create a new Nuance instance:
var Nuance = ;var nuance = appID appKey;
If you'd like to send a Text-To-Speech request, use the method sendTTSRequest as follow:
If you'd like to send a Dictation request (Speech-To-Text), use the method sendDictationRequest as follow:
- If you receive error 500 with AUDIO_INFO - the headers you sent are probably wrong.
- Please make sure you are sending the right headers with the right language.
- Feel free to modify the default dictationHeaders in the nuance.js file, at the moment they are set to handle AMR files.
- You may also replace the default dictationHeaders by suppling additionalHeaders in the sendDictationRequest options, so you don't have to change the default headers in the nuance.js file.