Skip to content

Can we switch the microphone device without disconnecting and reconnecting? #390

@neskor-b

Description

@neskor-b

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions