evancohen / sonus

:speech_balloon: /so.nus/ STT (speech to text) for Node with offline hotword detection
MIT License
625 stars 79 forks source link

Can you pipe audio data to this (with node.js) #85

Open Tylertron1998 opened 6 years ago

Tylertron1998 commented 6 years ago

Hi there,

Been looking at this, very interested. However, after looking over the docs, is it possible to pipe raw audio data to this package, and then use that to translate to text?

Thanks

evancohen commented 6 years ago

Not out of the box... I'm wanting to support this in the next version, but I'm currently traveling and am waiting to do a refactor once I return.
I'm curious about your use case. Can you describe what you trying to accomplish? If you're just trying to transcribe audio then you may want to just use Google Cloud Speech on it's own. If your piping audio data, where is it coming from and why do you want to pipe it?

Tylertron1998 commented 6 years ago

The usecase I'm looking for is for an application called Discord. Not sure if you have heard of it; but it is essentially a IRC chat app with voice and text channels. They have a "bot" API, allowing you to interact via bot accounts, which are controlled via code - I am making a music bot, and was thinking voice commands would be very cool - I chose this package as it seems to be the best way of realtime, local voice-to-text.

karyeet commented 4 years ago

Any news?