-
Notifications
You must be signed in to change notification settings - Fork 53
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
Open
PratimMallick
wants to merge
22
commits into
develop
Choose a base branch
from
hifi_audio
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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