Thanks Basen 1 For You Reply. Actually We are playing through Phone. There is a speaker option is there. Whatever i speak through the speaker… It should recorded and play in unity.
The phone has a Speaker and a Microphone. You can only record audio with the microphone. So you will have to use what I linked above. You can have a button that will do Microphone.Start() and one that will finish with Microphone.End()
You can then replay the AudioClip immediately after stopping the recording.
Good Luck!
Thanks Basen 1 For you reply. I have little bit Confused… Its works fine and Good. Actually I have another Question. How can i validate the Sound. For eg 1 I have a Button “How are You”. If the user also said " How are you" then the sound must save. or else it should not save.
How can i Validate the Sound.
Is there any option available the sound can be converted into the text…?
Unity does not have a built in method of doing speech (audio) to text, which is probably how I’d approach validating someone said the words they are supposed to. There’s probably other ways of doing that validation, such as directly comparing wave forms, but this is getting into really advanced stuff that is also not built into Unity and outside of my skill set. I don’t see how you expect to do this without any kind of plugins.