Speech recognition not working

38 views
Skip to first unread message

Joshua Eason

unread,
Jul 17, 2017, 9:24:19 PM7/17/17
to Lightjams
Hello,

A little over a year ago, I created a quick project allowing the user to control a moving head light with their voice. It worked quite well as you can see in the video below:

https://www.youtube.com/watch?v=2r08koFHQ2g

Today I attempted to create a similar project, but was unable to make a source activate with the function speech.recognition(1) or any other index. I am certain that my mic is working and that Lightjams is detecting voice commands because the Speech window under
Configuration activates when I speak any of the voice commands. It just doesn't work in the grid. 

Any idea if this is a bug or if I am using the function incorrectly? 

Thanks!

Joshua Eason

Jack

unread,
Jul 18, 2017, 2:31:20 AM7/18/17
to Lightjams
haha. I tried speech recognition on the song "Red light spells danger". I had this crazy idea that LJ might detect the phrase "Red lights spells danger" and then I would make a par shine Red. It didn't work so I gave up on trying for a while. I try stupid things with LJ I guess.

Mathieu

unread,
Jul 18, 2017, 9:11:58 AM7/18/17
to ligh...@googlegroups.com
Hi,

The function is speech.recognized(phraseId). It pulses when the phrase is recognized. So you should see a pulse in the monitor. Since it's just a pulse, it doesn't do a lot by itself. So you need to add a fade or activate another function with it.

To ease using the speech recognition, I've added the speech.recognized.latest function. It's like the function for midi and OSC, which makes it easy to activate a grid or a source based on the latest recognized phrase. So you can activate a grid when the phrase 2 is recognized with a formula like:

speech.recognized.latest()==2


Check the latest beta version (421): http://www.lightjams.com/history.html

Joshua Eason

unread,
Jul 18, 2017, 10:28:46 AM7/18/17
to Lightjams
Hey Mathieu,

Thanks for the reply. I downloaded the beta version this morning and tried it out on another computer, but I'm having the same result. It works in the configuration window, but isn't doing anything in the grid. I'm familiar with how a pulse looks in the feedback section on the bottom right of Lightjams, but I'm not seeing anything except a flat line. I even tried putting it into an if statement "if(speech.recognized(1), 100, 0))" and tried multiplying it by 100. Neither seemed to work.

I also tried the new function which seems to be defaulting to 1% and not changing even if I try to activate speech index 64 (trying a high number to see more of a jump). 

It is very much working in the configuration window though. Please let me know your thoughts. Thanks again!

Joshua Eason

Mathieu

unread,
Jul 18, 2017, 10:36:19 AM7/18/17
to Lightjams
Hi,

Maybe you can post your project file. If you see a green text in the speech configuration panel when you say a phrase, it should work.

Mathieu

unread,
Jul 18, 2017, 11:26:46 AM7/18/17
to Lightjams
I'm using it right now without problem. Make sure your grid is active and that the master speed or any other sub-master speed isn't at 0%.

Joshua Eason

unread,
Jul 18, 2017, 8:10:10 PM7/18/17
to Lightjams
I figured out what it is. Previously, I was able to use the speech function without any start phrase. Now it seems to only work with one. 

Are you able to use it without a start phrase?

Thanks!

Joshua Eason

Mathieu

unread,
Jul 18, 2017, 8:15:13 PM7/18/17
to Lightjams
It depends on the length of the word you want to recognize. If it's too short, maybe under some circumstances it doesn't work. 

At least now it's working for you!

Joshua Eason

unread,
Jul 18, 2017, 8:50:23 PM7/18/17
to Lightjams
I'm really looking for Lightjams to pick up on shorter words. The general idea for the project would be that when Lightjams hears someone says a word like, "cool. awesome, sweet, whoa, etc." that there would be an interactive response. Clients walking through the space won't know that there are trigger words and so a trigger phrase wouldn't work here. 

Do you have any suggestions on a solution? I've attached the file this time. 

Thanks again!

Joshua Eason
VoiceTest.ljp
Message has been deleted

Mathieu

unread,
Jul 18, 2017, 9:36:10 PM7/18/17
to Lightjams
Oh! I think I see the bug. The project file was useful, thanks!

Should be fixed in version 423: http://www.lightjams.com/history.html. There was a bug with empty start phrase.

Thanks!!!

Joshua Eason

unread,
Jul 18, 2017, 9:42:19 PM7/18/17
to Lightjams
Thanks! That definitely fixed it.

Joshua Eason
Reply all
Reply to author
Forward
0 new messages