I tried with this code and it gives error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))' . I don't know why this error
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.
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.
4 people are following this question.