Virtual-Assistant icon indicating copy to clipboard operation
Virtual-Assistant copied to clipboard

Speech to Text

Open ritwik12 opened this issue 7 years ago • 6 comments

Virtual assistant is only text to speech at this moment as it is hard to implement Speech to text in C language. But if we can have Speech to text too, then we'll be able to use it with voice commands also and that'll be an huge improvement.

ritwik12 avatar Nov 06 '17 18:11 ritwik12

isn't there a library to do that?

speedy-software-ch avatar Nov 06 '17 18:11 speedy-software-ch

@speedy-software-ch Non of the APi's are available for C. or maybe I couldn't find any.

ritwik12 avatar Nov 06 '17 19:11 ritwik12

ok. i'll try to research it too.

speedy-software-ch avatar Nov 06 '17 20:11 speedy-software-ch

@speedy-software-ch Thanks

ritwik12 avatar Nov 06 '17 20:11 ritwik12

I found a couple of good options for this although I haven't tested them myself.

Carnegie Mellon maintains speech-recognition software in a suite called CMU Sphinx. PocketSphinx is a version written in C and is meant to have low overhead for embedded systems (I think it would be cool to be able to run Virtual Assistant on a headless computer like a Raspberry Pi with a speaker/mic attached). The homepage for CMUSphinx is here and the downloads page links to PocketSphinx specifically.

There's also this option here, which seems to be a C wrapper for the Google Speech API. It might be simpler to set up/use but would require a constant web connection.

KeenanTaggart avatar May 18 '18 04:05 KeenanTaggart

@KeenanTaggart I got your idea of using headless computer, but virtual assistant uses a lot of Linux functionalities. So it will be a problem and we need to write lots of functionalities again.

Also, there is no problem with constant web connection as many of the features uses internet and to use virtual assistant a web connection is always needed.

ritwik12 avatar May 18 '18 04:05 ritwik12