File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
samples/03.speech/i.initial-silence-timeout Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 71
71
) ;
72
72
const { token } = await res . json ( ) ;
73
73
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
-
79
74
// Create the ponyfill factory function, which can be called to create a concrete implementation of the ponyfill.
80
75
const webSpeechPonyfillFactory = await window . WebChat . createCognitiveServicesSpeechServicesPonyfillFactory ( {
81
- audioInputDeviceId : deviceId ,
82
-
83
76
// We are passing the Promise function to the "credentials" field.
84
77
// This function will be called every time the token is being used.
85
78
credentials : fetchSpeechServicesCredentials ,
You can’t perform that action at this time.
0 commit comments