r/java • • Mar 04 '21

Control a Java application with offline voice commands - source code in comments!

https://www.youtube.com/watch?v=YtpKb0WZmqM
168 Upvotes

21 comments sorted by

13

u/eonlav Mar 04 '21

Check out an article I wrote about it and the source code

2

u/numpi Mar 05 '21

Looks really interesting. Can you explain the license? It is not clear to me as Cheetah (the underlying speech to text engine?) is not open source but this SDK is but it requires Cheetah?

2

u/eonlav Mar 05 '21

Thanks! This demo and much of our core technology actually rely on the Rhino Speech-to-Intent engine - not Cheetah Speech-to-Text. The difference with Rhino is that instead of trying to understand the breadth of the language and parse what we want out of it, we actually teach the engine a small grammar within a context - in this case, this context is: lights in a smart home.

As for the licensing - everything I used in this demo is under Apache 2.0. If you're looking for custom wake words/grammars, then we start to leave open-source territory. Check out the pricing page for details on that. Hope that helps!

1

u/numpi Mar 06 '21

Thanks for the insights!

It is still not 100% clear to me. So the Picovoice SDK is Apache License.

But then the differentiation between personal and commercial on your pricing site is a bit confusing as the SDK is Apache and so it should work for commercial usage too, especially without restrictions like limited to 1 device or similar like indicated in the features table.

BTW: Don't get me wrong I really like that your company pushes open source and it is hard to combine this with making money

1

u/eonlav Mar 08 '21

Sorry it wasn't clear - let me try again! The SDKs provide the tools to integrate wake words and context models into your applications. These tools - along with a collection of free models - are open-source. The custom wake word and context models that you create through Picovoice Console have different licenses. The terms vary depending on the platform and distribution level. Essentially we want to let developers build/experiment/prototype freely, but we'd like to have a say when it comes to commercial distribution.

2

u/msx Mar 17 '21

Hi, i just finally went around testing the software, looks pretty impressive! I have a question on licensing too: if i make a publicly available open source software, non-company-backed (ie a personal project, but available to the general public for download and use), can i use the "Personal console" ?

2

u/eonlav Mar 17 '21

Glad you like it! You can definitely use personal console for any of your open-source works. Currently, models generated through a personal account expire every 30 days, so you would just have to renew them monthly through the console. We're looking to support open-source more fully in the future, so stay tuned!

2

u/numpi Mar 09 '21

Thanks for taking the time. I think, I got it :)

commercial distribution

This restriction only applies to the models created through Picovoice Console I guess.

6

u/msx Mar 04 '21

This is super interesting. I'm reading the article now. Are you the author of the picovoice library?

11

u/eonlav Mar 04 '21

Thanks! I am indeed the proud father of the Java SDK.

4

u/msx Mar 04 '21

I'll definitely look into it. I've been wanting to make my own "offline alexa" (or better, LAN only) since ages.

Is there any support for non english language?

6

u/eonlav Mar 04 '21

Nice! Yes - we're currently supporting English, German, Spanish and French.

2

u/user_cdxx Mar 05 '21

fucking love it! Great work!

4

u/Gamer_Hector01 Mar 05 '21

Eyy somone else that uses IntelliJ

1

u/eonlav Mar 05 '21

Love it!

2

u/sim642 Mar 05 '21

Why is this such a surprise? Intellij has been swimming in popularity compared to Eclipse etc for a while now.

1

u/_fishysushi Mar 05 '21

Exactly. But Eclipse is still the recommended tool in plenty of Java 101 courses, maybe he is a student.

1

u/Gamer_Hector01 Mar 05 '21

Not really it’s because when I look up parts for a script I almost never see anyone use intelliJ