This issue is currently blocked by microsoft/cognitive-services-speech-sdk-js#96.
Feature Request
Some browsers may not select the correct audio input source for speech recognition. For Cognitive Services, it support alternative audio input source by specifying the device ID (navigator.mediaDevices.enumerateDevices).
Implementation details
- Passing custom
audioConfig is already supported in the Cognitive Services adapter
- Building the Web Speech ponyfill factory with specific device
- Build a sample to show capability to select different
audioConfig on-the-fly
[Enhancement]
Feature Request
Some browsers may not select the correct audio input source for speech recognition. For Cognitive Services, it support alternative audio input source by specifying the device ID (
navigator.mediaDevices.enumerateDevices).Implementation details
audioConfigis already supported in the Cognitive Services adapteraudioConfigobject. And it will hitSpeechServices.js:17, then hitcreateSpeechRecognitionPonyfill:92audioConfigobjectaudioConfigon-the-flyAudioConfig.fromMicrophoneInput(deviceId)to create theAudioConfigobject with a specific device, https://github.com/microsoft/cognitive-services-speech-sdk-js/blob/master/src/sdk/Audio/AudioConfig.ts#L38[Enhancement]