mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 01:49:22 +08:00
java example for whole wav file & compatible with V5 model
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package org.example;
|
||||
|
||||
|
||||
public class SileroSpeechSegment {
|
||||
private Integer startOffset;
|
||||
private Integer endOffset;
|
||||
private Float startSecond;
|
||||
private Float endSecond;
|
||||
|
||||
public SileroSpeechSegment() {
|
||||
}
|
||||
|
||||
public SileroSpeechSegment(Integer startOffset, Integer endOffset, Float startSecond, Float endSecond) {
|
||||
this.startOffset = startOffset;
|
||||
this.endOffset = endOffset;
|
||||
this.startSecond = startSecond;
|
||||
this.endSecond = endSecond;
|
||||
}
|
||||
|
||||
public Integer getStartOffset() {
|
||||
return startOffset;
|
||||
}
|
||||
|
||||
public Integer getEndOffset() {
|
||||
return endOffset;
|
||||
}
|
||||
|
||||
public Float getStartSecond() {
|
||||
return startSecond;
|
||||
}
|
||||
|
||||
public Float getEndSecond() {
|
||||
return endSecond;
|
||||
}
|
||||
|
||||
public void setStartOffset(Integer startOffset) {
|
||||
this.startOffset = startOffset;
|
||||
}
|
||||
|
||||
public void setEndOffset(Integer endOffset) {
|
||||
this.endOffset = endOffset;
|
||||
}
|
||||
|
||||
public void setStartSecond(Float startSecond) {
|
||||
this.startSecond = startSecond;
|
||||
}
|
||||
|
||||
public void setEndSecond(Float endSecond) {
|
||||
this.endSecond = endSecond;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user