javascript Node js离线语音转文本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26257873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Node js offline speech to text
提问by Mike Boutin
I want to create a robot with Node.js and Tessel.io, i bought the audio module and i'm wondering if it exist any speech to text or audio to text package for node js or something else.
我想用 Node.js 和 Tessel.io 创建一个机器人,我买了音频模块,我想知道它是否存在任何语音到文本或音频到文本包的节点 js 或其他东西。
Can someone help me with this?
有人可以帮我弄这个吗?
Thank you
谢谢
回答by Nikolay Shmyrev
There is a node module for CMUSphinx
CMUSphinx 有一个节点模块
https://github.com/cmusphinx/node-pocketsphinx
https://github.com/cmusphinx/node-pocketsphinx
It works offline. It's a bit initial state but let me know if you have questions on it.
它离线工作。这有点初始状态,但如果您对此有任何疑问,请告诉我。
回答by evancohen
This issue is a bit stale, so I thought I'd add a more up-to-date answer:
这个问题有点陈旧,所以我想我会添加一个更新的答案:
CMUSphinx is great if you have something powerful enough to run it, but if you are on an embedded device like the Pi or the CHIP it can be quite slow.
CMUSphinx 很棒,如果你有足够强大的东西来运行它,但如果你在像 Pi 或 CHIP 这样的嵌入式设备上,它可能会很慢。
One alternative is Sonuswhich has offline hotword detection and then uses Google Cloud Speech for streaming results.
一种替代方法是Sonus,它具有离线启动指令检测功能,然后使用 Google Cloud Speech 获取流式结果。