GiviMAD / whisper-jni

A JNI wrapper for using whisper.cpp, allows to transcribe speech to text in Java.
Apache License 2.0
81 stars 12 forks source link

Java 8 patch #7

Closed eix128 closed 9 months ago

eix128 commented 12 months ago

I have added patch for java 8 compability

diff --git a/pom.xml b/pom.xml index 89a061d..55fc7f1 100644 --- a/pom.xml +++ b/pom.xml @@ -33,8 +33,8 @@

HEAD
 </scm>
 <properties>

+import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; +import java.nio.ShortBuffer; import java.nio.file.Path; +import java.nio.file.Paths;

import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertNotNull; @@ -17,14 +20,14 @@ import static org.junit.Assert.assertThrows; import static org.junit.Assert.assertTrue;

public class WhisperJNITest {

litongjava commented 9 months ago

have you push java 8 patch to maven

GiviMAD commented 9 months ago

No, but if you want to do so you can open a PR agains the java8 branch.