Settings → Privacy & security → Microphone → make sure "Microphone access" is ON and "Let apps access your microphone" is ON
Settings → Time & Language → Speech → toggle "Online speech recognition" ON
Click the taskbar search box, you should see a mic icon — tap it, or press Win + H to trigger voice typing anywhere