This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OfflineRecognizerResult.java

46 lines
1004 B
Java
Raw Normal View History

// Copyright 2024 Xiaomi Corporation
2024-04-28 22:26:04 +08:00
package com.k2fsa.sherpa.onnx;
public class OfflineRecognizerResult {
private final String text;
private final String[] tokens;
private final float[] timestamps;
private final String lang;
private final String emotion;
private final String event;
public OfflineRecognizerResult(String text, String[] tokens, float[] timestamps, String lang, String emotion, String event) {
this.text = text;
this.tokens = tokens;
this.timestamps = timestamps;
this.lang = lang;
this.emotion = emotion;
this.event = event;
}
public String getText() {
return text;
}
public String[] getTokens() {
return tokens;
}
public float[] getTimestamps() {
return timestamps;
}
public String getLang() {
return lang;
}
public String getEmotion() {
return emotion;
}
public String getEvent() {
return event;
}
}