Add Mi 9T Pro voice note sample rate special handling.

Fixes #14452
Resolves #14523
This commit is contained in:
Rémi Chauchadis
2026-01-11 16:00:40 +01:00
committed by Greyson Parrelli
parent 155b59d71f
commit 63a676b0ef

View File

@@ -74,9 +74,15 @@ public class MediaRecorderWrapper implements Recorder {
}
private static int getSampleRate() {
if ("Xiaomi".equals(Build.MANUFACTURER) && ("Mi 9T".equals(Build.MODEL) || "Mi 9T Pro".equals(Build.MODEL))) {
if ("Xiaomi".equals(Build.MANUFACTURER)) {
// Recordings sound robotic with the standard sample rate.
return 44000;
switch(Build.MODEL) {
case "Mi 9T":
return 44000;
case "Mi 9T Pro":
return 32000;
default:
}
}
return SAMPLE_RATE;
}