AndroidAudioRecorder
AndroidAudioRecorder copied to clipboard
Solve!!!only Recorder,but no play
- 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)); }
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.
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 after updating with your code, I'm still having issue at Util.java. I will attach a screenshot.
** Please mention me on your reply so I can receive mail. Thank you