beta4attack
beta4attack

Reputation: 53

Manipulating audio in React Native? (Specifically trimming)

Sorry to bother you, everyone. I'm currently developing an application in which I need to take an audio file and programmatically trim the audio file and save it, but I reached a dead-end when I couldn't find any modules online for audio manipulation. All online examples are for recording audio, but what I need is to access an audio file from storage and then trim it. Did anyone run through a similar experience and would be able to help me?

Thanks in advance!

Upvotes: 2

Views: 3358

Answers (2)

Hani
Hani

Reputation: 381

This module can help you trim audio files with react-native on iOS.

Upvotes: 1

SaumyadipDev
SaumyadipDev

Reputation: 275

Currently, there is no such package for react-native. But you can still use npm packages such as sox-audio or, audio-buffer-utils for audio manipulations.

Resources:

https://www.npmjs.com/package/audio-buffer-utils

https://www.npmjs.com/package/sox-audio

Upvotes: 2

Related Questions