Speech Recognition using oculus quest 2, any idea how to do it in Unreal Engine?

You could take a look at the RuntimeSpeechRecognizer plugin, which is based on Whisper AI, namely whisper.cpp. It’s cross-platform and works offline.