Context
We're integrating the @humeai/voice-react SDK and need to know if it's possible to switch microphone or speaker devices during an active session (after connect() has been called).
Current Implementation
We're using the SDK like this:
import { useVoice } from '@humeai/voice-react';
const client = useVoice();
// Initial connection
await client.connect({
hostname: '...',
auth: { type: 'accessToken', value: '...' },
configId: '...',
sessionSettings: { ... },
// devices can be passed here during initial connect
devices: {
microphoneDeviceId: 'default',
speakerDeviceId: 'default'
}
});
Question
After the connection is established and the session is active:
- Can we switch the microphone device without disconnecting and reconnecting?
- Can we switch the speaker device without disconnecting and reconnecting?