Jar was published as io.github.kasukusakura:silk-codec
public class A { public static void normal() throws Throwable { // System.load(); // load native if necessary var simpleRate = 44100; var pcm = "src.pcm"; try (var som = new BufferedOutputStream(new FileOutputStream( "out.silk" ))) { SilkCoder.encode( new BufferedInputStream(new FileInputStream(pcm)), som, simpleRate ); } } public static void any() throws Throwable { // System.load(); // load native if necessary var threadPool = Executors.newCachedThreadPool(); var stream = new AudioToSilkCoder(threadPool); try (var fso = new BufferedOutputStream(new FileOutputStream("out.silk"))) { stream.connect("ffmpeg", "src.mp3", fso); } System.out.println("DONE"); threadPool.shutdown(); } }-
This topic is deleted!
• DreamVoid