hyochan / react-native-audio-recorder-player

react-native native module for audio recorder and player.
MIT License
709 stars 212 forks source link

How can we record and save file as .wav ? #592

Open krixs3112 opened 7 months ago

krixs3112 commented 7 months ago

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.

sravanvudem commented 6 months ago

same requirement for me tooo any patch or workaround highly appriciated

NazarenkoAnna2021 commented 6 months ago

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

davidburson commented 4 months ago

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?

4765-dipankargiri commented 1 month ago

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

davidburson commented 1 month ago

@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.