Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
nuance
Advanced tools
Readme
A simple Nuance HTTP Client for NodeJS.
Use NPM:
npm install nuance --save
##Usage First, you need to create a new Nuance instance:
var Nuance = require("nuance");
var nuance = new Nuance(appID, appKey);
If you'd like to send a Text-To-Speech request, use the method sendTTSRequest as follow:
nuance.sendTTSRequest({
"text": "hello world", //The text you would like to convert to speech.
"output": "testFile.wav", //The output file.
"outputFormat": "wav", //The codec you would like to use.
"language": "en_US", //The language code (please refer to Nuance's documentation for more info).
"voice": "Tom", //The voice you would like to use (please refer to Nuance's documentation for more info).
"identifier": "randomIdentifierStringHere", //The user identifier (please refer to Nuance's documentation for more info).
"success": function(){ //The success callback function.
console.log("The file was saved.");
},
"error": function(response){ //The error callback function - returns the response from Nuance that you can debug.
console.log("An error was occurred");
console.log(response);
}
});
If you'd like to send a Dictation request (Speech-To-Text), use the method sendDictationRequest as follow:
nuance.sendDictationRequest({
"identifier": "randomIdentifierStringHere", //The user identifier (please refer to Nuance's documentation for more info).
"language": "en-US", //The language code (please refer to Nuance's documentation for more info).
"path": "audio.amr", //The path to the file you would like to send to Nuance.
"additionalHeaders": {}, //If you'd like to supply more headers or replace the default headers, supply them here.
"success": function(resp){ //The success callback function.
console.log(resp);
},
"error": function(resp){ //The error callback function - returns the response from Nuance that you can debug.
console.log("An error was occurred.");
console.log(resp);
}
});
##Notes
FAQs
A simple Nuance HTTP Client for NodeJS.
The npm package nuance receives a total of 3 weekly downloads. As such, nuance popularity was classified as not popular.
We found that nuance demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.