Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.