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

Solve!!!only Recorder,but no play #49

Open
lhl-012 opened this issue Feb 28, 2018 · 3 comments
Open

Solve!!!only Recorder,but no play #49

lhl-012 opened this issue Feb 28, 2018 · 3 comments

Comments

@lhl-012
Copy link

lhl-012 commented Feb 28, 2018

  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));
    }
@sandy415
Copy link

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.

@lhl-012
Copy link
Author

lhl-012 commented Apr 23, 2018 via email

@kotlinnewbie
Copy link

@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

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

3 participants