-
Notifications
You must be signed in to change notification settings - Fork 56
Added support for High fidelity (hi-fi) audio capture #1564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…n be either VOICE_COMMUNICATION or MEDIA
…and usage_voice_communication
…one when adding stereo capture to recording feature
… any remote track has come in. Updated to webrtc which has the fix for this.
…nto hifi_audio # Conflicts: # stream-video-android-core/api/stream-video-android-core.api # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/MediaManager.kt # stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
SDK Size Comparison 📏
|
… come under breaking change Make eglbase optional param while creating StreamPeerConnectionFctory so that it doesnt come under breaking change
…lBase instead of a direct parameter. So that unit test can initiaze StreamPeerConnectionFactory without invoking EglBase.create() in the constructor
…hone.audioBitrateProfile
…the call settings before setting the profile in the call 2. Lobby does not show the hifi toggle button if it is not enables in the call settings
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Show resolved
Hide resolved
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Outdated
Show resolved
Hide resolved
...c/main/kotlin/io/getstream/video/android/core/call/connection/StreamPeerConnectionFactory.kt
Outdated
Show resolved
Hide resolved
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/Call.kt
Show resolved
Hide resolved
rahul-lohra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check my comments
|
rahul-lohra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm


Goal
This PR adds support for HiFi (high-fidelity) audio in the Stream Video Android SDK, enabling users to choose a certain type of audio profile before joining the call.
This enhancement allows applications to provide better audio quality for music streaming, podcast calls, or any scenario requiring higher audio fidelity
Implementation
Audio Bitrate Profile Support (
MediaManager.kt):audioBitrateProfileStateFlow inMicrophoneManagerto track current audio profilesetAudioBitrateProfile()method that validates:MUSIC_HIGH_QUALITYAudioBitrateProfileenum support withVOICE_STANDARD_UNSPECIFIEDandMUSIC_HIGH_QUALITYoptionsPeer Connection Factory Refactoring (
StreamPeerConnectionFactory.kt):audioBitrateProfileProviderfunction, which enables it to turn off hardware AEC, NSCall State Management (
Call.kt):ensureFactoryMatchesAudioProfile()to validate factory matches current profilerecreateFactoryAndAudioTracks()to rebuild factory and tracks. This is needed if app has to provide a toggle in Lobby screen, where intial factory is already created with the default audioProfileUI Components (
ToggleHifiAudioAction.kt):CallActionsystem viaToggleHifiAudioactionDemo App Integration:
CallLobbyScreenandCallScreen🎨 UI Changes
Testing