Expose volume controls for sound player in React SDK
complete
Z
Zachary Greathouse
This is a feature request to add programmatic playback volume control to the @humeai/voice-react SDK. Currently, users can only mute or unmute the audio output. The proposal is to expose controls via the useVoice hook, specifically adding a volume state (ranging 0.0-1.0) and a setVolume(level) function. This enhancement would allow developers to synchronize the EVI volume with their application's own sound controls for a more integrated user experience.
N
Norm Katz
I did some research on this and found that using a browser on an iphone to play audio uses the iOS telephony channel which has restricted maximum volume, just like the phone app. When you play Youtube songs or videos using the iOS Youtube app, you can play it much louder because it's using the "media" channel. There's no way to tell the browser with javascript to use the media channel, according to what I read. You need to use a native iOS or React Native app to set the channel to media to get the louder volume. If you know something I don't, please share here.
Richard Marmorstein
marked this post as
complete