Use libopus encoder for devices that don't have proper support for it in the OS #7010
Labels
A-Voice-Messages
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements
Your use case
What would you like to do?
Use libopusencoder for some devices with Android version >= 10.
Why would you like to do it?
Since Android 10, the OS provides an Opus encoder in the OS so instead of using
VoiceRecorderL
which wraps an embedded libopus library to encode voice messages we useMediaRecorder
with that codec. However, it seems like some Android ROMs or some vendors don't match this standard and some devices with Android OS >= 10 lack this encoder support.How would you like to achieve it?
We can try to check if the encoder is present in the OS and if it's not, use the 'fallback' encoder based on libopus.
Have you considered any alternatives?
Other alternatives would be:
Additional context
No response
Are you willing to provide a PR?
Yes
The text was updated successfully, but these errors were encountered: