AnsweredAssumed Answered

"android.media.audiofx" supported?

Question asked by torus1000 on Jun 1, 2015
Latest reply on Jun 2, 2015 by igorpadykov


Hi i.MX Experts,

 

It seems linuxBSP(gstreamer) supports audiofx.
Does i.MX6Sabre AndroidBSP also support audiofx such as AEC(AcousticEchoCanceler)?

 

P.S.

I tested startStreaming() in following URL but NULL returned when .create() called. Please see *3

 

Thanks.

 

 

----------

Note:

*1 RTP Streaming using gstreamer fails - gstrtpbin element missing
     https://community.freescale.com/message/400304

*2 http://developer.android.com/reference/android/media/audiofx/AcousticEchoCanceler.html

 

*3 http://stackoverflow.com/questions/24171184/android-acousticechocanceler-does-not-cancel-out-echo

 

package com.example.audiotest;
...
import android.media.MediaRecorder;
import android.media.audiofx.AcousticEchoCanceler;
...
public void startStreaming() {
  ...
  recorder = new AudioRecord(MediaRecorder.AudioSource.VOICE_RECOGNITION,sampleRate,channelConfig,audioFormat,minBufSize);
  AcousticEchoCanceler canceler =  AcousticEchoCanceler.create(recorder.getAudioSessionId());
  ...
}

Outcomes