
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
This simply uses the eSpeak cli program to generate wav audio data from text strings. You can then use the raw binary data to output to a file, send as a http download, get as a base64-encoded data URI string, or whatever else.
$ npm install espeak
var espeak = require('espeak');
// optionally set the path to the `espeak` cli program if it's not in your PATH
//espeak.cmd = '/usr/bin/espeak';
espeak.speak('hello world', function(err, wav) {
if (err) return console.error(err);
// get the raw binary wav data
var buffer = wav.buffer;
// get a base64-encoded data URI
var dataUri = wav.toDataUri();
});
// optionally add custom cli arguments for things such as pitch, speed, wordgap, etc.
espeak.speak('hello world, slower', ['-p 60', '-s 90', '-g 30'], function(err, wav) {});
There are some related modules, although there seems to be some scattered forks and it wasn't clear to the author which was updated and/or compatible with Node.js/npm at the time of writing this.
FAQs
text-to-speech using espeak cli program
The npm package espeak receives a total of 60 weekly downloads. As such, espeak popularity was classified as not popular.
We found that espeak 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
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.