react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

How can we record and save file as .wav ?

Open krixs3112 opened this issue 1 year ago • 6 comments

I'm reaching out to request a new feature for the project. We are currently working on a use case where we need to record audio and save the file in the .wav format.(Android)

Add a new option or method to the recording functionality that allows users to specify the desired output format, including .wav. Ensure that the recorded audio is saved in the specified format, maintaining the quality and characteristics of the original recording.

krixs3112 avatar Feb 25 '24 18:02 krixs3112

same requirement for me tooo any patch or workaround highly appriciated

sravanvudem avatar Mar 26 '24 10:03 sravanvudem

find it in another issue, maybe it can help:

const PATH = Platform.select({ ios: 'audio.VAW', android: ${cacheDir}/audio.VAW, });

audioRecorderPlayer.startRecorder(PATH);

find out that it cause problems on ios

NazarenkoAnna2021 avatar Mar 31 '24 17:03 NazarenkoAnna2021

I found on Android I can save the file with a .wav extension by including it in the path that is passed to startRecorder, but the file is not actually saved in WAVE format. Is saving in WAVE format possible on Android yet?

davidburson avatar May 12 '24 02:05 davidburson

Hi @davidburson did you get any update or workaround for this?

4765-dipankargiri avatar Aug 20 '24 11:08 4765-dipankargiri

@dipankar4765 no, for wav on Android I'm using react-native-audio-record. It's archived, but it is still working for this case for me.

davidburson avatar Aug 20 '24 15:08 davidburson