https://github.com/Radweb/react-native-audio-transcoder
Transcode audio format in react-native. Supports mp3 🎉
https://github.com/Radweb/react-native-audio-transcoder
aac audio mp3 react-native transcode
Last synced: 8 months ago
JSON representation
Transcode audio format in react-native. Supports mp3 🎉
- Host: GitHub
- URL: https://github.com/Radweb/react-native-audio-transcoder
- Owner: Radweb
- License: apache-2.0
- Created: 2017-03-17T16:49:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T13:09:38.000Z (over 2 years ago)
- Last Synced: 2024-08-07T23:55:23.913Z (over 1 year ago)
- Topics: aac, audio, mp3, react-native, transcode
- Language: Java
- Size: 40 KB
- Stars: 19
- Watchers: 8
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup
- Install this repository via yarn
- Run `react-native link react-native-audio-transcoder`
## Android
No additional steps required
## iOS
- Add the `AVMediaFoundation` library to your root react native project
# Interface
```javascript
import { transcode } from 'react-native-audio-transcoder'
const myFilePath = getFilePath()
const myNewFile = myFilePath.replace('aac', 'mp3')
transcode(myFilePath, myNewFile)
.then(() => console.log('Party!'))
```