Ability to turn on VoiceFocus by default
See original GitHub issueWhat 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:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
@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!