All Downloads are FREE. Search and download functionalities are using the official Maven repository.

angry1980.audio.fingerprint.ChromaprintProcessCreator Maven / Gradle / Ivy

There is a newer version: 0.0.10
Show newest version
package angry1980.audio.fingerprint;

import angry1980.audio.model.FingerprintType;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class ChromaprintProcessCreator implements ProcessCalculator.ProcessCreator{

    @Override
    public ProcessBuilder create(File file) {
        List params = new ArrayList<>();
        params.add("fpcalc");
        params.add(file.getAbsolutePath());
        params.add("-length");
        params.add("1024");
        return new ProcessBuilder().command(params).directory(new File("C:\\utils\\chromaprint"));
    }

    @Override
    public FingerprintType getType() {
        return FingerprintType.CHROMAPRINT;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy