Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: cel on March 21, 2019, 04:43:56 AM

Title: action for speech recognition (windows,uwp)[SOLVED]
Post by: cel on March 21, 2019, 04:43:56 AM
Upon reading this https://lightbuzz.com/speech-recognition-unity/ would it be possible to make an action that let us define and add the words we want recognised and then fire an event?

thanks
Title: Re: action for speech recognition (windows,uwp)
Post by: jeanfabre on March 29, 2019, 04:19:05 AM
Hi,

 Sounds like an old project ( 2017 ), is it still up?

Does the project on github works for you? https://github.com/lightbuzz/speech-recognition-unity


Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)
Post by: cel on March 29, 2019, 04:32:36 AM
yes, I works for me... I actually used the script from here and changed it so that when it recognises a word the script makes an fsm fire an event.... and it works like a charm in unity 2018
Title: Re: action for speech recognition (windows,uwp)
Post by: jeanfabre on April 01, 2019, 04:13:44 AM
Hi,

Can you try this package : https://github.com/PlayMakerEcosystem/PlayMakerCustomActions_U2018/blob/master/PlayMaker/Ecosystem/Custom%20Packages/Audio/SpeechRecongnition.unitypackage?raw=true

use the component PlayMakerSpeechRecognitionProxy, define the words you want to catch, and define the playmaker event target and event you want to send.

 the event will have tis event data string set the recognized word.

 Let me know how it goes, if it's ok, I'll put it on the ecosystem.


 Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)
Post by: cel on April 02, 2019, 03:51:37 AM
I can't get it to work.... tried everything, fsm, broadcast all, game object, it just doesn't list any event on the onphraserecognised, it's always none, maybe I'm doing something wrong...
Title: Re: action for speech recognition (windows,uwp)
Post by: jeanfabre on April 02, 2019, 07:30:39 AM
Hi,

 you have to have global events defined first.

 it works here:

(https://i.imgur.com/2ox2Piv.png)

what version of PlayMaker are you using?


Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)
Post by: cel on April 02, 2019, 11:33:26 AM
yep, got it working, events need to be global... one last thing, is there a chance to have the "last spoken word" stored in an fsm variable? I'm trying to avoid get property.
Title: Re: action for speech recognition (windows,uwp)
Post by: jeanfabre on April 03, 2019, 01:59:51 AM
Hi,

 it's passed as an event data with the event being sent. so use GetEventInfo to retrieve the spoken word.

 Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)
Post by: cel on April 03, 2019, 01:07:09 PM
Brilliant,  works as a charm... Just need to test it on an xbox one. Thank you so much
Title: Re: action for speech recognition (windows,uwp)
Post by: jeanfabre on April 04, 2019, 03:19:44 AM
Hi,

 cool, I'll put it on the ecosystem in the coming days.

 Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on April 08, 2019, 01:54:43 AM
Hi,

Done (http://hutonggames.com/playmakerforum/index.php?topic=20343.0)

 Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: sofianehamza on May 10, 2019, 10:05:33 AM
amazing...it works like a charm, I was wondering if it's possible to set the keywords as variables
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on May 17, 2019, 01:57:25 AM
Hi,

ok, I created a new action called "SpeechRecognitionSetKeywords"

Can you try and let me know how it goes ( it's blind coding)

Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: sofianehamza on October 24, 2019, 12:46:19 AM
thanks for your reply
but I can't find the new action
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on October 28, 2019, 08:43:47 AM
Hi,

 have you updated the package from the Ecosystem?

Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: LordHorusNL on October 28, 2019, 11:15:04 AM
Are you sure you updated the speech recognition package jean?

I'm not seeing the new action when updating, just the proxy script.
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on October 29, 2019, 02:51:11 AM
Hi,

 true... my bad, my packer rules where messed up, can you try now? I just uploaded a new version of the package.

Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: LordHorusNL on October 29, 2019, 10:53:41 AM
I am getting the update however i'm also getting the following error on the "SpeechRecognitionSetKeywords" action where the FsmArray variable is suppose to be.

Error editing fields: Keywords
Unknown FsmArray Type: Use ArrayEditorAttribute to specify a VariableType

Thanks

Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on October 30, 2019, 02:35:27 AM
Hi,

 odd, what version of Unity and Playmaker do you have?

Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: LordHorusNL on October 30, 2019, 12:12:04 PM
2019.1.8f1
Latest asset store PlayMaker version
Clean project

Still getting the error, not that i'm using the action right now but i just thought you should know in case somebody else runs into this problem.

Thanks.
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: jeanfabre on November 01, 2019, 03:33:39 AM
Hi,

 my bad, I was not looking properly :) it's fixed, should be all good now.

Bye,

 Jean
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: rpl89 on July 12, 2021, 12:06:52 PM
Good afternoon.

I have just come across this thread as I am currently trying to destroy an object using speech recognition. I am new to Playmaker and therefore followed a few Youtube tutorials on how to use the editor but I am currently stuck and was hoping that someone could take a look at my FSM and hopefully point out where i'm going wrong. As I say my aim is to destroy the object when the user says "delete"

Thank you in advance.

(https://imgur.com/p8GT0Fo)
(https://imgur.com/iRwZLsX)
(https://imgur.com/GSgqEcP)
(https://imgur.com/y5tvkkb)
Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: rpl89 on July 13, 2021, 04:00:27 AM
Sorry here are the screenshots

Title: Re: action for speech recognition (windows,uwp)[SOLVED]
Post by: djaydino on July 13, 2021, 08:32:12 AM
Hi.
The Player Entered State does not have any action.
how does it know to set a 'Yes' event there?

you probably need to have a trigger event there