Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raghugunda opened this issue Dec 9, 2020 · 0 comments
Open

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

raghugunda opened this issue Dec 9, 2020 · 0 comments

Comments

@raghugunda
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant