Skip to content

Commit 0a31b39

Browse files
committed
Revise datatypes for Timestamps and WordConfidence.
1 parent 6b58c9e commit 0a31b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IBM.WatsonDeveloperCloud.SpeechToText.v1/Model/SpeechRecognitionAlternative.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ public class SpeechRecognitionAlternative : BaseModel
4242
/// </summary>
4343
/// <value>Time alignments for each word from the transcript as a list of lists. Each inner list consists of three elements: the word followed by its start and end time in seconds. Example: `[["hello",0.0,1.2],["world",1.2,2.5]]`. Returned only for the best alternative.</value>
4444
[JsonProperty("timestamps", NullValueHandling = NullValueHandling.Ignore)]
45-
public List<string> Timestamps { get; set; }
45+
public string[][] Timestamps { get; set; }
4646
/// <summary>
4747
/// A confidence score for each word of the transcript as a list of lists. Each inner list consists of two elements: the word and its confidence score in the range of 0 to 1. Example: `[["hello",0.95],["world",0.866]]`. Returned only for the best alternative and only with results marked as final.
4848
/// </summary>
4949
/// <value>A confidence score for each word of the transcript as a list of lists. Each inner list consists of two elements: the word and its confidence score in the range of 0 to 1. Example: `[["hello",0.95],["world",0.866]]`. Returned only for the best alternative and only with results marked as final.</value>
5050
[JsonProperty("word_confidence", NullValueHandling = NullValueHandling.Ignore)]
51-
public List<string> WordConfidence { get; set; }
51+
public string[][] WordConfidence { get; set; }
5252
}
5353

5454
}

0 commit comments

Comments
 (0)