File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/com/darkprograms/speech/recognizer Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 6
6
/**
7
7
* Class that holds the response and confidence of a Google recognizer request
8
8
*
9
- * @author Luke Kuza, Duncan Jauncey
9
+ * @author Luke Kuza, Duncan Jauncey, Aaron Gokaslan
10
10
*/
11
11
public class GoogleResponse {
12
12
@@ -70,10 +70,20 @@ protected void setConfidence(String confidence) {
70
70
71
71
/**
72
72
* Get other possible responses for this request.
73
- * @return
73
+ * @return other possible responses
74
74
*/
75
75
public List <String > getOtherPossibleResponses () {
76
76
return otherPossibleResponses ;
77
77
}
78
+
79
+ /**
80
+ * Gets all returned responses for this request
81
+ * @return All returned responses
82
+ */
83
+ public List <String > getAllPossibleResponses () {
84
+ List <String > tmp = otherPossibleResponses ;
85
+ tmp .add (0 ,response );
86
+ return tmp ;
87
+ }
78
88
79
89
}
You can’t perform that action at this time.
0 commit comments