question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to turn on VoiceFocus by default

See original GitHub issue

What are you trying to do?

I’m trying to enable Voice Focus on by default, as it appears to be the only way to prevent echo on some Android devices.

For example: I’m trying to start a meeting session with audio.

How can the documentation be improved to help your use case?

I’d like to see how one could enable VoiceFocus for all devices, upon joining the meeting and/or switching devices.

I am able to create a transformed device with VoiceFocus using VoiceFocusDeviceTransformer.create() and subsequently passing the device ID of the device I want to apply it to, but it does not seem to apply it when provided.

My approach so far:

const enableVoiceFocus = async (device?: string) => {
    const transformer = await VoiceFocusDeviceTransformer.create();
    const isVoiceFocusSupported = transformer.isSupported();
    logger.info("Voice Focus support for audio device", {
      isVoiceFocusSupported,
    });

    logger.info(`Device info while toggling audio device`, { device, isVoiceFocusSupported, selectedDevice: audioInputs.selectedDevice });
    if (isVoiceFocusSupported && device) {
      logger.info("Enabling voice focus for audio device.", { device });
      const transformedDevice = await voiceFocus.addVoiceFocus(audioInputs.selectedDevice);
      logger.debug("TransformedDevice", { transformedDevice });
      if (transformedDevice) {
          const response = await meetingManager.audioVideo?.chooseAudioInputDevice(transformedDevice);
          logger.info("Voice focus enabled for audio device.", { device, response });
      }
    }
  };

For example: Include a section on how to configure the meeting session.

What documentation have you looked at so far?

These docs, the the developer guide as well as the React SDK.

*For example: README.md, Amazon Chime SDK Developer Guide, etc.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kodai305commented, Aug 23, 2022

Am I correct in understanding that the only way to enable VoiceFocus by default is to use the JS SDK? Is manual switching the only way to do this in ReactComponent?

0reactions
nmonasteriocommented, Nov 9, 2021

@xuesichao That sounds like a plan. I’ll open up a feature request there.

And yes, a how-to on how to do from the JS SDK would suffice for the time being.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

AmazonVoice_Focus | amazon-chime-sdk-js
The Amazon Chime SDK will by default automatically choose the right complexity level at runtime based on device performance. Amazon Voice Focus is ......
Read more >
Using Amazon Voice Focus - Amazon Chime
Amazon Chime enables Amazon Voice Focus by default for the desktop and mobile clients. ... You can turn Amazon Voice Focus off at...
Read more >
Turn on or schedule a Focus on iPhone - Apple Support
Open Control Center, tap Focus, then tap the Focus you want to turn on (for example, Do Not Disturb). Note: If another Focus...
Read more >
SetFocus function in Power Apps - Microsoft Learn
You can only set the focus to controls on the same screen as the formula containing the SetFocus call. Attempting to set the...
Read more >
Your iPhone Has a Secret Setting That Makes Your Voice ...
Second, you can only turn on voice isolation mode while you're in the middle of a call. That's right, it's not something you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found