GithubHelp home page GithubHelp logo

hieuxit / react-native-audiokit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thehanimo/react-native-audiokit

0.0 0.0 0.0 2.54 MB

Exposes AudioKit for iOS to React Native

License: MIT License

Java 85.59% JavaScript 0.21% Swift 11.33% Objective-C 1.41% Ruby 1.47%

react-native-audiokit's Introduction

react-native-audiokit

PRs Welcome star this repo NPM Version iOS Only

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 [email protected]

Nodestory uses this module!

Platforms Supported

  • 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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.