![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node
pakison
这个作者很懒,什么都没留下…
展开
-
node后台生成srt字幕文件
var source=[{"sTime":20,"id":1,"eTime":30,"content":"李雷,你最近好吗"},{"sTime":45,"id":2,"eTime":59,"content":"很好,你呢"},{"sTime":86,"id":3,"eTime":102,"content":"我也很好,谢谢"},{"sTime":115,"id":4,"eTime":124,"con原创 2017-03-14 10:41:01 · 882 阅读 · 0 评论 -
node百度语音识别
绝对干货,直接代码详解1. 截取一段音频文件(wav)eg:audio.wav2. 验证语音识别账户var config_data= { apiKey: "4eymBfpmT4Laaaaaaaa", secretKey: "daa65d352b7ec5583aaaaaaaaaaaaaaa", cuid: "sewise_pakison", format: "wav",原创 2017-03-14 11:00:21 · 1592 阅读 · 0 评论 -
node判断文件是否为加密文件
1、通过文件路径创建流2、读取文件流的前512个字节,如果能够读取则说明文件未加密原创 2017-04-10 17:03:44 · 941 阅读 · 0 评论 -
node监听流创建结束
fs.createWriteStream后使用监听end和close都是无效的,需要监听finishvar tmpFile = "/tmp/somefilename.doc";var ws = fs.createWriteStream(tmpFile);ws.on('finish', function() { // pipe done here, do something with fi原创 2017-04-05 14:05:55 · 1516 阅读 · 0 评论