dotnet / dotnet/dotnet-api-docs

System.InvalidOperationException thrown

Open
#1,086 0 comments 0 reactions 0 assignees View on GitHub
area-System.Speech dotnet-api/prod Pri2
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

When there is no input audio device for speech, method throws System.InvalidOperationException (which is not documented here).

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 6bc46128-5499-46c0-76bf-6a6aa9d8e0ab
* Version Independent ID: e655861f-3c40-cf98-0b9d-351b2fbdeada
* Content: [SpeechRecognitionEngine.SetInputToDefaultAudioDevice Method (System.Speech.Recognition)](https://docs.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine.setinputtodefaultaudiodevice?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(System.Speech.Recognition.SpeechRecognitionEngine.SetInputToDefaultAudioDevice);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.6.1);k(DevLang-csharp)%26rd%3Dtrue%26f%3D255%26MSPPError%3D-2147217396&view=netframework-4.7.2)
* Content Source: [xml/System.Speech.Recognition/SpeechRecognitionEngine.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Speech.Recognition/SpeechRecognitionEngine.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.