prscX / react-native-voice-recorder

React Native: Native Audio Recorder View
Apache License 2.0
93 stars 14 forks source link

crashes to recording #1

Open bawhari opened 5 years ago

bawhari commented 5 years ago

The project builds well, but when it crashes to recording...why?

1

HananeAlSamrout commented 5 years ago

same here!

HananeAlSamrout commented 5 years ago

the reason was NSMicrophoneUsageDescription missing in info.plist

punyaslokdutta commented 5 years ago

could you save the recording to local storage @HananeAlSamrout using this library ?

fabianunger commented 5 years ago

@pdSatyam You could simply copy the file with react-native-fs to another place. Like so: RNFS.copyFile(path, newPath)

rahulmishra1991 commented 4 years ago

For the some devices app is crashing

Balthazar33 commented 3 years ago

Adding

 ext {
        ...
        androidXAnnotation = "1.1.0"
        androidXBrowser = "1.0.0"
        ...
    }

to buildscript { } block in android/build.gradle worked for me.

Sdk version : 29 RN version: 0.63.4

Balthazar33 commented 3 years ago

Does anyone know how to playback the recorded audio in android?

I call

RNVoiceRecorder.Record({
                                onDone: (path) => {
                                    console.log(path);
                                    setAudioPath(path)
                                },
                                onCancel: () => {
                                    console.log("cancelled");
                                },

                            }); 

which launches the recorder and starts recording. When I click pause, and then click on play, nothing happens. The play button seems to work in emulator, though.