kcochibili / SoxLibInAndroid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SoxLibInAndroid

I edited some sox source file,such as sox.c sox.h formats.c and CMakeLists.txt. you can Use Library like command.

Graddle Installation

  1. Download the soxcommandlibrary-release.aar file onto your computer
  2. Then in your app module build.gradle file, add the path to the downloaded file like the example below
dependencies {
  implementation files('/Users/Bob/path/to/file/soxcommandlibrary-release.aar')
}
  1. Sync the project

Example usage:

    import com.vtech.audio.helper.SoxCommandLib;

    // Simple combiner
    // sox file[0] file[1] ... file[n] <outFile>

    String soxCommand = "sox -m in1.mp3 in2.mp3 in3.mp3 out.mp3"
    int exitVal = SoxCommandLib.executeCommand(soxCommand);
 
    if(exitVal == 0){
      Log.v("SOX", "Sox finished successfully");
    }else{
      Log.v("SOX", "Sox failed");
    }
 

About


Languages

Language:C 85.6%Language:Roff 7.7%Language:Shell 2.5%Language:Java 1.1%Language:M4 1.0%Language:CMake 0.9%Language:Makefile 0.6%Language:Perl 0.4%Language:Gnuplot 0.1%Language:Batchfile 0.1%