Skip to content

Audio record AUX-to-AUX is not working in Android #143

@raghugunda

Description

@raghugunda

I'm Developing new application which records audio from digital stethoscope to mobile app. there are 2 ways to connect stethoscope to mobile.

1.AUX to AUX
2.Aux to USB

mediaRecorder = new MediaRecorder();

    mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
    mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
    mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    mediaRecorder.setAudioEncodingBitRate(16*44100);
    mediaRecorder.setAudioSamplingRate(44100);

   

    mediaRecorder.setMaxDuration((int) TimeUnit.SECONDS.toMillis(30L));
    mediaRecorder.setOutputFile(AudioSavePathInDevice);
   
        mediaRecorder.prepare();
        mediaRecorder.start();```

But AUX to Aux not working in some device.AUX to USB recorded voice having poor quality.

Note : How to disable builtin mic when headphone is connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions