How to Add Voice Recognition to Your Game - Unity Tutorial
HTML-код
- Опубликовано: 26 сен 2018
- Help to support the channel if you are feeling super kind: / dapperdino
Join our Discord: / discord
docs.microsoft.com/en-us/wind...
In this video I show you how you can use your own voice to call functions for your game in Unity.
-----------------------------------------------------------------------------------------------------------
If you liked the video then please respond with a like and a subscribe to show your support for the channel and I'll repay you by creating more tutorials to teach you the wonder that is Unity :D
Thank you so much for this. Simple and to the point! Didn't ever seen something this easy to set up
Usually people who make tutorials take so much time to explain everything. This video has the good amount of explaining without it dragging on. Top notch
Great tutorial. I like that you try to explain things rather than saying "just write this". Thank you!
yes this is the only totorial i like becouse u dont have the code already written
Really loved the idea of the Dictionary didnt even think of that myself
Great tutorial thank you so much I have been looking for a video or web page tutorial on voice input.
Thanks for this. Really appreciate you sharing this knowledge.
Thanks, great tutorial!
So that’s how you can do voice recognition...so simple! Nice one dude! :D
Thanks :D The documentation is in the description in case you would like to read up on it some more :)
what?? I would have never thought this would be so easy!!!
Thank you so much for this tutorial!
now I will be able to recreate Deltarune Chapter 2 berdly fight and tell Noelle to do "snowgrave" with my own voice
thank you so much! i'm from Mexico and this worked perfectly with words in spanish!! you are AMAZING! thanks again!
how you did, did you have any issue on the way? i want to archieve that thing too in spanish. but my microphone dosnt seems to work, i dont get it yet still cant understand why is not working for me :(
I play 10 hours with it and I' loved it
Cheers, friend! Great tutorial ❤
Amazing video thank you so much. Don't even need it in my school project just wanted to know how it worked but goddamn you gave me a great idea thank you for the great video!
Thank you! Really useful!
great tutorial, thanks very much!
Dude!!! thank you so much this is so awesome!!! much appreciated man. God bless!
Simple as that, thank you very much
Very useful thank you !!
It works very good, Thank you !!
This guy is a life saver....thumbs up~~
Can it activate if it has 2words?
This is amazing! Just what I need, on the engine I'm learning.
Any chance we can get a part two, with custom player inputs. I'm thinking something like how Nintendogs allows custom trick names. Any anything about recognizing player's headmotions or handmovements? (For reference, I'm interested in making a VR game)
Great Job!
cool!!! totally works!
thanks for the tut! Subscribed. How does Unity know which microphone to use when there are multiple Mics connected to the computer including VR/AR mics?
Is there a way to incorporate this method with speech which requires parsing of commands from variable components, like “rotate left 45 degrees”
Thank you verry much
Bro now I am your Die_heart faaaaaaan
god really bless you
mindfully ,heartfully thankyou
Thanks!
Thanks for your sharing!
A Question: If I want to take some action when the KeywordRcognizer fails to recognize keywords(When I say a word not in the keyword lists), what should I do? It seems that there is only OnPhraseRecognized event and no something like RecongitionRejected. I don't want to use a timer.
This is awesome, could I for example, say start game or next or back, ant it will function?
Nice video with clear explanation. Is it possible to Open URL by voice, instead of clicking them?
Thank you
Awesome man thank you for making this, do you know if the recognition is based on interim or final results? if it acts on final result, then you wouldn't happen to know how to check on the interim results? you'd probably get the cube to move twice as fast with interim results :-) let me know, thanks.
what do we have to do if we want to implement the samething for a android..i am trying to make a vr game just for some fun and i dont really have the oculus vr but just a normal cardbord so i want to use such commands in their
I'd like to make a mantra/prayer counter. How would I link a phrase to a counter on screen? And when it reaches a certain amount, how to trigger an event (like, Your prayers have been heard!).
It works great, but can I call the voice recognision from a function and that it doesnt work otherwise.
bro thanks
@DapperDino
I agree with some of the others, for mobile would be good. I've been looking for this for mobile and VR (not sure if SteamVR can connect to the Oculus’ android SDK or would just use Windows?). There are tutorials that use GCP, Azure or AWS for STT but as shown, but using the built in STT makes a lot more sense is obviously faster. It would be amazing to learn about using the mobile version of this, though I don't imagine it being as easy?
P.S. Please keep up the tutorials! Already found a dozen or so that are going to be useful and I'll probably end up watching through whole playlists! Cheers.
Any update on finding something like this on mobile?
how do i trigger animations + moving it in different directions
Hello!
Thank you very much for the video.
Do you know how I should publish my game (was maked based on your tutorial) on web?
I try to export my game to WebGL, but I receive some errors about .
Do you know how I solve this problem?
sir how to control the user to go in and out from 360 videos using voice recognition?
hi, Dapper Dino. Thank you very much. support so great video. i have a question:when voice is end, how i know the voice is end. i want do something when voice is end. eg. when i speak some words, and after two seconds, can auto recognition the audio clip. do you know how to implement it? thank you very much!
What if I want to add a fecture where an object or person in the game mimics your voice and say it over again with other words as well?
Love the video, Still waiting on that inventory dragging system video tho :/
Since you seem to be an active commenter, I'll try my best to get that video done tomorrow (or today depending on time zones xD)
Dapper Dino - Coding Tutorials woooooooooooot
Wow just came across your channel..good stuff..
How could use in an android build??
@@random_precision_software cant
@@justlaz1444 yes u can
@@blakerobertson9989 how?
this tutorial seems to be nice, but im having problem its like it dosnt reconize any sound of my microphone and i can listen to my microphone its not the best one but im wondering what can be :( any hint? thanks.
Nice
does anyone know how to give unity access to mic on Mac OS
Hello! Great video.
I have a request: can you make one video on voice recognition for android microphone? I can't seem to find any way of making it work. I'm still a noob at this. Thank you so much.
I would appreciate this as well !
Yes, that would be nice
did someone figure out a way to do it?
@@eliasmoll7604 responding to increase the chances of being noticed.
Haven't found a way till now. I gave up a long time ago though.
@@TheRuiPires till now?
Any idea why I can't turn keywordrecogniser into a green word (sorry for the non-technical terms)
Hi Dapper, thanks for this super helpful tutorial, however when I use this in a multiplayer game, it shows that there is already a keyword recognizer for xxx, do you know how can I fix this problem?
Can this recognize strings of speech like “I need backup” or something
Great tutorial. One question: how would you suggest to trigger another action (like playing an audiosource) instead of moving?
thats really easy bro , i can teach you if want, im just trying to make this work its seems my microphone is too bad that dont even activate the event of speech recognition :( , but once i archieve this i will create a super nice hologramic robot AI with 3d head gestures and audio play triggers :)
@@pablomonfortgames6723 Thanks, I'd appreciate that
Hi I in my script cant recognize "private KeywordRecognizer keywordRecognizer;" HELP!
Sweet... it works and serves well. However, how can I catch everything I said and not just the keyword?
I'm surprised you didn't need to import anything external and that it all just works.
How can I use this for a Android mobile app? I guess this example only works on Windows PC.
its not working for me on mac the code is exactly the same how would i get this to work?
I came across an error when the app is not in focus, the speech recognition does not work at all. I need speech recognition to run in the background for an app
Thx
Can you explain it with the android SDK plz
excellent video ^^ can you also explain implementation of voice recognition in google speech recognition api on Unity ?
Could you further explain what you mean by using "google" speech recognition in Unity?
FrostWeepGames has a Google Machine Learning Kit on the asset store. Not free but worth the money from the small bit I've messed with it. There's individual assets as well if you don't want the full kit.
You'll need to connect it with the cloud I'm pretty sure and make a Google developers account. There's a bit in the initial setup but it's relatively easy to make use of after.
Great tutorial as an offline solution Dapper. I'll have to see if there's a similar Android setup.
I've done the script but I'm getting this error: The type or namespace name 'Action' could not be found (are you missing a using directive or an assembly reference?)
Does anyone know how I can fix this?
Add using System;
did anyone figure out a way to use something similar in android builds? Thanks
Also I'm trying to add a 3rd to first person camera/movement change to my project, I can't really use CineMachine cuz I'm not 100% on how it works or if it is something that I should use but basically in the main camera script it has a float called distance(distance from the camera to the target/tracker) and I'm trying to create a script that will move the target/tracker to a specified vector3 so it'll appear more in front of the player rather than where the tracker was which was inside of the player. I'm having trouble though figuring out how to do this.. If distance is
i know this is a year old but just create an empty, put the cube and the camera in the empty and attach the script to the empty
This is amazing but I want same function for Android, can we do it on android also?
can we switch scene by voice command?
wait how do i enable it on a mac?
work it in any language
how do i recognize any word that has been said?
that capabilities section is not showing in my unity what can i do
I am getting a namespace error at
hello sir uwp hai nahi build setting main
Hi umm can there be voice Recognition for Mac cause I am a Mac user?
Is ther any event that happens if it fails to recognize the word?
how can i do the same thing with an android device???
Nice but wait for shaders)
in the editor it works fine for me. But in Standalone/Build the recognition doesnt seem to work:( Nothing happens... Any ideas?
Is there a way to make the enemy attack you when you make a sound? Which means you have to stay silent not to get caught by the enemy. I wonder if that type of voice recognition is possible. (Just like the game Escape The Ayuwoki)
just read how loudness your microphone
can you get it to recognize single phonemes? Like "a" or "g"?
yes
@@themeatynoob3886 how?
@@zu__880 just put the letter in as a single string
@@zu__880 such as "a"
This is not working on Mac please give solution
If Action is not found (cs0246) just put using System;
good , is that work for android?
@Dapper dino ..thanks for the great video !
can you please share linkfor apk or source code
its time to make a john constantine game. thank you
what about the android or IOS? how actually force work of them?
Great Work. Will this work for android?
yes but there are way more steps
Hello. I using mac, Unity 2018.3.9f1, I not found set microphone, I followed the tutorial and the result was an error:
Attempted to access a missing method. " keywordRecognizer = new KeywordRecognizer(actions.Keys.ToArray());". Please!
Windows only, as it uses cortana
@@essylo Thank u. How to use identified voice when build app Android or IOS from Unity in macOS
How do i implement it with.. Let's say rpg mechanics like spells?
Do you have any tip on how to speed it up for faster activation
maybe try on awake instead of start
@@overdose5805 it helps a little
@@overdose5805 that would make no difference
How about android & iOS?
error CS0246: The type or namespace name 'Action' could not be found (are you missing a using directive or an assembly reference?)
changed Action to System.Action and now everything works.
private Dictionary actions = new Dictionary();
@@justlaz1444 you are big man bro
is this working on android device?
hmm got this error:
UnityException: Speech recognition is not supported on this machine.
UnityEngine.Windows.Speech.KeywordRecognizer..ctor (System.String[] keywords, UnityEngine.Windows.Speech.ConfidenceLevel minimumConfidence) (at C:/buildslave/unity/build/Runtime/Export/Windows/Speech.cs:221)
UnityEngine.Windows.Speech.KeywordRecognizer..ctor (System.String[] keywords) (at C:/buildslave/unity/build/Runtime/Export/Windows/Speech.cs:201)
Test_Dictionary.Start () (at Assets/Test_Dictionary.cs:17)
win 7 problem? i tried lots of suggestions on the web
Yeah, this only works with Windows 10.
is there offline voice recognition?
it doesn't work for me without keywordRecognizer.Start(); in the Start function
so put it in there then.
I can yell for ever! I made a A B or C option but doesn't do anything... help?
Hello friend, I hope you're very well.
Excellent your video.
Is possible use ML-agents in this project?
If you answer is "yes", Could give me some resource, video... As help, PLEASE..
I need information for i begin
How get it in dutch
hi, thanks a lot for the video, when I run it, the unity just showed" The type or name "keywordRecognizer" could not be found" do you know any reasons about this problem?
your script probably has: private keywordRecognizer keywordRecognizer;
but should be: private KeywordRecognizer keywordRecognizer;
using
will this work for WebGL?