You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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));
}
The text was updated successfully, but these errors were encountered: