r/javahelp • • Dec 16 '19

Voice recognition algorithm

Hello,

I've been searching for an algorithm or library of some sort that i could implement in my java code that recognizes a specific persons voice.

Basically iam making a voice controlled app, and i want the app to only follow my voice. What is the easiest way to do this?

I've tried:
Alizée
Recognito
Azure(failed the configuration)
Kaldi

Any answer is appreciated!
Thanks

19 Upvotes

6 comments sorted by

6

u/whizvox Graduate and Tutor Dec 16 '19

Google has Cloud Speech-to-Text. I haven't used it, but it's been used by Michael Reeves in many of his videos.

1

u/Einyy Dec 16 '19

Thank you but speech-to-text is working just fine. We just want it to only listen to ONE specific voice.

4

u/errandum Dec 16 '19

Quite sure that unless you train a model yourself, you won't have full speech recognition for only your voice. And even then there is a high chance of false positives.

If you want to have it recognize only specific sentences, doing it yourself would also still be the best approach. You'd have to record yourself doing them and then match them using some library that is not about speech recognition, but audio comparison ( google seems to have some results related to that https://www.google.com/search?q=how+to+compare+two+audio+files+in+java )

But remember, the better you make it at recognizing yourself in different situations (your audio signature will be different depending on infinite conditions of when and where it happens, so some fuzziness has to happen), the less safe it is.

2

u/Einyy Dec 16 '19

Thanks a lot for the answer, Will look into audio comparison! 🙂

1

u/claypigeon-alleg Dec 16 '19

In a previous project, that I later abandoned, I spent some time playing with CMU Sphinx. I gave up because it didn't suit my needs (and I couldn't get it to work) but you may have more success.

2

u/Einyy Dec 16 '19

Will have a look at it, thanks!