Comments (3)
呃。。。抱歉,之前我的示例和文档里没有写清楚。
目前Node不支持import语句,我的源代码包括测试用例都是用TypeScript写的,执行时执行的其实是TS生成的JS文件,它里面就没有import语句了。
如果您是使用Node来直接执行的话,要么用:
const xxx = require("xxx");
这种形式来引入,要么试试看 ts-node 来运行。
from xunfeisdk.
对 是上述的问题 已经解决! 这个SDK封装的实在漂亮! 点个赞!
from xunfeisdk.
多谢,对大家有用就好。 :)
from xunfeisdk.
Related Issues (8)
- 请问这个sdk可以用在小程序中吗? HOT 2
- AppID,IATAppKey,ISEAppKey,TTSAppKey这些都什么意思啊 HOT 1
- 讯飞语音合成返回文件是空的 HOT 3
- 语音听写出错 HOT 4
- 有关比特率问题 HOT 2
- AppKey从哪里获取呢,科大讯飞平台只有appid呢? HOT 1
- 这个还在使用吗?使用的是流式版还是普通版版呢?真着急 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xunfeisdk.