Recording Players voice in Unity using VR buttons.
I am fairly new to unity and even newer to C#. I am making a game that requires the game objects in my scene to act as recordable objects that record when you grab them and playback when released. I have worked with many different codes, however, none of them seem to work. I have attached the code I am using below as well as the error I am getting with it. I have an audio listener in my camera and assigned an audio emitter to the object as well as the script. I also have the latest versions of ML agents installed. However, I keep getting the error "The type or namespace MLInput could not be found". If I am able to get this to work, I am still not completely text sure I am setting up the recording script right to record when the grab button is pressed.
Your answer
![](https://koobas.hobune.stream/wayback/20220613054128im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to include speed trigger creation option in this script. 0 Answers
Audio on keydown Won't stop 1 Answer
VR SSO Login using OIDC Codeflow 1 Answer