Closed nzmajid closed 2 years ago
Do you have a link to the skillshare course? The scripts you are using here are really old and unsupported. I would recommend upgrading to the sdk provided by this repo.
Hi,
Thanks for your willingness to help. This is the link of the course https://www.skillshare.com/classes/Unity-Ttorial-Part-Discover-Voice-Controlled-AR-With-A-Clod-AI-%E2%9C%85/242803432?via=search-layout-grid. . I believe the video was made in 2018. Thanks for sharing the repo link. Actually I'm an IoT AR project from this course https://www.udemy.com/course/internet-of-things-using-augmented-reality-and-unity-iotar/. I want to use wit.ai to command the AR image to appear by voice command. That's why I need to understand the course from Skillshare. I got the IoT project done successfully even though it was really old. The unity version that the lecturer used was 2015, but I am still able to achieve the same result in unity 2017.4.4 version.
I wonder why when I used the same script and using the lecturer settings (the date and his token) I got the result as it was intended to be (Skillshare course). But when I use my own settings, the date and token ((line 48,49 of the script)), I get the reply from wit.ai, but I don't get the value from the data that was sent by wit.ai. And I found in the video course, the lecturer's wit.ai setting was so simple and quite different from today's GUI. Is it because I put the wrong values for intent, value, entities in the settings, so the data structure that I received cannot be parsed correctly? Or is it my wit.ai BOT does not get enough training and samples?
The new sdk should be quite a bit easier to use. It has a tool built into it that you can use to test your utterances locally. You can find it in Window->Wit->Utterance Viewer
That tool also provides a way to get the data without having to guess at the json structure. After testing an utterance you can right click on a value you want to receive and read and there is an option to add it to a game object.
Hi,
I'm doing a project based on a course in Skillshare.com. In this course, I will send a sound file (speech) to wit.ai and will get reply by wit.ait. The entities values can be seen in the console of unity.
However I fail to get the entities from wit.ai.
If I'm using the original script from the lecturer of the course (using original bearer and string url value from the lecturer), I will get the entities and everything is fine. Please refer the photo below.
Someone told me to use my app ID instead. I don't understand where should I use the app ID because the script that I got from the lecturer only have URL and bearer line to be edited. I hope some one can help me on this problem.
Here are the scripts for this project:
The first Script
` public partial class Wit3D : MonoBehaviour {
} `
The second script:
` //Custom 8 public partial class Wit3D : MonoBehaviour {
}//END OF CLASS
//Custom 9 public class Open { public bool suggested { get; set; } public double confidence { get; set; } public string value { get; set; } public string type { get; set; } }
public class Close { public bool suggested { get; set; } public double confidence { get; set; } public string value { get; set; } public string type { get; set; } }
public class Stop { public bool suggested { get; set; } public double confidence { get; set; } public string value { get; set; } public string type { get; set; } }
public class Entities { public List open { get; set; }
public List close { get; set; }
public List stop { get; set; }
}
public class RootObject { public string _text { get; set; } public Entities entities { get; set; } public string msg_id { get; set; } } `
This are my setup in wit.ai: