OfflineRecognizerResult.java
1004 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2024 Xiaomi Corporation
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;
}
}