This package simply wraps up the AudioKit iOS package. Made this as we couldn't find any proper react-native audio trimming or processing module. Right now, this package only supports trimming audio files. However with AudioKit, the possibilities are endless. Take a look here!
In case you need a new feature added to this project, raise an issue or reach out to us at thehanimo@gmail.com
Nodestory uses this module!
- iOS
- Android
-
Install the package
yarn add @thehanimo/react-native-audiokit
ornpm install @thehanimo/react-native-audiokit
-
Install pods
cd ios
pod install
cd ..
-
Install the package
yarn add @thehanimo/react-native-audiokit@1
ornpm install @thehanimo/react-native-audiokit@1
-
Link the package
react-native link @thehanimo/react-native-audiokit
import RNAudioKit from "@thehanimo/react-native-audiokit";
let newFileName = await RNAudioKit.trimAudio("filename.mp3", 0, 10); // 0 - start sec, 10 - end sec.
// NOTE: filename.mp3 must be located in the documents folder. Not temp.
// newFileName will give you only the name. Append it to the documents directory path.
MIT