-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to only use one intent at a time? #83
Comments
@luketurnerdev Can you share the wit app id? |
@ChrisyShine 471818378315989 |
If the sentence is for a purpose, why do you need to annotate the whole sentence as an entity? Is the intent |
@ChrisyShine Thank you for your response. I have removed recitedSentence as an entity, but i'm unsure how to access the callback for an intent. Here is the current flow:
Are intents handled differently than entities (perhaps formatted value events instead)? Please help me understand how to setup this callback to be triggered in much the same way. Your help is much appreciated! |
Hi @yolanother , thanks very much for your response. I have setup my Response Matcher as closely as I could to yours: However,
Apologies for the many questions, I just couldn't seem to find the documentation for this, and the Shapes tutorial only covered the use of entities. |
It is odd that you can't see the additional fields, they are in all versions of VSDK. Do you have any additional assets installed that effect how UI is rendered like Odin? What version of Unity are you running? The intent won't show up in the values string array, you will need to use the value matcher and its event above that to get the value. There is another way to do it. You could match with a [MatchIntent] attribute instead of using a value matcher. If you do that you can get direct access to the wit response in your method. EX: |
Thanks for the quick response, I am running Unity 2022.1.4f1 and don't have any additional UI addons. I deleted and reinstalled the latest version of Wit from the Github repo, didn't seem to help. I don't seem to have a place to enter callback events for intents in the GUI that I can see, but calling it from the script worked with your example, thank you! Is there a full API documentation somewhere? Or at least somewhere in the source code you can point me to where the main intent functions are defined? Would be very helpful. Thanks again! |
Ok, we'll give 2022.1.4 a try. I would recommend using Voice SDK instead of wit-unity directly. Wit-unity is a submodule of Voice SDK and is meant for bleeding edge development. It won't always build. Docs: https://developer.oculus.com/documentation/unity/voice-sdk-overview/ |
Hi there!
I have two intents setup in my Wit.ai configuration: reciteWord and reciteSentence.
However, some words (e.g., "I") are also contained in phrases (e.g., "I Like Pizza"). Wit then matches the "I" as a recitedWord (entity) and ignores the recitedSentence, which is what I want.
The intent in the response matcher is set to recite_sentence (see pic) but the JSON response that comes back still only matches recitedWords.
Also attached is my entity setup in Wit.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: