You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/model/SpeakerLabelsResult.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public Long getSpeaker() {
66
66
/**
67
67
* Gets the confidence.
68
68
*
69
-
* A score that indicates the service's confidence in its identification of the speaker in the range of 0 to 1.
69
+
* A score that indicates the service's confidence in its identification of the speaker in the range of 0.0 to 1.0.
Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/model/SpeechRecognitionAlternative.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ public class SpeechRecognitionAlternative extends GenericModel {
24
24
25
25
privateStringtranscript;
26
26
privateDoubleconfidence;
27
-
privateList<SpeechTimestamp> timestamps;
27
+
privateList<String> timestamps;
28
28
@SerializedName("word_confidence")
29
-
privateList<SpeechWordConfidence> wordConfidence;
29
+
privateList<String> wordConfidence;
30
30
31
31
/**
32
32
* Gets the transcript.
@@ -42,7 +42,7 @@ public String getTranscript() {
42
42
/**
43
43
* Gets the confidence.
44
44
*
45
-
* A score that indicates the service's confidence in the transcript in the range of 0 to 1. Returned only for the
45
+
* A score that indicates the service's confidence in the transcript in the range of 0.0 to 1.0. Returned only for the
46
46
* best alternative and only with results marked as final.
47
47
*
48
48
* @return the confidence
@@ -55,25 +55,25 @@ public Double getConfidence() {
55
55
* Gets the timestamps.
56
56
*
57
57
* Time alignments for each word from the transcript as a list of lists. Each inner list consists of three elements:
58
-
* the word followed by its start and end time in seconds. Example: `[["hello",0.0,1.2],["world",1.2,2.5]]`. Returned
59
-
* only for the best alternative.
58
+
* the word followed by its start and end time in seconds, for example: `[["hello",0.0,1.2],["world",1.2,2.5]]`.
59
+
* Returned only for the best alternative.
60
60
*
61
61
* @return the timestamps
62
62
*/
63
-
publicList<SpeechTimestamp> getTimestamps() {
63
+
publicList<String> getTimestamps() {
64
64
returntimestamps;
65
65
}
66
66
67
67
/**
68
68
* Gets the wordConfidence.
69
69
*
70
70
* A confidence score for each word of the transcript as a list of lists. Each inner list consists of two elements:
71
-
* the word and its confidence score in the range of 0 to 1. Example: `[["hello",0.95],["world",0.866]]`. Returned
72
-
* only for the best alternative and only with results marked as final.
71
+
* the word and its confidence score in the range of 0.0 to 1.0, for example: `[["hello",0.95],["world",0.866]]`.
72
+
* Returned only for the best alternative and only with results marked as final.
Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/model/WordAlternativeResult.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public class WordAlternativeResult extends GenericModel {
25
25
/**
26
26
* Gets the confidence.
27
27
*
28
-
* A confidence score for the word alternative hypothesis in the range of 0 to 1.
28
+
* A confidence score for the word alternative hypothesis in the range of 0.0 to 1.0.
0 commit comments