Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thehanimo/react-native-audiokit
Exposes AudioKit for iOS to React Native
https://github.com/thehanimo/react-native-audiokit
audio-trimmer audiokit ios react-native react-native-audio react-native-audiokit trimmer
Last synced: about 2 months ago
JSON representation
Exposes AudioKit for iOS to React Native
- Host: GitHub
- URL: https://github.com/thehanimo/react-native-audiokit
- Owner: thehanimo
- License: mit
- Created: 2020-04-03T10:53:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T08:32:11.000Z (almost 4 years ago)
- Last Synced: 2024-11-02T04:32:04.469Z (2 months ago)
- Topics: audio-trimmer, audiokit, ios, react-native, react-native-audio, react-native-audiokit, trimmer
- Language: Java
- Homepage:
- Size: 2.42 MB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-audiokit
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![star this repo](https://img.shields.io/github/stars/thehanimo/react-native-audiokit?style=flat-square)](https://github.com/thehanimo/react-native-audiokit)
[![NPM Version](https://img.shields.io/npm/v/@thehanimo/react-native-audiokit.svg?style=flat-square)](https://www.npmjs.com/package/@thehanimo/react-native-audiokit)
[![iOS Only](https://img.shields.io/badge/iOS%20Only--green?logo=apple&style=social)](https://www.npmjs.com/package/@thehanimo/react-native-audiokit)This package simply wraps up the [**AudioKit**](https://github.com/AudioKit/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!](http://audiokit.io/)
In case you need a new feature added to this project, raise an issue or reach out to us at [[email protected]](mailto:[email protected])
Nodestory uses this module!## Platforms Supported
- [x] iOS
- [ ] Android## Installation (React Native >= 0.60.0)
1. Install the package
`yarn add @thehanimo/react-native-audiokit`
or
`npm install @thehanimo/react-native-audiokit`2. Install pods
```
cd ios
pod install
cd ..
```## Installation (React Native <= 0.59.0)
1. Install the package
`yarn add @thehanimo/react-native-audiokit@1`
or
`npm install @thehanimo/react-native-audiokit@1`2. Link the package
`react-native link @thehanimo/react-native-audiokit`## Usage
```javascript
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.
```## License
MIT