You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note:** Device switching only works for voice conversations. You can enumerate available devices using the [MediaDevices.enumerateDevices()](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices) API.
176
177
@@ -398,20 +399,16 @@ Allows you to change the audio input device during an active voice conversation.
398
399
**Note:** In WebRTC mode the input format and sample rate are hardcoded to `pcm` and `48000` respectively. Changing those values when changing the input device is a no-op.
textOnly:false, // Ensure this is a voice conversation
407
404
});
408
405
409
406
// Change to a specific input device
410
-
await(conversation as VoiceConversation).changeInputDevice({
407
+
awaitconversation.changeInputDevice({
411
408
sampleRate:16000,
412
409
format:"pcm",
413
410
preferHeadphonesForIosDevices:true,
414
-
inputDeviceId:"your-device-id",// Optional: specific device ID
411
+
inputDeviceId:"your-device-id",
415
412
});
416
413
```
417
414
@@ -422,13 +419,11 @@ Allows you to change the audio output device during an active voice conversation
422
419
**Note:** In WebRTC mode the output format and sample rate are hardcoded to `pcm` and `48000` respectively. Changing those values when changing the output device is a no-op.
0 commit comments