0001-added-speech-hypotheses-types-in-rst-proto-sandbox-h.patch
proto/sandbox/rst/hri/SpeechHypotheses.proto | ||
---|---|---|
1 |
package rst.hri; |
|
2 | ||
3 |
import "rst/hri/SpeechHypothesis.proto"; |
|
4 | ||
5 |
option java_outer_classname = "SpeechHypothesesType"; |
|
6 | ||
7 |
/** |
|
8 |
* A n-best list of speech recognition results. |
|
9 |
* |
|
10 |
* @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de> |
|
11 |
* @author Soeren Klett <sklett@techfak.uni-bielefeld.de> |
|
12 |
*/ |
|
13 |
message SpeechHypotheses { |
|
14 | ||
15 |
/** |
|
16 |
* The best speech recognition result. |
|
17 |
*/ |
|
18 |
required SpeechHypothesis best_result = 1; |
|
19 | ||
20 |
/** |
|
21 |
* The nbest list of speech recognition result. |
|
22 |
*/ |
|
23 |
repeated SpeechHypothesis nbest_list = 2; |
|
24 | ||
25 |
/** |
|
26 |
* Return true, if the result is final. |
|
27 |
*/ |
|
28 |
required bool final = 3; |
|
29 |
} |
proto/sandbox/rst/hri/SpeechHypothesis.proto | ||
---|---|---|
1 |
package rst.hri; |
|
2 | ||
3 |
import "rst/timing/Interval.proto"; |
|
4 | ||
5 |
option java_outer_classname = "SpeechHypothesisType"; |
|
6 | ||
7 |
/** |
|
8 |
* A hypothesis about a speech recognition result. |
|
9 |
* |
|
10 |
* @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de> |
|
11 |
* @author Soeren Klett <sklett@techfak.uni-bielefeld.de> |
|
12 |
*/ |
|
13 |
message SpeechHypothesis { |
|
14 | ||
15 | ||
16 |
/** |
|
17 |
* Speech recognition result for a single word. |
|
18 |
*/ |
|
19 |
message Word { |
|
20 | ||
21 |
/** |
|
22 |
* Speech recognition result for a single word. |
|
23 |
*/ |
|
24 |
required string word = 1; |
|
25 | ||
26 |
/** |
|
27 |
* Start and end time for this word. |
|
28 |
*/ |
|
29 |
optional timing.Interval timestamps = 2; |
|
30 | ||
31 |
} |
|
32 | ||
33 |
/** |
|
34 |
* List of word speech recognition results. |
|
35 |
*/ |
|
36 |
repeated Word words = 1; |
|
37 | ||
38 | ||
39 |
/** |
|
40 |
* Confidence for this speech hypothesis. |
|
41 |
*/ |
|
42 |
// @constraint(0 <= value <= 1) |
|
43 |
optional float confidence = 2; |
|
44 | ||
45 |
/** |
|
46 |
* Start and end time for this speech hypothesis. |
|
47 |
*/ |
|
48 |
optional timing.Interval timestamp = 3; |
|
49 | ||
50 |
/** |
|
51 |
* The grammar tree of this speech hypothesis. |
|
52 |
*/ |
|
53 |
optional string grammar_tree = 4; |
|
54 |
} |
|
0 |
- |