What happened?
Calling AudioConfig.fromMicrophoneInput(deviceId) always uses the browser level selected microphone instead of the given devideId agrument to the function. Even when a valid deviceId is provided, the SDK ignores it and records from the default input device.
How to reproduce: Try using a SpeechRecognizer, using any input deviceId, but the default.
const audioDeviceId = '' // use anything other than the the browser's selected device
const audioConfig = AudioConfig.fromMicrophoneInput(audioDeviceId)
const newRecognizer = new SpeechRecognizer(speechConfig, audioConfig)
Versions:
- MacOS: Tahoe 26.1 (25B78)
- Chrome: Version 142.0.7444.176 (Official Build) (arm64)
Version
1.36.0 (Latest)
What browser/platform are you seeing the problem on?
Chrome
Relevant log output