Hello,
Welcome to Microsoft Q&A!
Generally, Speech recognition needs to use the Microphone of the device. You have to set the Microphone device capability in the App package manifest. Please open the manifest file, go to Capabilities, enable the Microphone capability For more detail, see App capability declarations.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.