AbreezaSaleem / react-voice-recorder-player

Voice Recorder Component for React
MIT License
32 stars 7 forks source link

getAudioData method or any other way to access the recorded audio data directly? #13

Open helldiving opened 5 months ago

helldiving commented 5 months ago

"VoiceRecorder component from the react-voice-recorder-player library is not exposing a getAudioData method or any other way to access the recorded audio data directly. Since we're unable to retrieve the recorded audio data from the VoiceRecorder component, and the handleAudioRecordingComplete callback is not being invoked correctly, it seems that the issue might be related to a limitation or a bug in the react-voice-recorder-player library."

Attempting to use this library to be able to record audio snippets from phone and post to the feed of a practice social media app but^

AbreezaSaleem commented 5 months ago

@helldiving can you tell me more about the handleAudioRecordingComplete not being invoked correctly? What issue are you facing?

ghost commented 5 months ago

There is no handleAudioRecordingComplete as far as I can see there is handleRecordingEnd.

AbreezaSaleem commented 2 months ago

@bootrino @helldiving It will be helpful if you could explain the issue you're facing a bit more.

The library exposes the onRecordingEnd function that fires when the recording ends. Can't you use that to retrieve the recorded audio data? It returns you the file as Blob.