Microphone
Record the player's default Windows microphone as PCM WAVE data.
The ue.microphone namespace records voice input for persistent Lua sessions. Capture runs outside the Unreal game thread; completion callbacks return to the game thread, where it is safe to call reflected Blueprint functions.
Only one Lua microphone capture can be active in the game process at a time.
Typical flow
- Call
microphone.startwhen push-to-talk begins. - Call
microphone.stopwhen push-to-talk ends. - Upload
result.wavwithhttp.requestusing a multipart file part. - Pass the transcription text to a Blueprint function or UI.
Functions
| Function | Description |
|---|---|
microphone.start | Start recording from the default input device. |
microphone.stop | Finish recording and receive WAV bytes. |
microphone.cancel | Stop and discard a capture. |
Note: Windows microphone privacy settings still apply. If capture cannot open the device, the stop callback reports the device error.