kevinresol / react-native-sound-recorder

Simplest Sound Recorder for React Native
MIT License
119 stars 36 forks source link

path #21

Closed ctrljs closed 5 years ago

ctrljs commented 5 years ago

Hi Kevin ,

How can i give my own path in the recording option, and can i get file size of the file being created ?

ctrljs commented 5 years ago

if (Platform.OS === 'android') { options['format'] = SoundRecorder.FORMAT_MPEG_4; options['encoder'] = SoundRecorder.ENCODER_AAC; }

also if use the above options , do i need to mention extension in the filename in the path supplied

kevinresol commented 5 years ago

i give my own path in the recording option

please read the readme

get file size of the file being created

you can use other libraries to query the file size

ctrljs commented 5 years ago

i give my own path in the recording option

please read the readme

get file size of the file being created

you can use other libraries to query the file size

Can you share me a snippet of own filepath usage for android,

My file is getting created properly using your SoundRecorder.PATH_CACHE path and i am able to play it too. But I not able to locate it on phone file manager to get the file size.

Also " console.log('stopped recording, audio file saved at: ' + result.path); "

I tried uploading to s3, passing the result.path , it say file doesnt exist at that location

ctrljs commented 5 years ago

done!!

omkar-asort commented 4 years ago

@ctrljs How did you solve this issue. Please help.

ghost commented 3 years ago

done!!

would be useful to provide the code used

kevinresol commented 3 years ago

I tried uploading to s3, passing the result.path , it say file doesnt exist at that location

Not a particular issue of this library, but whenever you use a path to locate a local file, you need to pay attention if the file:// prefix is required to be present or absent. This varies from library to library, please consult the respective documentation.