Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the Web Speech API in NodeJS

I am wondering if it is possible to run the Web Speech API in node.js? Since node is Javascript based, I was assuming it could be used, but I can't find a way to use it natively in node. Would there be a way to "include" this Web Speech Library in a node.js script to use it?

Thank you

like image 429
Bob Avatar asked Feb 02 '17 16:02

Bob


1 Answers

While you can't use the WebSpeechAPI in Node (as it is a built in browser capability), you can use Google Cloud Speech or one of the many other cloud recognizers that have Node SDKs.

If you're looking for a super lightweight implementation that handles all of the audio encoding and supports offline hotword detection I would recommend Sonus.

Disclaimer: this is my project

like image 178
evancohen Avatar answered Oct 07 '22 04:10

evancohen