-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blind checkin to hopefully resolve Java issues.
- Loading branch information
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
bindings/java/src/main/java/io/github/ggerganov/whispercpp/params/WhisperAheads.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.github.ggerganov.whispercpp.params; | ||
|
||
import com.sun.jna.*; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class WhisperAheads extends Structure { | ||
public long n_heads; | ||
public Pointer heads; | ||
|
||
@Override | ||
protected List<String> getFieldOrder() { | ||
return Collections.singletonList("n_heads", "heads"); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...java/src/main/java/io/github/ggerganov/whispercpp/params/WhisperAlignmentHeadsPreset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.github.ggerganov.whispercpp.params; | ||
|
||
public enum WhisperAlignmentHeadsPreset { | ||
WHISPER_AHEADS_NONE, | ||
WHISPER_AHEADS_N_TOP_MOST, // All heads from the N-top-most text-layers | ||
WHISPER_AHEADS_CUSTOM, | ||
WHISPER_AHEADS_TINY_EN, | ||
WHISPER_AHEADS_TINY, | ||
WHISPER_AHEADS_BASE_EN, | ||
WHISPER_AHEADS_BASE, | ||
WHISPER_AHEADS_SMALL_EN, | ||
WHISPER_AHEADS_SMALL, | ||
WHISPER_AHEADS_MEDIUM_EN, | ||
WHISPER_AHEADS_MEDIUM, | ||
WHISPER_AHEADS_LARGE_V1, | ||
WHISPER_AHEADS_LARGE_V2, | ||
WHISPER_AHEADS_LARGE_V3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters