Slide 43
Slide 43 text
ブラウザの
マイクを利用
navigator.mediaDevices
.getUserMedia({
audio: {
autoGainControl: false,
channelCount: 1,
echoCancellation: true,
noiseSuppression: true,
},
})
.then((stream) => {
// use the stream
})
.catch((err) => {
// NotAllowedError or
// NotFoundError
});