GithubHelp home page GithubHelp logo

startRecording about omrecorder HOT 19 CLOSED

nzala avatar nzala commented on July 2, 2024
startRecording

from omrecorder.

Comments (19)

kailash09dabhi avatar kailash09dabhi commented on July 2, 2024 1

I am glad you solved it you can explain more here how you solved to help other users.
If you want to release the audio source you can do by simply like this:

 pulltransport.audioSource().release();

from omrecorder.

nzala avatar nzala commented on July 2, 2024

http://stackoverflow.com/questions/34860767/android-audiorecord-failing-when-calling-the-startrecording-method

from omrecorder.

nzala avatar nzala commented on July 2, 2024

http://stackoverflow.com/questions/4342482/cannot-access-audiorecorder

from omrecorder.

nzala avatar nzala commented on July 2, 2024

E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord

from omrecorder.

kailash09dabhi avatar kailash09dabhi commented on July 2, 2024

pls show your wavsetupRecorder() method. It should be some illegal parameter not sure of though

from omrecorder.

nzala avatar nzala commented on July 2, 2024
private void wavsetupRecorder() {
        recorder = OmRecorder.wav(
                new PullTransport.Default(wavAudioSourcemic(), new PullTransport.OnAudioChunkPulledListener() {
                    @Override
                    public void onAudioChunkPulled(final AudioChunk audioChunk) {
                        progressbar.setProgress((int) (audioChunk.maxAmplitude()));
                    }
                }), wavfile());
    }

    private AudioSource wavAudioSourcemic() {
        smart = new AudioSource.Smart(MediaRecorder.AudioSource.MIC, AudioFormat.ENCODING_PCM_16BIT,
                AudioFormat.CHANNEL_IN_MONO, frequency);
        return smart;
    }

from omrecorder.

nzala avatar nzala commented on July 2, 2024

file is read-Owner, Group
write-Owner only
hw make
read and write-Owner, Group, Others

from omrecorder.

kailash09dabhi avatar kailash09dabhi commented on July 2, 2024

Are you sure you have write permission to record & access external storage in manifest?

from omrecorder.

nzala avatar nzala commented on July 2, 2024

yes

from omrecorder.

nzala avatar nzala commented on July 2, 2024

hw make
read and write-Owner, Group, Others

from omrecorder.

kailash09dabhi avatar kailash09dabhi commented on July 2, 2024

i am saying about permission in manifest.. android.permission.WRITE_EXTERNAl_STORAGE

from omrecorder.

nzala avatar nzala commented on July 2, 2024

yes i have
u need call recordInstance.release()? in https://github.com/kailash09dabhi/OmRecorder/blob/master/om-recorder/src/main/java/omrecorder/AbstractRecorder.java

from omrecorder.

nzala avatar nzala commented on July 2, 2024

hw make wav file
read and write-Owner, Group, Others

from omrecorder.

kailash09dabhi avatar kailash09dabhi commented on July 2, 2024

This issue only happens due to permission.. See you are also requesting on runtime as from android 6.0 onwards we need to request permission on runtime.

from omrecorder.

nzala avatar nzala commented on July 2, 2024

i slved i called recordInstance.release()
but hw make wav file
read and write-Owner, Group, Others
i have made all permission on runtime.

from omrecorder.

nzala avatar nzala commented on July 2, 2024

yes
pulltransport.audioSource().release();
but hw make wav file
read and write-Owner, Group, Others
i have made all permission on runtime.

from omrecorder.

nzala avatar nzala commented on July 2, 2024

jus add

if (recorder == null)
            return;
        if (recorder != null) {
            recorder.stopRecording();
            pulltransport.audioSource().release();
            recorder = null;
        }

from omrecorder.

nzala avatar nzala commented on July 2, 2024

make wav file
read and write-Owner, Group, Others
i have made all permission on runtime.

from omrecorder.

kenchoong avatar kenchoong commented on July 2, 2024

Hey @nzala , how you call pulltransport.audioSource().release(); in your project? cause I call event call for audioSource() to pullTransport.. can you give me some hint?

from omrecorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.