Package Exports
- baidu_yuyin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (baidu_yuyin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
注意
因为Player的依赖库对Nodejs 4.0支持不好,请不要随意升级到新版本
如果你是Mac用户的话,我已经使用本地播放器来播放语音文件了,不过话说回来,如果是Mac的话本身就有语音库了
Baidu Yuyin 百度语音合成
使用Baidu的在线语音合成服务,需要自己申请API Key,申请网址http://yuyin.baidu.com
使用方法
安装
npm install BaiduYuyin
使用
var BDSpeech = require("BDSpeech"); var speech = new BDSpeech(apiKey, secretKey); speech.speak("你好世界")