Skip to content

Commit 01f0627

Browse files
committed
fix(Speech to Text): Revise SpeechRecognitionAlternative model
1 parent c19361d commit 01f0627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Services/SpeechToText/V1/Model/SpeechRecognitionAlternative.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public class SpeechRecognitionAlternative
4242
/// `[["hello",0.0,1.2],["world",1.2,2.5]]`. Timestamps are returned only for the best alternative.
4343
/// </summary>
4444
[JsonProperty("timestamps", NullValueHandling = NullValueHandling.Ignore)]
45-
public List<string> Timestamps { get; set; }
45+
public List<List<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
4848
/// elements: the word and its confidence score in the range of 0.0 to 1.0, for example:
4949
/// `[["hello",0.95],["world",0.866]]`. Confidence scores are returned only for the best alternative and only
5050
/// with results marked as final.
5151
/// </summary>
5252
[JsonProperty("word_confidence", NullValueHandling = NullValueHandling.Ignore)]
53-
public List<string> WordConfidence { get; set; }
53+
public List<List<string>> WordConfidence { get; set; }
5454
}
5555
}

0 commit comments

Comments
 (0)