google / google/oboe

Xiaomi Note 4 (mido): InputType.VoiceRecognition does not disable noise suppression

Open
#911 2 comments 0 reactions 0 assignees View on GitHub
bug input_preset P1 Xiaomi
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

Android version(s): 7.0
Android device(s): Xiaomi Note 4 (mido)
Oboe version: current master (f644b60)
App name used for testing: OboeTester

**Short description**
As per [Android CDD](https://source.android.com/compatibility/android-cdd#5_4_2_capture_for_voice_recognition), capturing audio using VoiceRecognition profile (for oboe it is InputType.VoiceRecognition) must disable noise reduction audio processing. However, on Xiaomi Note 4 the recorded sound is distorted which is apparently processed with noise reduction. We checked other devices such as Nokia 3.1 Plus, Nokia 5.1 Plus, Moto G3, and Moto G4 and found they adhere to Android CDD w.r.t this preset.

**Steps to reproduce**
1. Open OboeTester on Xiaomi Note 4 (device1)
1. Tap RECORD AND PLAY
1. InPreset to VoiceRec
1. On another device (device2): Open OboeTester. TEST OUTPUT. OPEN then START to play test tone.
1. On device1: Tap RECORD, after sometime STOP and PLAY

**Expected behavior**
No noise suppression. Playback should contain continuous test tone as played by device2.

**Actual behavior**
Noise suppressed output. As the result, the tone plays only for couple of seconds and becomes silent.

**Any additional context**
Similar scenario produces expected behavior on Nokia and Motorola devices mentioned in the description.

I understand this may not be a oboe bug but a device specific quirk. However, I think oboe is meant to tackle such device specific audio issues so that app developers can focus on their app functionality.

Xiaomi is the [largest smartphone seller](https://www.medianama.com/2018/01/223-xiaomi-beats-samsung/) in India. So it is critical for us that oboe pays close attention to Xiaomi devices.

Attached Xiaomi Note 4 recording with Input Type VoiceRecognition: https://clyp.it/xg3g5yrm

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.