breakstring / xunfeisdk Goto Github PK
View Code? Open in Web Editor NEW科大讯飞 WebAPI TypeScript版SDK
License: MIT License
科大讯飞 WebAPI TypeScript版SDK
License: MIT License
我在前端采集之后的语音 比特率都是705, 讯飞,百度识别都失败.
我看您 测试音频的比特率都是 256,很好奇,您是怎么采集的呢?
我在网上搜了很久,也没找到对应 频率互换的方法..
没有报错,但是反复测试了几个文件,识别出来的文字,和语音完全对不上。
不知道哪里不对了。返回结果:
{ code: '0',
data: '咋啦啊。',
desc: 'success',
sid: 'zat0003855f@ch6b010ece31003d3700' }
但实际上我的语音说的是:讯飞语音
PS C:\Users\Sam\Desktop\AIUIDemo> node .\AIUI.js
C:\Users\Sam\Desktop\AIUIDemo\AIUI.js:5
import * as Xunfei from 'xunfeisdk'
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
我是技术小白,翻遍整个网络终于找到了一个webapi的详细说明文档,请问这个sdk能直接用在微信小程序中吗?谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.