Skip to content

Commit cf2b542

Browse files
compulimOEvgeny
andauthored
Remove deviceId (#5403)
Co-authored-by: Eugene <EOlonov@gmail.com>
1 parent ad222dd commit cf2b542

File tree

1 file changed

+0
-7
lines changed
  • samples/03.speech/i.initial-silence-timeout

1 file changed

+0
-7
lines changed

samples/03.speech/i.initial-silence-timeout/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,8 @@
7171
);
7272
const { token } = await res.json();
7373

74-
// Select the audio input device which has the keyword "Audio" in it.
75-
const { deviceId } = (await window.navigator.mediaDevices.enumerateDevices()).find(
76-
({ label }) => ~label.indexOf('Audio')
77-
);
78-
7974
// Create the ponyfill factory function, which can be called to create a concrete implementation of the ponyfill.
8075
const webSpeechPonyfillFactory = await window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({
81-
audioInputDeviceId: deviceId,
82-
8376
// We are passing the Promise function to the "credentials" field.
8477
// This function will be called every time the token is being used.
8578
credentials: fetchSpeechServicesCredentials,

0 commit comments

Comments
 (0)