简体   繁体   English

如何在Node.js的帮助下实现简单的Google Web语音API

[英]How to implement a simple google web speech api with help of node,js

I am looking for a step by step process. 我正在寻找逐步的过程。 Or a good documentation that will help implement. 或良好的文档将有助于实施。 So far I found this repo in github. 到目前为止,我在github中找到了这个仓库。 But I could not understand how this can help https://www.npmjs.org/package/google-speech-api 但是我不明白这对https://www.npmjs.org/package/google-speech-api有什么帮助

As the Google uses HTTP API you do not need to use any specific node module. 由于Google使用HTTP API,因此您无需使用任何特定的节点模块。 That's why you could use simple HTTP request module to send/stream the file to google and get back the response. 这就是为什么您可以使用简单的HTTP请求模块将文件发送/流式传输到google并获取响应的原因。 Here is small example how to do that https://gist.github.com/alotaiba/1730160 . 这是一个小示例,说明如何做到这一点https://gist.github.com/alotaiba/1730160

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM