Skip to content

Audio editing functionality #1

Description

@alisherakb

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?

Activity

  1. mclemcrew commented on Jul 12, 2019

    @mclemcrew

    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.

  2. x86kernel commented on Jul 12, 2019

    @x86kernel
    Owner

    @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!

  3. eduardotamaki commented on Nov 1, 2019

    @eduardotamaki

    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

  4. mclemcrew commented on Nov 3, 2019

    @mclemcrew

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions