jsierles / react-native-audio

Audio recorder library for React Native
MIT License
1.16k stars 539 forks source link

How to delete a file and set up quality and format? #62

Closed stoneWeb closed 8 years ago

stoneWeb commented 8 years ago

How to delete a file and set up quality and format?

alfonsodev commented 8 years ago

For file deletion check the module react-native-fs
For quality and format you have the function AudioRecorder.prepareRecordingAtPath That accept the following arguments: path string sampleRate float default 44100.0 channels number, default 2 quality, string, possible values "Low", "Medium", "High" encoding, string, possible values "lpcm", "ima4","aac","MAC3","MAC6","ulaw" "alaw", ".mp1", ".mp2", ".mp3", "alac"

stoneWeb commented 8 years ago

I see, I saw Audio.ios.js file. Thanks