Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
baidu-yuyin-api
Advanced tools
Nodejs implementation of Baidu Yuyin, support text to speech and speech recognition
This is a forked repo of baidu_yuyin. Currently under development, use with caution. The original README is here(in Chinese).
Need Nodejs v6 above to run this module.
npm install baidu-yuyin-api
var BaiduYuyin = require("baidu-yuyin-api");
// Init Baidu Yuyin API.
// Make sure the apiKey and secretKey are set.
// afplay is default player for Mac OS.
// For windows, can use vlc or wmplayer instead.
var speech = new BaiduYuyin(apiKey, secretKey, 'afplay', null, false);
// Options
var optt = {tex: 'English testing, Hello world', lan: 'zh'}; // Text to speech, language not support English.
var optcn = {lan: 'zh'};
var opten = {format: 'wav', lan: 'en'};
speech.on('ready', () => {
// Text to speech
speech.speak("你好世界")
.then(() => {
return speech.speak(null, optt);
})
.then(() => {
return speech.speak("测试结束");
})
.then(() => {
return speech.recognize(fs.readFileSync('./test.pcm'), optcn);
})
.then(() => {
return speech.recognize(fs.readFileSync('./test_en.wav'), opten);
});
});
Clone the repo to local, and run npm install && npm test
.
Update 0.1.9 [2016-12-02]
Update 0.1.8 [2016-12-01]
Update 0.1.7 [2016-11-30]
Update 0.1.6 [2016-11-29]
Update 0.1.4 [2016-11-29]
NODE_DEBUG=request node test.js
to test HTTP requestUpdate 0.1.3 [2016-11-28]
Update 0.1.2 [2016-11-27]
FAQs
Nodejs implementation of Baidu Yuyin, support text to speech and speech recognition
The npm package baidu-yuyin-api receives a total of 2 weekly downloads. As such, baidu-yuyin-api popularity was classified as not popular.
We found that baidu-yuyin-api 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.