AndroidAudioRecorder icon indicating copy to clipboard operation
AndroidAudioRecorder copied to clipboard

Solve!!!only Recorder,but no play

Open lhl-012 opened this issue 7 years ago • 3 comments

  1. update om-recorder,implementation 'com.kailashdabhi:om-recorder:1.1.5'; 2.change Util.java:about line24 public static PullableSource getMic(AudioSource source, AudioChannel channel, AudioSampleRate sampleRate) { // return new omrecorder.AudioSource.Smart( // source.getSource(), // AudioFormat.ENCODING_PCM_16BIT, // channel.getChannel(), // sampleRate.getSampleRate()); return new PullableSource.Default( new AudioRecordConfig.Default( source.getSource(), AudioFormat.ENCODING_PCM_16BIT, channel.getChannel(), sampleRate.getSampleRate()) ); } 3.change AudioRecorderActivity.java:about line 280 if(recorder == null) { timerView.setText("00:00:00"); recorder = OmRecorder.wav(new PullTransport.Default(Util.getMic(source, channel, sampleRate), AudioRecorderActivity.this),new File(filePath)); }

lhl-012 avatar Feb 28 '18 02:02 lhl-012

Did you able to solve this issue for Oreo? This library works fine below Oreo version for playing the recorded audio. But it is causing IOException for Android version 8.0.

sandy415 avatar Apr 10 '18 14:04 sandy415

it is third libs erre,i update it by self,down and change code

在 2018-04-10 22:15:01,sandy4693 [email protected] 写道:

Did you able to solve this issue for Oreo? This library works fine below Oreo version for playing the recorded audio. But it is causing IOException for Android version 8.0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lhl-012 avatar Apr 23 '18 10:04 lhl-012

@lhl-012 after updating with your code, I'm still having issue at Util.java. I will attach a screenshot.

Capture

** Please mention me on your reply so I can receive mail. Thank you

kotlinnewbie avatar Aug 19 '19 02:08 kotlinnewbie