Enhance the audio quality while sharing only the sound (or with the video)
See original GitHub issueWhat are you trying to do?
I’m trying to have the best possible audio quality, if the presentator wants to share his audio output stream. For example: sharing a music during the meeting.
How can the documentation be improved to help your use case?
Is there another part than setContentAudioProfile(AudioProfile.fullbandMusicMono()
and mixIntoAudioInput(stream)
?
Theses parts do not have much information.
What documentation have you looked at so far?
I tried to mix the audio stream from getDisplayMedia
, and mix it with the audio input: mixIntoAudioInput(stream)
-> nothing happened, perhaps I’ve done something wrong
I tried to directly put the stream from getDisplayMedia
into chooseAudioInputDevice(stream)
-> it worked, but the quality is very poor (voice from microphone ok, but the music is not)
I configured setContentAudioProfile(AudioProfile.fullbandMusicMono())
, but still very poor.
Is there a better way to do that ? To share a music (from a tab/window or output) with the clearest and best possible audio quality?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@LouisMx Currently the best audio quality configuration is
audio: { autoGainControl: false, channelCount: 1, echoCancellation: false, googAutoGainControl: false, latency: 0, noiseSuppression: false, sampleRate: 48000, sampleSize: 16, volume: 1.0 }
This will give you a 64 kbps 48 kHz sampled Opus audio stream.When you share content in a meeting, the content share attendee has its own audio and video streams. It should be sufficient to set the content audio profile without trying to mix input. You must set the audio profile prior to starting to share content.
You can try specifying higher bitrates and see if that helps:
but I suspect you’re getting lower quality audio from the capture stream itself. Try capturing the display with different audio constraints, such as these (untested, so please try various options):