endoplasmic / google-assistant

A node.js implementation of the Google Assistant SDK
MIT License
283 stars 75 forks source link

mic-speaker - TypeError: record.start is not a function #84

Closed cyrild84 closed 4 years ago

cyrild84 commented 4 years ago

Hi, I got this error with mic-speaker, after enter my OAuth code : Say something! /home/pi/**/node_modules/google-assistant/examples/mic-speaker.js:55 const mic = record.start(... TypeError: record.start is not a function

I might have found a similar issue on node-record-lpcm16 repo link but not very familiar with type script. Thanks

endoplasmic commented 4 years ago

Hmm, have never seen that before...

In the package.json, you should be using my fork:

"devDependencies": {
    "node-record-lpcm16": "git+https://github.com/endoplasmic/node-record-lpcm16.git",
    "speaker": "^0.4.2"
  }
bugsounet commented 4 years ago

@endoplasmic : That does not surprise me

the original node-record-lpcm16 is so buggy everyone needs their own code! (mine)

cyrild84 commented 4 years ago

Thanks, problem solved.

Allakazan commented 5 months ago

Anyone there is an Typescript alternative ? I can't find a library that fits into my project lol