Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stt is not a funtion #17

Open
Zames-Chang opened this issue Nov 21, 2017 · 1 comment
Open

stt is not a funtion #17

Zames-Chang opened this issue Nov 21, 2017 · 1 comment

Comments

@Zames-Chang
Copy link

Zames-Chang commented Nov 21, 2017

i clone your test folder and do

npm install stt

and here is my app.js
did i miss something?

const stt = require('stt')
var fs = require('fs')
const speechStream = fs.createReadStream('./test/fixture/测试.mp3')

stt(speechStream).then(text => {
    console.log('STT: ' + text)
})

error message

stt(speechStream).then(text => {
^

TypeError: stt is not a function
    at Object.<anonymous> (/home/summer2017/user/e44041034/speech/app.js:5:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
@vecchiotom
Copy link

change const stt = require('stt') to const stt = require('stt').stt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants