Audio editing functionality
First of all thanks for the library! I'm looking for functionality to select a specific frame of the audio and be able to trim it or record over. Also, I'm interested in how to make visualization of recording. I know that native superpowered SDKs have such possibility. But what about this package?
This library provides basically hooks into the Native SDK, but nothing as complex as what you're suggesting. Here are the methods implemented in the Audio class for example:
static native void initializeAudio(int sampleRate, int bufferSize);
private native void loadFile(String filePath, long fileLength);
public native void play();
public native void pause();
public native void setPosition(double ms);
public native void setEcho(float mix);
public native void setPitchShift(int pitchShift);
private native boolean process(String filePath);
There's a native function called "positionMS" that will allow you to get the current position of the audio track. You could implement start and end markers with that in the audio clip and then play that percentage of the song as a loop essentially. Recording over it would just basically be calling the audio clip at the same time the audio starts playing and syncing the two. I'm not well versed in the recording domain of SP so perhaps another person can chime in to help you with that.
@alisherakb Thanks for your issue!
feature that your mentioned are not support yet I'm sorry for I'm a bit busy so I have difficulty updating the feature for a while. we always welcome any pull request!
Hi I'm looking for something like to edit the audio of react native, I need to filter some frequencies... Do you know any library to do it? @alisherakb
It really depends on what type of "filter" you're trying to create. "Filter some frequencies" sounds a lot like an EQ to me which Superpowered already has implemented in their SDK. If you're looking for a "filter" as in a high-pass/low-pass/band-pass you're going to want to check out this a little more in-depth. Now if you're looking for a really specific filter, you might have to create it yourself. For example, if you want everything at 30Hz to be cut out, you'll have to do that in the frequency domain for that type of precision. For that, check out Superpowered's implementation here.
The SDK has these features included, but you're going to have to implement them on the React side of things for them to work. @x86kernel has done a phenomenal job setting up the framework for easy additions from the SuperpoweredSDK to React, but not everything is implemented. You'll have to do that yourself for the features you're requesting.